VisualAI
Chapter 5 · Beyond Text

Making Images

Tools like Midjourney start from pure static and sculpt it into a picture. Here's the trick — one denoising step at a time.

8 minLesson 13 of 23

You've seen how AI reads an image. Now the magic trick in reverse: how it makes one. Tools like Midjourney and DALL·E begin with pure television static and patiently carve a picture out of it.

It sounds backwards, and it is. The key insight behind diffusionmodels is this: nobody knows how to paint a cat from scratch, but it's easy to destroya photo of a cat — just keep sprinkling random noise on it until it's indistinguishable from static. And if you can teach a model to undo a single step of that destruction, you can run it in reverse, from noise all the way back to a picture. Try the reverse journey yourself:

Diffusion Denoiser

Drag from noise to image, or press Animate

denoising step 5/30

Every pixel starts as pure random static. Each step nudges it a little closer to the picture.

What to imagine

Noise → image15%

Drag the slider back to pure noise and animate again — a different starting static gives the same picture. That's generation, not memorisation.

Pure random static on the left of the slider; a finished image on the right. Generation is everything in between.
Try this

Pick a target, then drag the slider from 0% (pure noise) toward 100% (clean image) — or hit Animate denoising and watch the picture crystallise out of the static. Now press New noiseand animate again: a totally different starting chaos, the same picture. It's constructing the image, not recalling a saved copy.

From static to art, one step at a time

Training works in two directions. The forwardprocess takes real images and adds noise step by step until they're static — that part is just maths, no learning needed. The model is trained on the reverse: at each noisy step, predict the noise to subtract. To generate a brand-new image, you hand it fresh random noise and let it denoise, again and again, until something coherent emerges.

Key idea

Image generation is learning to remove noise. Start from randomness and denoise, step by step, and a novel image appears — assembled, not copied. Because it begins from random static every time, the same request can produce endless different results.

One honest gap: our toy simply fades to a fixed picture. A real diffusion model predicts the noise to remove, and — crucially — its denoising is steered by your text prompt. “A red fox in the snow” gently biases every step toward fox-ness and snow-ness. The intuition, though, is exactly what you just felt: noise in, image out, one nudge at a time.

The payoff

You've now seen AI learn, fail, see, and paint. Time to go behind the curtain of the system that started it all. The next chapter rebuilds ChatGPT from scratch — beginning with how it chops up your words into tokens.