How to Use CFG Scale in AI Image Generation (2026)
If you have ever typed a prompt into Stable Diffusion, Flux, or any modern diffusion tool and gotten back something that ignored half of what you asked for, the CFG scale is probably the culprit. This single number, usually sitting quietly in the settings panel next to the sampler and step count, has more influence over how faithfully your image follows your prompt than almost any other parameter. Get it wrong and you get either a washed-out, unfocused image or a crunchy, over-saturated mess. Get it right and your prompts suddenly start behaving the way you always expected them to. This guide breaks down what the CFG scale actually does, how the guidance scale differs across model families, and the practical settings that work in 2026.
What Is CFG Scale in AI Image Generation?
CFG stands for Classifier-Free Guidance. It is a technique that runs your diffusion model twice on every step: once with your text prompt conditioning the output, and once without any prompt at all (the unconditioned, or “negative” prediction). The model then compares the two predictions and pushes the final result further in the direction of the difference.
The CFG scale is the multiplier applied to that difference. A higher value means the model leans harder into your prompt. A lower value means it leans more on its own learned sense of what a plausible image looks like.
CFG vs. Guidance Scale: What’s the Difference?
In practice, these terms are used interchangeably, and that is a source of real confusion. The distinction worth knowing:
- CFG scale is the classic term from Stable Diffusion 1.5 and SDXL, typically ranging from 1 to 20, with most interfaces defaulting to 7.
- Guidance scale is the same concept, but the label favored by newer model families. Flux, for example, exposes a guidance value that behaves differently because the model was trained with guidance distillation baked in.
- Distilled models (Flux Schnell, SDXL Turbo, and most 4-step lightning variants) often expect a guidance value near 1, because the guidance is already encoded in the weights.
If you are switching between model families in 2026, always check which convention the model expects before you start tuning.
How CFG Scale Actually Works Under the Hood
Without getting lost in the math, think of it this way. At each denoising step, the model produces a direction for “prompt-consistent” change and a direction for “generic plausible image” change. The CFG scale amplifies the gap between them:
final = uncond + CFG × (cond − uncond)
A CFG of 1 means the two predictions are treated equally and the result is essentially unguided. A CFG of 7 means the prompt-consistent direction gets amplified roughly seven times relative to the baseline. Push it past 15 and you get amplification artifacts: blown-out contrast, crushed detail, and the notorious “deep-fried” look.
CFG Scale Values Explained: A Practical Reference
These ranges hold up well across most mainstream models, though you should always treat them as starting points rather than rules.
- 1.0 – 3.0: Very loose adherence. Good for abstract work, texture generation, and distilled models that expect near-zero guidance. Prompts will be interpreted poetically.
- 4.0 – 6.0: Balanced and natural. This is the sweet spot for SDXL, Flux Dev, and most photorealistic work where you want believable lighting and skin tones.
- 7.0 – 9.0: The classic Stable Diffusion range. Strong prompt adherence with acceptable color fidelity. Excellent for illustration, concept art, and structured compositions.
- 10.0 – 14.0: Aggressive. Useful for forcing unusual color combinations or dense text-based elements, but expect reduced variation and flatter lighting.
- 15.0+: Almost always counterproductive on standard models. Reserve this for artistic distortion or controlled glitch aesthetics.
How to Find the Right CFG Scale for Your Prompt
Start With Your Model’s Default
Every model card publishes a recommended guidance value, and it exists for a reason. SD 1.5 models generally want 7. SDXL and its derivatives usually look best between 4 and 7. Flux Dev works around 3.5. Turbo and Lightning variants want 1 to 2. Ignoring these defaults is the most common reason people conclude a model is “bad” when it is simply misconfigured.
Adjust in Steps, Not Leaps
Change one value at a time. If 7 gives you images that are close but slightly stiff, try 5.5, then 4.5, then 3.5. Jumping straight from 7 to 2 will change so many downstream interactions — sampler behavior, negative prompt strength, composition — that you will not learn anything useful from the comparison.
Match CFG to Prompt Complexity
- Simple prompts (“a red apple on a wooden table”) need lower CFG. There is not much instruction to enforce.
- Layered prompts with subject, action, lighting, lens, and style all specified benefit from CFG 7–9.
- Conflicting prompts (two opposing styles, or contradictory lighting) degrade at high CFG. Lower the value and resolve the conflict in the text instead.
CFG Scale and Sampler Interactions
CFG does not operate in a vacuum. It interacts directly with your sampler and step count, and 2026’s model landscape makes these relationships more visible than ever.
- Higher CFG needs more steps. Aggressive guidance produces a rougher error surface, so the sampler needs extra iterations to settle. If you raise CFG, raise steps by 20–30%.
- Some samplers tolerate high CFG better. DPM++ 2M Karras and its successors handle guidance in the 8–10 range gracefully. Euler and Euler Ancestral tend to break down sooner.
- Higher CFG weakens variance. If every seed produces near-identical images, your CFG is too high for the amount of variety you want.
Advanced CFG Techniques Worth Knowing in 2026
CFG Rescale
CFG rescale is a post-processing adjustment that measures how much the guided prediction deviates from the unguided one and scales it back toward a target range. In practice, it lets you run CFG values of 10 to 14 — getting strong prompt adherence — without the blown-out contrast that normally comes with them. If your interface offers it, start with a rescale factor around 0.7.
Dynamic and Scheduled CFG
Modern node-based interfaces let you vary the CFG scale across the denoising timeline. A common pattern is high guidance early, when composition is being decided, tapering to low guidance late, when fine detail and color fidelity matter most. This single trick fixes a large share of “my image is accurate but ugly” complaints.
Negative Prompts and CFG
The negative prompt is the unguided branch’s text conditioning. That means its influence scales with CFG too. At CFG 3, a negative prompt barely registers. At CFG 12, it can dominate the output and produce strange structural artifacts. If you rely on heavy negative prompts, keep CFG moderate and let the negative text do the work.
Practical Tips and Common Mistakes
- Do not use CFG to fix a bad prompt. Rewrite the prompt first. Guidance amplifies whatever is already there, including vagueness.
- Lock your seed when testing. Comparing CFG values across different seeds tells you nothing.
- Keep a personal settings log. Note the model, sampler, steps, and CFG for images you like. This becomes your most valuable reference.
- Remember distilled models. If a Flux Schnell or Turbo model looks fried, your CFG is almost certainly above 2.
- Watch the histogram, not just the image. If highlights are clipping en masse, your guidance is too high regardless of how the thumbnail looks.
- Expect model drift. Fine-tunes and LoRAs shift the ideal CFG range. Re-test when you change checkpoints.
Conclusion
The CFG scale is the most direct lever you have over how literally an AI image model interprets your prompt, and in 2026 it remains the parameter most beginners get wrong. The rules of thumb are simple: start at your model’s recommended default, move in small increments, raise step count when you raise guidance, and treat anything above 15 as an artistic tool rather than a corrective one. Once you pair a sensible CFG value with CFG rescale or a scheduled guidance curve, you gain a level of AI image control that no amount of prompt engineering alone can deliver. Tune deliberately, log what works, and the difference in your output will be immediate.