kAIrrugallery

Guide · Chapter 1

How it works

What happens when you press Generate, and the settings you'll meet everywhere.

The idea in one minute

Most image and video generators are models. During training, the model saw millions of pictures with their descriptions, slowly covered in random noise, and learned to remove that noise step by step.

When you generate, it starts from pure noise (a grey snow) and removes it little by little, guided by your text. After 20 to 50 steps a picture appears that matches your description. A video model does the same for a whole stack of frames at once, so that they move together.

The parts of a generator

Model (checkpoint)
The "brain" that draws. Each one has its own strengths and look: photorealistic, anime, painterly. Examples: FLUX.2, Qwen-Image, SDXL, Midjourney's or ChatGPT's own models.
Text encoder
Turns your words into numbers the model understands. Recent models use a large language model here, which is why they follow long, natural sentences much better than older ones.
Prompt
Your description of the picture. Everything starts here (see the Prompting chapter).
Negative prompt
What you don't want ("blurry, extra fingers, text"). Supported by local tools and some websites; recent models need it much less.
LoRA
A small add-on file that teaches a model one thing: a character, a style, a clothing item. You can stack a few, each with a strength (0.6 to 1.0 is typical).
VAE
The part that turns the model's internal result into actual pixels. Usually built in; you only notice it when colours look washed out.

The settings that matter

Seed
The number that sets the starting noise. Same seed + same prompt + same settings = same picture. Fix it while you adjust your prompt, so you see the effect of each change.
Steps
How many denoising passes. More is slower, not always better: 20 to 30 is enough for most models; "turbo" and "lightning" versions need only 4 to 8.
Guidance (CFG)
How strictly the model follows your prompt. Too low: vague and off-topic. Too high: harsh contrast, burnt colours. Each model has its sweet spot (often 3 to 7).
Sampler / scheduler
The method used to remove the noise. Defaults are fine; change them only to fix a specific problem.
Resolution & aspect ratio
Generate at the size the model was trained for (often about 1 megapixel: 1024×1024, 832×1216 for portrait, 1216×832 for landscape), then upscale. Too big from the start gives doubled heads and repeated objects.
Denoise strength
In and : how much of the original is changed. 0.3 = small touch-ups, 0.6 = same layout redrawn, 0.9 = almost new.

Ways to generate

  • Text-to-image: a prompt becomes a picture.
  • : a picture (photo, sketch, earlier result) plus a prompt becomes a new picture that keeps its layout.
  • Editing with words: recent models (Nano Banana, ChatGPT, Qwen-Image-Edit, FLUX Kontext) change an image from an instruction: "make it night", "remove the lamp".
  • : paint a mask over one area and regenerate only that area (a hand, a face, a background object).
  • Outpainting: extend the picture beyond its borders.
  • Control (, reference): guide the result with a pose, a depth map, outlines or a reference image, so composition or identity stays the same.
  • Upscaling: enlarge the final picture and add detail.
  • Text- or image-to-video: the same ideas, in motion (see the Video chapter).

Online or on your computer?

Online services (ChatGPT, Gemini, Midjourney, Leonardo, Kling…) work in a browser on any device. You pay with a subscription or credits and follow their content rules.

Local tools (ComfyUI, InvokeAI, Forge, SwarmUI) run free models on your own graphics card: unlimited generations, full control, private. You need a fairly recent NVIDIA GPU: 8 GB of video memory for older and "turbo" models, 12 to 16 GB for recent image models, 16 to 24 GB+ for video. Apple Silicon Macs work too, more slowly.