How AI image generation works
Most AI image generators, from Stable Diffusion to the tools you use every day, are built on one idea: a model that has learned to clean noise out of pictures can be asked to clean a picture out of pure noise. Here is that idea without the maths, and what it means for the prompts you write.
Learning to remove noise
Take a photograph and add a little random static. Then a little more, and more again, until nothing is left but grey grain. That part is easy. A diffusion model is trained on the opposite: given a noisy image, guess what the noise was, so it can be removed one step at a time. It practises this on a very large number of images, at every level of noise.
The idea was described in 2015[1] and became practical in 2020, when a team at Berkeley showed that it could produce high-quality images[2]. Once a model can undo noise, you can hand it noise that never came from a photo. It removes it step by step anyway, and an image appears that was never in its training set.
Where your words come in
On its own, the model would produce a random plausible picture. To make it produce your picture, the text is turned into numbers by a text encoder, a model trained to connect words and images. A well-known one is CLIP, trained by OpenAI on hundreds of millions of image and caption pairs[3]. At every denoising step, the image model looks at those numbers and nudges its guess towards an image that fits them.
A technique called guidance then makes the text count for more. The model is asked for two predictions at each step, one with the prompt and one without, and the result is pushed further towards the version with the prompt[5]. Push too little and the image drifts away from what you asked. Push too much and it gets harsh and overdone.
Working on a smaller copy
Denoising a full-size image hundreds of times is slow. Latent diffusion, the method behind Stable Diffusion, does the work on a compressed version of the image and only turns it into full pixels at the end[4]. This is a large part of why image generation became fast and cheap enough for everyone.
A different approach: GPT Image
Not every model works this way. OpenAI describes the image generation in ChatGPT as autoregressive: the image is produced as part of the same model that handles the conversation, piece by piece, in a similar way to text[6]. That is one reason ChatGPT follows long, detailed instructions well, and it is the main technical difference in Midjourney vs ChatGPT. Midjourney doesn’t publish how its own models are built.
What this means for your prompts
- The seed is the starting noise. Same seed, same prompt, same settings, and you get the same image. Change one word and keep the seed, and you see what that word did. Midjourney’s
--seedworks like this. - The model fills every gap. Whatever your words leave open, the model decides from what it has seen most often. That is where the generic “AI look” comes from, as why Midjourney images look AI explains.
- Words are read as associations. A text encoder links words to what they usually appear with in captions. Negations like “without people” are weak signals, so tools add separate controls such as
--no. - Famous things are easy to reach. Characters and styles that appear in many captions come out easily, which is useful for learning and a problem if you want to sell the result.
Using the seed to test one change at a time is the method behind every comparison in the guides. It starts in “The core parameters” in First Frames and becomes a full testing method in “The ablation lab” in Your Own Style.
Quick answers
What is a diffusion model?
A model that learns to remove noise from images. To make a new image it starts from pure random noise and removes it step by step, guided by your text, until a picture is left.
What is a seed in AI image generation?
The number that decides the starting noise. The same seed with the same prompt and settings gives the same image, which is why seeds are useful for fair comparisons.
Does the AI copy existing images?
It learns patterns from a very large number of images rather than storing them as a library, but it can reproduce famous images, characters and styles closely. That is why the legal questions about training data are still open.
Is Midjourney a diffusion model?
Midjourney does not publish how its models are built. Most image generators of its kind are based on diffusion, while OpenAI describes its GPT Image models as autoregressive.
Sources
- arXiv, Sohl-Dickstein, Weiss, Maheswaranathan, Ganguli: Deep Unsupervised Learning using Nonequilibrium Thermodynamics, 12 March 2015.
- arXiv, Ho, Jain, Abbeel: Denoising Diffusion Probabilistic Models, 19 June 2020.
- arXiv, Radford et al.: Learning Transferable Visual Models From Natural Language Supervision (CLIP), 26 February 2021.
- arXiv, Rombach, Blattmann, Lorenz, Esser, Ommer: High-Resolution Image Synthesis with Latent Diffusion Models, 20 December 2021.
- arXiv, Ho, Salimans: Classifier-Free Diffusion Guidance, 26 July 2022.
- OpenAI, Addendum to GPT-4o System Card: Native image generation, 25 March 2025.