From Pixels to Prose: Demystifying the Workflows of Generative AI