The Alternatives Issue For tool owners Sign in

CFG scale (classifier-free guidance)

CFG scale controls how strongly a diffusion image model follows its text prompt — higher values stick closer to the prompt, lower values explore more.

In more detail

What it means

Classifier-free guidance (CFG) is a sampling trick that interpolates between the conditional (prompt-driven) and unconditional model output. Typical settings: 7–9 for Stable Diffusion 1.5/SDXL, 3.5–5 for Flux, 2–4 for SD3. High CFG produces over-saturated, hyper-prompted images; low CFG drifts off-prompt but feels more natural. New flow-matching models (Flux, SD3) use much lower CFG than older diffusion models — copying old SDXL CFG values onto Flux ruins the result. When changing models, re-tune CFG from the new default instead of porting the old value, and test small increments on fixed seeds because overshooting quickly produces harsh contrast, clipped highlights, and brittle adherence to minor prompt words.

Part 1 of 2

When to use it, and when not

Use it for

  • Tuning prompt adherence vs. naturalness on a per-model basis.

Part 2 of 2

Common mistakes

  • Carrying old SDXL CFG settings (7–9) into Flux — far too high, saturates badly.
  • Treating CFG as a quality knob — it's a prompt-adherence knob.

FAQ

Questions readers ask.

What is cfg scale (classifier-free guidance)?

CFG scale controls how strongly a diffusion image model follows its text prompt — higher values stick closer to the prompt, lower values explore more.

When should you use cfg scale (classifier-free guidance)?

Tuning prompt adherence vs. naturalness on a per-model basis.

What are the common mistakes with cfg scale (classifier-free guidance)?

Carrying old SDXL CFG settings (7–9) into Flux — far too high, saturates badly. Treating CFG as a quality knob — it's a prompt-adherence knob.

Last updated: 2026-09-18. Raw markdown: https://promtable.com/glossary/cfg-scale.md. Found a mistake? Tell us.