What Is a Diffusion Model? How AI Image Generators Work
A diffusion model learns to reverse a noising process. During training, images are gradually turned into static, and the model learns to predict and remove that noise. To generate, it starts with pure noise and denoises it over a series of steps, steered by your prompt.
The parts of a modern image generator
- Text encoder: turns your prompt into numbers the model understands. Newer models use large language-model encoders, which is why they follow complex prompts better.
- Denoiser: the main network (a UNet in older models like SDXL, a transformer in newer ones like FLUX-family models and Qwen-Image).
- VAE: compresses images into a smaller “latent” space where denoising happens, then decodes the final result back to pixels.
Steps and guidance
More steps generally means more refinement, up to a point. Guidance settings control how strictly the image follows the prompt. Some newer models are “distilled” to produce good images in very few steps.
Why it matters to you
Understanding diffusion explains common behaviours: why seeds matter, why the same prompt varies, and why inpainting can regenerate just one area. It also explains why “uncensored” is about training data and filters, not a different technology. See text-to-image.
Common questions
Is Midjourney a diffusion model?
Midjourney has not published its architecture in detail, but it is widely understood to be diffusion-based, like most current image generators.
Why does the same prompt give different images?
Each image starts from different random noise, controlled by a seed. Change the seed and the result changes.
Related
More terms: Checkpoint · Content credentials · Deepfake · Image-to-image · Inpainting · LoRA · Full glossary