CFG Scale & Guidance in AI Image Generation (2026)
If you have ever typed a perfect prompt into a diffusion model and received an image that ignored half of it, the CFG scale is your first lever. Classifier-free guidance — usually shortened to CFG scale or guidance scale — is the single most influential numerical setting in text-to-image generation. It decides how aggressively the model pushes away from generic output and toward your prompt. Get it right and your images snap into focus, with clean composition and faithful details. Get it wrong and you get either washed-out mush or burned, over-saturated artifacts. This guide breaks down how guidance works in 2026-era models, what the numbers actually mean, and how to tune them for reliable AI image control.
What Is the CFG Scale, Exactly?
Classifier-free guidance is a technique that runs the diffusion model twice at each step: once with your prompt (the conditional prediction) and once with an empty or neutral prompt (the unconditional prediction). The guidance scale is the multiplier that amplifies the difference between the two:
- Low guidance: the output leans toward the unconditional prediction — more creative, more random, less literal.
- High guidance: the output leans hard into your prompt — more literal, more contrast, but increasingly prone to artifacts.
The classic formula is final = unconditional + scale × (conditional − unconditional). A value of 1 means no guidance at all. A value of 7 means the prompt direction is amplified sevenfold. Understanding this matters because the CFG scale is not a quality slider — it is a compliance slider, and compliance has diminishing returns.
Why the Guidance Scale Drives AI Image Control
Guidance affects more than prompt adherence. It changes contrast, saturation, detail density, and how much the model is willing to invent. That is why two identical seeds with different CFG values can look like two different models.
Low CFG (1–4): Creative but Loose
- Soft contrast, natural color, painterly or dreamlike finish.
- Strong compositional variety across seeds.
- Weak prompt adherence — details and text often drift.
- Best for: abstract art, mood pieces, experimentation, photography with a film look.
Mid CFG (5–8): The Practical Sweet Spot
- Balanced fidelity with natural tones and stable anatomy.
- Reliable prompt adherence without color burn.
- Best for: portraits, product shots, editorial illustration, most production work.
High CFG (9–20+): Literal but Risky
- Punchy contrast, heavy saturation, sharp micro-detail.
- Strong adherence to unusual compositions and rare concepts.
- Risk of “baked” textures, halos, clipped highlights, and repetitive posing.
- Best for: graphic design, logos, icons, posters, strict composition control.
CFG Scale Reference by Model Family
There is no universal number. Modern architectures embed guidance differently, so always check the model card before assuming a value.
- SD 1.5 / SDXL-based checkpoints: typically 5–9; SDXL usually prefers 4–7.
- SD3.5 and similar flow models: often 3.5–5.
- Distilled models (Flux.1 dev, Flux.1 schnell): guidance is baked in or set very low — schnell expects 0, dev around 3–4.
- Midjourney and DALL·E-class services: no exposed CFG; equivalent control comes from stylize, weirdness, and prompt weighting.
- Video diffusion: lower guidance (3–6) generally produces smoother motion; high CFG causes flicker and temporal boiling.
Practical Tips for Tuning Guidance Scale
Treat the CFG scale as a precision instrument rather than a dial you spin wildly.
- Change in 0.5 increments. Meaningful perceptual shifts happen in small steps, especially above 8.
- Lock the seed while you tune. Vary only the guidance value so you can isolate its effect.
- Pair high CFG with CFG rescale. Rescale node options in ComfyUI or A1111 counteract contrast blowout at values of 10+.
- Use negative prompts instead of cranking guidance. A well-written negative prompt at CFG 6 often beats a sloppy prompt at CFG 14.
- Lower guidance for realism. Skin, skies, and foliage look plastic at high values; 4–6 restores natural texture.
- Raise guidance for typography and icons. Flat graphic styles tolerate 9–12 with fewer penalties.
- Match guidance to sampler. DPM++ 2M Karras and Euler Ancestral respond differently; re-tune when you switch samplers.
- Watch for the “burn threshold.” Note the exact value where highlights clip in your model — that is your ceiling.
Beyond the Classic CFG Slider
2026 tooling has moved well past a single number. Several guidance variants now ship as standard:
- CFG++ and dynamic CFG: schedules guidance across timesteps — high early for structure, low late for texture.
- Perturbed-attention guidance (PAG): improves structure without the saturation cost of raw CFG.
- Distilled / embedded guidance: models trained to internalize guidance so you set a single small value or none at all.
- Per-region guidance: mask-based control that lets you apply stronger adherence to a face and looser guidance to a background.
These are not replacements for understanding the CFG scale. They are refinements of the same underlying idea, and knowing the baseline makes the refinements far easier to use.
Common Mistakes to Avoid
- Assuming higher CFG equals higher quality — it usually means higher contrast and more artifacts.
- Copying settings between model families without re-testing.
- Blaming the prompt for poor results when guidance was the real culprit.
- Ignoring sampler and step count, which interact strongly with guidance.
Conclusion
The CFG scale remains the most direct lever for AI image control in 2026, even as models grow more sophisticated and guidance becomes partially baked in. The rule of thumb is simple: start in the middle of your model’s recommended range, lock your seed, and nudge in 0.5 steps until prompt fidelity and natural texture balance out. Lower the guidance scale when you want realism and creative range; raise it when you need literal compliance and graphic punch. Pair that discipline with negative prompts, rescale options, and modern guidance variants, and you will spend far less time re-rolling and far more time shipping images that look exactly as you intended.