Image Generation & Diffusion
AI Engineer path · lesson 65 of 124Drag a slider to watch an image emerge from pure noise, tour the latent-diffusion architecture, and tune guidance and step count against quality and cost.
Key insight
Generation is just the training task run in reverse: the model was only ever taught to answer "what noise was added to this image?" Ask it that question repeatedly, starting from pure noise, and subtracting its answers is the painting process — coarse composition first, fine detail last.
Generate an image by denoising
Order one text-to-image generation.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
- 1Drop a step here
- 2Drop a step here
- 3Drop a step here
- 4Drop a step here
- 5Drop a step here
- 6Drop a step here
Test your knowledge
What single task is a diffusion model trained on?
The short version
A sculptor claims the statue was always inside the marble — they just removed everything that wasn't statue. Diffusion works the same trick on static: the model learned what images look like, so at each step it chips away a little of what doesn't look like your prompt, until only the picture remains.
In more depth
Image Generation & Diffusion
Diffusion models create by destroying and rebuilding: learn to remove noise, then start from pure noise and remove it repeatedly until a picture appears.
The loop
The three-model architecture ("Stable Diffusion is three models in a trench coat")
Engineering dials
Interview Questions
References & Further Reading
Related topics
Love this visualization?
Sign up to track your progress, earn achievements, use the AI assistant, and access your personal learning dashboard.
100% free • No credit card required