L

Learn AI

Track progress · learn offline

Open

Lesson 1 of 7

How AI turns words into pictures

11 min read

You type a sentence — a red fox asleep in the snow — and seconds later there's a photo of exactly that, one that never existed before. No camera, no artist. So where does the picture actually come from?

A picture, out of thin air

Not long ago, needing a specific picture meant one of three things: pick up a camera and shoot it, hire someone to make it, or go hunting through stock-photo sites for something close enough. And even then, all you could really do was edit a photo you already had — lighten a corner, patch a blemish. Conjuring a scene that was never photographed was simply off the table. Now you can just describe it in words, and the tool makes it.

Describing an image and having it generated is called text-to-image. You're not finding or editing an existing photo — the tool makes a brand-new one from your words.

Not like the chatbot you know

You've probably chatted with an AI that writes back one word at a time — you can watch the sentence appear left to right, each word guessing what comes next. An image tool can't work that way. A picture isn't a line of words with an obvious "next" one; it's a whole grid of colour that has to be right everywhere at once. So it reaches a picture by a completely different route.

Two rows. On top, a chatbot builds a sentence word by word, left to right. Below, an image tool turns a field of random speckle into a finished picture all at once.
Text is written in a line, word after word. A picture is uncovered all over the frame at the same time.

A chatbot writes in sequence, word after word. An image generator shapes the whole frame at once — so it needs a different trick entirely to get from your words to a picture.

It starts from pure static

Here's the trick. The tool begins with a screen of random noise — the fuzzy speckle an old TV showed with no signal, just colour scattered everywhere. Then, step by step, it removes a little of that noise, each pass nudging the mess a bit closer to the picture your words describe. After enough steps the randomness is gone and a clear image is left. This gradual clearing of noise into a picture is called diffusion.

An image generator doesn't paint a picture on — it uncovers one, clearing away noise a little at a time until only the image your prompt asked for is left.

Look inside: it clears in passes

Now open up that clearing. The tool doesn't wipe the static away in one jump — it works in many small clean-up passes. Each pass removes a little more noise and looks at your words again to decide what to firm up. The early passes rough out the big shapes: where the sky goes, where the fox sits. The later passes fill in the fine detail — the fur, the snow. Drag from one pass to many below and watch the picture climb out of the static.

Each of those clean-up rounds is a step — the full name is a denoising step. More steps means a cleaner, more detailed picture, but only up to a point: past a certain number it barely improves and you're just waiting longer.

How hard it pulls toward your words

There's a second dial hidden inside every pass. On each pass the tool also decides how hard to pull the picture toward your words. Turn that pull down low and it barely listens — the picture stays loose and vague, more the tool's own daydream than your fox. Turn it up high and it clamps onto the words so tightly the picture goes harsh and over-cooked, like a photo with the contrast cranked all the way up. The best-looking results sit in the middle. Add the pull dial below and try both ends.

That pull has a name: guidance (some tools call it prompt strength). Low guidance wanders off your words; high guidance over-forces them and fries the picture. Most tools pick a sensible middle for you — but when a result feels too loose or too baked, this is the dial to reach for.

Why two tries never match

One surprise falls straight out of this. Because every run starts from a fresh patch of random noise, the very same words clear into a slightly different picture each time — a different fox, a different pose. It isn't a glitch; it's the noise. Later you'll learn how to pin a result down once you find one you like.

Try it yourself: type the same description into any image tool twice. You'll almost always get two different pictures — proof that each one grew from its own field of noise.

The gist

Your image came out looking harsh and over-cooked, as if the contrast were cranked all the way up. Which dial most likely did that?

Continue in the app

Take the whole AI Images course — tracked

Get your personalized path, progress and streaks in the app — this lesson and every next one, in order.