Sign up and get 15% off the four courses and Lifetime.

How the machines work

Lesson

What a generative model actually is

Lesson 1 of 13 in How the machines work.

Checked against the makers' documentation on 26 September 2026.

Lesson

A generative model is a computer program that makes something new when you describe it in a sentence, such as a paragraph, a picture or a short video. The sentence you type is called a prompt. Most software follows rules a person wrote out step by step. A model learns its own rules from a huge number of examples instead.

Think of the wedding cards you have seen. You could sketch a typical one now, with a decorated border, two names set large and the date underneath, without copying any single card. A model picks up patterns in a similar way. We will follow a small wedding-card studio that wants a few pictures for a client's mood board.

How a model learns from examples

The model is a very large file of numbers plus the code that runs them. The numbers are called weights. A model learns through training, which means it looks at an example, makes a guess and is told how wrong it was. Then every weight is nudged a tiny amount so the next guess is a little less wrong, and this repeats over millions or billions of examples.

Image models usually make pictures by diffusion, starting from random static and cleaning a little of it away at each step while the prompt steers. A language model, the kind behind a chat assistant, writes one token at a time, a token being a word or part of a word. Each time it picks a likely next token, given everything so far.

What a model keeps and what it forgets

A model does not contain the pictures it learned from. It keeps a compressed sense of how pictures tend to look, such as how a shadow falls under a bottle. So it cannot look anything up. Ask it for a real product, a logo or a famous building and you get something that looks right from a distance and is wrong in the details.

Its weights also stay fixed while you use it. Tell a chat assistant on Monday that the client's colours are maroon and gold, and that is gone on Tuesday unless you repeat it or the app saves it as a note. So the studio keeps what the model must always know in its own note and pastes it in each time.

Tell the model apart from the app

The model is the engine. The app is the car built around it, the website or phone app you actually type into. Knowing which is which explains why a tool can suddenly start behaving differently.

QuestionThe modelThe app
What it isThe trained file of numbers that does the makingThe screen you open and type into
ExamplesGPT, Nano Banana, FLUXChatGPT, the Gemini app, Adobe Firefly
How manyOne model can sit inside many appsOne app can offer many models
When it changesThe same prompt can start giving different resultsThe screens can stay the same while the model underneath changes

Before you judge a tool, find out which model its app is running that day.

Treat every picture as one draw

Every output is one draw from a range of likely answers. Type "a hand-painted marigold border on cream card, soft daylight" twice and you get two different borders. A number called the seed decides which draw you get, and reusing it usually brings the same picture back. If fifty runs are all wrong for the job, a fifty-first is only another draw, so change the words, add a reference picture or try another model.

A model also gives you the typical. One that learned mostly from English captions tends to treat Western faces and settings as the default. So the studio asks for "a Tamil bride in a red silk saree" and never just "a bride".

These tools are good at mood, light, texture and quick variations, which suits a mood board or a first sketch. They are weak wherever something must be exact. Hands come out with a finger too many or too few, lettering still slips on newer models that spell far better, and one character is hard to keep the same across pictures. Before the studio sends any generated picture to a client, someone zooms in, counts the fingers, reads every letter and compares anything that must match a real product.

The next lesson shows how diffusion turns static into a picture.