Skip to content
AgenticAIWiki
  1. Learn
  2. Part 1
  3. 8. Multimodal and voice
  4. 8.4

Lesson 8.4 · 4 of 9 · 5 min read · Reviewed 24 Nov 2026

Image generation basics

By the end, you can

  • Explain the basics of image generation.
  • Know how diffusion models turn text into images.
  • Tell diffusion image models apart from multimodal LLMs that generate images themselves.

Diffusion in pictures

training:   real image --> add noise, step by step --> pure noise
            the model learns to predict and remove the noise at each step

generation: pure noise --> remove a little noise --> ... --> image
                         ^ guided by the text prompt at every step

The parts

Part Role
Text encoder Turns the prompt into a representation the image model can use
Denoising network Predicts the noise to remove at each step
Latent space Many models work on a compressed image representation for speed, then decode to pixels
Guidance Controls how strongly the prompt steers the result

The other family: multimodal LLMs that draw

Not every image generator is a separate diffusion model. Some natively multimodal LLMsLarge language model (LLM): A neural network trained on large amounts of text to predict the next token, which lets it generate and transform language. generate images themselves: the same transformerTransformer: The neural network architecture behind modern LLMs, built from stacked attention and feed-forward layers. that writes text also writes image tokensToken: The unit a model reads and writes: a word, part of a word, a space or a symbol, mapped to an integer id., which a decoder turns into pixels (some systems add a diffusion stage for the final detail). OpenAI’s GPT image models and Gemini’s native image generation work this way.

Diffusion or flow-matching model Multimodal LLM that generates images
How it draws Removes noise over many steps (8.7) Writes image tokens, like text
Strengths Fine visual quality, many open models, mature controls such as seeds and negative prompts Follows long, detailed instructions, renders text in images well, edits an image through conversation
Typical use Image pipelines, open-weight hosting Assistants that chat and draw in one place

For an architect the practical question is the same either way: which API or model meets your quality, cost, licence and safety needs, checked on your own prompts.

Prompting image models

Image prompts describe subject, style, composition, lighting and mood. Negative prompts (what to avoid) and seeds (for reproducibility) are common controls.

Where Claude fits

Claude reads and reasons about images but doesn’t generate them, so pair it with an image model when you need pictures. In a product, Claude might write or refine prompts for an image model, check generated images against requirements, or describe images for accessibility.

Responsible use

Image generation raises issues of consent, likeness, copyright and misinformation. Follow the policies of the model you use, label generated images where appropriate, and don’t generate images of real people without consent.

Key points

  • Many image generators are diffusion or flow-matching models: they learn to remove noise step by step to form an image.
  • A text encoder turns the prompt into guidance that steers each denoising step.
  • Some multimodal LLMs now generate images themselves, writing image tokens the way they write text. Claude reads images but doesn't generate them.
Hands-on labOn your own machine

Generate images with a local diffusion model

Run an open diffusion pipeline yourself and see how steps, guidance and seed change the result.

You will have: A grid of nine images (three step counts by three guidance values, one fixed seed) with notes on time and quality.

Steps

  1. On a machine with a GPU (or a hosted notebook), install the Hugging Face diffusers library, PyTorch and accelerate.
  2. Load a small open text-to-image model whose licence allows your use, following the diffusers quickstart.
  3. Fix the seed with a torch Generator, then generate the same prompt at 10, 25 and 50 steps.
  4. Repeat at three guidance scales, low, default and high, and time each run.
  5. Lay the nine images out in a grid and note where extra steps stopped helping and where guidance looked harsh.

Done when

  • All nine images use the same seed and prompt.
  • Your notes give the time per image for each step count.
  • You name the lowest step count you would accept for drafts.

Docs: Diffusers documentation (Hugging Face)

Quick checkHow does a diffusion model create an image?
How sure are you?
Pick an answer and how sure you are