During training, noise is gradually added to real images and the model learns to predict and remove it. To generate, it starts from pure noise and denoises repeatedly; a text encoder steers each step toward the prompt. Latent diffusion works in a compressed representation, which makes it much faster.
Diffusion powers most text-to-image systems and many video generators. Read how diffusion models generate images.