SpellRadar
中文

How to Choose Stable Diffusion Samplers, Steps and CFG: A Practical Guide from Euler a to DPM++ 2M Karras

Blurry output, broken anatomy, oversaturated colors? The problem may not be your prompt. This guide explains what Steps, CFG and common samplers each control and how to tune them, with two complete parameter examples for portraits and scene illustration.

SpellRadar Editorial · Updated 2026-11-05 · min read 3

What samplers, steps and CFG each control

Blurry output, broken anatomy, oversaturated colors — very often the problem is not your prompt but your sampling settings. Stable Diffusion generates an image by starting from a field of random noise and gradually denoising it into a picture. The sampler (Sampler) decides which algorithm is used at each denoising step; the step count (Steps) decides how many rounds of denoising are run; and CFG (Classifier-Free Guidance, the prompt guidance scale) decides how strongly the image is pulled toward your prompt. Together they shape both quality and speed, and they matter as much as the model itself. Let's go through each parameter and how to pick a value.

Steps: more is not always better

Steps is the number of denoising iterations. Too few steps leave residual noise and vague structures; more steps let the details converge, but beyond a certain point the gains are marginal and you only pay longer render times. The common community recommendation is 20-40 steps, a range in which most models already converge. With stochastic samplers such as Euler a, changing the step count can noticeably alter composition and content, while deterministic ones like DPM++ 2M Karras are more stable and extra steps mainly refine details. For batch exploration, start at 20-25 steps to shortlist compositions, then raise the count for the final pass. Also note that distilled models such as Turbo and Lightning need very few steps (often 4-8) and do not follow the usual range.

CFG: how strictly the model follows your prompt

CFG controls how strictly the result follows your prompt. Low values (around 2-3) give the model more freedom and a looser mood, but the image may drift off-prompt or miss elements. High values (12 and above) over-constrain the generation, producing oversaturated, harshly sharpened, blown-out or washed-out results with a stiff, overfitted look. The usual advice is 4-9: realistic portraits often sit at 5-7, stylized illustration at 7-9. When trying a new model, start near 7 and adjust by eye. CFG and steps interact, so when tuning, keep one fixed and change only the other; otherwise you cannot tell which change did what.

Common samplers: style tendencies and how to choose

Euler a (ancestral): fresh noise is introduced at every step, giving soft, richly colored images whose composition shifts noticeably with steps and seed. Great for quickly exploring moods and compositions; the tradeoff is strong randomness — rerunning may not reproduce the same image.

DPM++ 2M Karras: one of the most widely used combinations. 2M stands for a second-order multistep solver, and the Karras noise schedule refines the later stage of denoising. It converges stably with clean detail and a good speed-quality balance, making it the safe default for realism and general use, and many model authors list it as their recommended setting.

DPM++ SDE Karras: based on stochastic differential equations, it produces richer micro-texture and is often praised for realistic skin and hair detail, at the cost of slower rendering and stronger randomness; reruns may not match.

UniPC: a newer unified predictor-corrector solver that keeps decent detail at lower step counts, handy when you want to cut steps for speed. DDIM: a classic deterministic sampler where nearby step counts change the image only mildly, useful for small composition tweaks.

A simple way to remember the choice: explore compositions with Euler a, mass-produce steadily with DPM++ 2M Karras, try DPM++ SDE Karras for realistic micro-detail, and pick UniPC when you need fewer steps. There is no universally strongest sampler, only one that fits your model and goal.

Seed: the switch for reproduction and refinement

The seed (Seed) determines the shape of the initial noise. With the same prompt, settings and model, fixing the seed reproduces the same image; from there you can tweak steps, CFG or the sampler to iterate controlled variations of that picture. Setting the seed to -1 draws a new card every time. A common workflow: generate widely with random seeds, then look up and fix the seed of any image you like before fine-tuning the rest.

Two complete parameter examples

Example 1, realistic portrait: a realistic checkpoint, sampler DPM++ 2M Karras, Steps 30, CFG 6. Positive prompt: a portrait of a young woman, soft window light, detailed skin texture, 85mm lens, photorealistic. Negative prompt: lowres, bad anatomy, bad hands, blurry, deformed, watermark, text, oversaturated.

Example 2, atmospheric scene illustration: sampler Euler a, Steps 28, CFG 7. Positive prompt: a cozy cabin in a snowy forest at dusk, warm glowing windows, falling snow, cinematic atmosphere, painterly. Negative prompt: lowres, blurry, mutated, extra limbs, watermark, text, oversaturated.

Negative prompts suppress common artifacts; entries in both lists can be added or removed as needed. These settings are common starting points, not standard answers — run them first, then tune around your own model and taste.

Common mistakes and practical advice

Three common mistakes: blindly maxing out steps, which only wastes time past the convergence point; treating CFG as a quality dial and pushing it higher and higher until the image turns stiff; and changing several parameters at once, so no result can be attributed to anything. Change one parameter at a time, shortlist at low steps, then refine with a fixed seed. The model author's recommended settings are the best starting point; adjusting from there beats copying someone else's numbers.

Related on SpellRadar

More guides

We only store prompt text, tags, parameters and source links — never image files. Sample images belong to their original authors and load directly from third-party sources. All content is human-reviewed before publishing.