A sampler is the algorithm that turns random noise into your finished image by running the denoising loop over several steps. Different samplers work differently, trading speed for quality and smoothness. A common, reliable default is DPM++ 2M Karras at around 20 to 30 steps, though the best choice depends on your model.
If you have looked at a generator’s settings and seen a dropdown full of cryptic names like Euler a, DPM++ 2M Karras, or DDIM, and a separate box for steps, this guide explains what they do. The sampler and step count decide how the model actually paints your image, and picking sensible values means faster generations and cleaner results. This page is definitional: it explains what a sampler and steps are, and what the common choices do. For exact per-model tuning, it points you to the settings guide at the end.
This article is for adults only and covers concepts intended for people 18 and over.
What a sampler actually is
Recall that image generation works by starting with random noise and cleaning it up, a little at a time, until a picture matching your prompt emerges. The sampler is the algorithm that decides exactly how to remove that noise at each pass. It is the engine that runs the denoising loop described in how AI image generation works, the part that does the actual step-by-step work of turning static into a coherent image.
Different samplers take different mathematical routes to the same destination. Some are fast and a little loose, adding a touch of randomness that changes the image as steps increase. Others are more deterministic and settle into a stable result that stops changing once it is done. None of them is universally best. They are tools with different characters, and the right one depends on your model and what you value, speed or maximum detail. The glossary lists the common ones, and the settings overview shows where the dropdown sits in a typical interface.
You will also see the word scheduler near samplers, and terms like Karras attached to sampler names. The scheduler decides how the noise is reduced across the steps, for example front-loading more change early and easing off later. The Karras label refers to one such schedule that many people find gives smooth, high-quality results, which is why DPM++ 2M Karras is such a common recommendation. You do not need to master the theory to use it well.

What sampling steps do
The step count is how many passes the sampler takes to clean up the noise. More steps means more chances to refine the image, but the relationship is not linear, so more is not always better. Too few steps and the image comes out noisy, soft, or undercooked, because the sampler ran out of passes before finishing the job. Too many steps and you hit diminishing returns: past a certain point the image barely changes, and you are just burning time and, on hosted tools, credits for no visible gain.
For most modern samplers, the useful range sits somewhere around 20 to 30 steps. Below roughly 15 you often see quality drop and detail go soft; above 40 or 50 you rarely see a meaningful improvement on standard models, and the extra time adds up fast on slower hardware. Some fast samplers produce a clean result in as few as 4 to 8 steps when paired with a turbo or distilled model built for exactly that. As always, this depends on the model, so the model card’s suggestion beats any blanket number. If your output looks soft or muddy even at a normal step count, the blurry image fix guide covers whether steps, the sampler, the VAE, or something else is the real cause.
The common samplers in plain terms
You do not need to understand the math. You need to know the character of a few workhorses so you can pick sensibly. Euler a is fast and adds a bit of pleasant randomness, so the image keeps evolving as you add steps, which some people love for creative exploration but which makes exact reproducibility harder. DPM++ 2M Karras is the reliable all-rounder, sharp and consistent, and it is the default many people reach for and rarely need to change. DPM++ SDE Karras trades a little speed for extra detail and texture, useful for final renders. DDIM is an older, fast, deterministic option that still works well and reproduces cleanly. And several models recommend a specific sampler on their card, which you should follow when they do, especially for turbo variants.
| Sampler | Speed | Quality | Good for |
|---|---|---|---|
| Euler a | Fast | Good | Quick drafts and creative exploration |
| DPM++ 2M Karras | Medium | High | A reliable everyday default |
| DPM++ SDE Karras | Slower | Very high | Extra detail and texture when you want it |
| DDIM | Fast | Good | Speed and predictable, repeatable results |
The best move for a beginner is to start with DPM++ 2M Karras, get comfortable, and only experiment with others once you know what a good result looks like on your model. Changing the sampler changes the character of the image, so test one at a time. It also works together with CFG scale, so if you switch the sampler you may want to revisit your guidance value, because the two interact.
Speed versus quality
The core tradeoff with samplers and steps is time against polish. A fast sampler at low steps gives you quick previews, ideal when you are testing prompts and want to see many variations rapidly without waiting. A higher-quality sampler at more steps gives you the clean, detailed final render once you have found a prompt and seed worth committing to. A smart workflow uses both: rough out ideas fast, then switch to a quality sampler and a locked seed for the final image.
This matters more on hosted tools, where each generation may cost credits, and on slower hardware, where every extra step adds real waiting time. Matching your step count to the moment, exploring versus finalizing, saves both time and money. There is no prize for using 50 steps on a draft you are going to throw away. The CFG and sampler tuning guide walks through dialing this in for specific models so your finals look their best without wasting passes.
Ancestral versus non-ancestral samplers
There is one distinction worth knowing because it explains a lot of confusing behavior. Some samplers are ancestral, which is what the little a in Euler a stands for. Ancestral samplers add a small amount of fresh randomness at each step, so the image keeps shifting as you add steps and never fully settles. This can produce lively, varied results, but it means two runs at slightly different step counts look different, and exact reproducibility is harder even with a fixed seed.
Non-ancestral samplers, like DPM++ 2M Karras or DDIM, converge instead. They march toward a stable result and, once they get there, more steps barely change anything. This makes them the better choice when you want predictable, repeatable output, for example when you have locked a seed and are refining one specific image. The practical rule: reach for an ancestral sampler when you are exploring and want happy accidents, and a converging one when you want control and consistency. Neither is better in the abstract; they serve different moments in your workflow.
Where to find the sampler in your tool
In most local interfaces the sampler is a dropdown labeled sampling method or sampler, sitting right next to the steps box and the CFG slider. You pick a name from the list, set the steps, and generate. In node-based tools the sampler and its settings live on a sampler node, so the ComfyUI guide shows how the scheduler and sampler fields connect there. On hosted generators the sampler is often chosen for you and hidden, since the service already pairs a sensible sampler with its model, which is one less thing to think about.
Wherever it sits, testing is easy: fix the seed, pick one sampler, note the result, then switch to another sampler and compare at the same seed and steps. Because the seed holds the starting noise steady, the only thing changing is the algorithm, so you see each sampler’s true character on the same image. A few minutes of this teaches you more than any description, and you will quickly form a personal default you trust. Once you have that default, you rarely need to touch the sampler again, which is the whole point: it is a setting you solve once per model and then leave alone while you spend your attention on the prompt, where it does the most good.

When the sampler matters most for NSFW
For most work, once you have settled on a solid sampler like DPM++ 2M Karras, the sampler is not where your attention should go. It matters most in two cases. The first is fine detail and texture on realistic renders, where a higher-quality sampler at a few more steps can render cleaner skin and sharper features, which is exactly what realism depends on. If a realistic image looks slightly soft or plasticky even with a good VAE, trying a detail-oriented sampler is a reasonable move, and the blurry image fix guide covers the wider checklist.
The second is speed on repetitive batches. If you are generating many drafts to explore poses or prompts, a fast sampler at low steps lets you see far more variations per minute, which is where ideas actually come from. Then you switch to your quality sampler for the handful of finals worth keeping. Matching the sampler to the job, fast for exploring and clean for finishing, is a bigger win than hunting for a single perfect sampler that does everything, because no such sampler exists.
There is also a reproducibility angle that matters for NSFW work specifically, where you often want the same original character to appear consistently across a set of images. A converging, non-random sampler paired with a fixed seed gives you that stability, so the character does not drift from one render to the next. If you are building a series rather than a one-off, favoring a deterministic sampler is a small choice that pays off across the whole set, and it pairs naturally with the consistency methods covered in the character consistency guide.
What to watch for
The first trap is over-high steps. Beginners often assume more is always better and push steps to 100, which wastes time and credits for no visible gain past the useful range. If added steps stop changing the image, you have passed the useful point, so come back down. The second is using an incompatible sampler for a distilled model. Turbo and lightning models are built around specific fast samplers and low step counts, and forcing a heavy sampler with many steps on them can actually make the result worse, not better, because you are working against how the model was designed. Check the model card.
The third is chasing the perfect sampler when your real problem is elsewhere. If images look wrong, the cause is often the prompt, the model, the VAE, or the CFG value, not the sampler, so swapping samplers endlessly just spins your wheels. Change one thing at a time so you can tell what actually helped. A fourth is forgetting that some samplers add randomness, so if you need an exact repeat, prefer a deterministic sampler and a fixed seed. And as with all of this, keep every subject adult and fictional.
Before and after: what steps look like
Picture the visible difference so you can diagnose it at a glance. Run a portrait at just a handful of steps on a standard, non-turbo model and the result often looks undercooked: soft edges, a faint muddiness, sometimes a bit of leftover noise texture in flat areas, as if the image did not finish developing. Now raise the steps into the normal range and the same image firms up: edges sharpen, small details resolve, and the muddiness clears. That is the sampler getting enough passes to actually complete its work.
Keep pushing steps far higher and watch what happens: almost nothing. The image at 30 steps and the image at 80 steps look nearly identical, but the second one took much longer to make. That flat stretch where more steps stop helping is the diminishing-returns zone, and living in it wastes time and credits for no benefit. Seeing both ends teaches the practical rule better than any number: add steps until the image stops improving, then stop, because everything past that point is pure cost.

How steps and the sampler work together
Steps and sampler are not independent; the right step count depends on which sampler you chose. Efficient modern samplers like DPM++ 2M Karras reach a clean result in relatively few steps, which is part of why they are popular. Older or more random samplers may need a few more steps to settle. Turbo and lightning models flip the whole equation, pairing a special fast sampler with very low steps by design, so the usual advice does not apply to them at all.
The takeaway is to treat the pair as a unit. When you switch samplers, revisit your step count, and when you switch to a distilled model, follow its recommended sampler and low step count rather than your standard habits. This pairing also interacts with CFG scale, so a big change to one often means retuning the others. It sounds fiddly, but in practice you settle on one or two trusted combinations, a fast one for drafts and a clean one for finals, and reuse them across projects. The settings guide lays out solid starting combinations if you would rather not work them out yourself.
The short version
A sampler is the algorithm that runs the denoising loop, and steps are how many passes it takes to clean noise into your image. Too few steps look undercooked, too many waste time, and the useful range for most models is around 20 to 30. There is no single best sampler, but DPM++ 2M Karras at roughly 20 to 30 steps is a sane default for standard models, while turbo models want their own fast sampler at far fewer steps. Start there, follow the model card, use a fast setup for drafts and a quality one for finals, and when you want to tune precisely, head to the CFG and sampler settings guide.
Frequently asked questions
What is a sampler in AI image generation?
A sampler is the algorithm that turns random noise into your finished image by running the denoising loop. It decides exactly how noise is removed at each pass. Different samplers take different mathematical routes to the result, trading speed for quality and smoothness, which is why the dropdown offers several options with different characters to choose from.
What are sampling steps?
Steps are how many passes the sampler takes to clean up the noise. Too few and the image looks noisy or undercooked; too many and you hit diminishing returns, wasting time and credits for little visible change. For most modern samplers, a useful range is around 20 to 30 steps, though turbo models can finish cleanly in far fewer.
Which sampler should I use?
For most standard models, DPM++ 2M Karras is a reliable everyday default that produces sharp, consistent results. Euler a is a good fast option for drafts and creative exploration. There is no universally best sampler, so start with DPM++ 2M Karras, and follow the model card when it recommends a specific one, especially for turbo and lightning models.
How many steps do I need?
It depends on the model and sampler. Around 20 to 30 steps suits most modern samplers on standard models. Below roughly 15 you often see quality drop, and above 40 to 50 you rarely see improvement. Some distilled or turbo models produce clean results in as few as 4 to 8 steps, so check the model card before pushing steps high.
What is the difference between Euler a and DPM++ 2M Karras?
Euler a is fast and adds a bit of randomness, so the image keeps evolving as you add steps, which suits creative exploration but makes exact repeats harder. DPM++ 2M Karras is a sharper, more consistent all-rounder that settles into a stable, detailed result, which is why many people use it as their everyday default. Try both on your model to feel the difference.
Do more steps always mean better quality?
No. More steps help only up to a point, after which the image barely changes and you are just wasting time and, on hosted tools, credits. If adding steps stops altering the result, you have passed the useful range and should come back down. Quality depends far more on the model, prompt, and sampler than on very high step counts.
Why does my turbo model look worse with more steps?
Turbo, lightning, and distilled models are built around specific fast samplers and very low step counts. Forcing a heavy sampler with many steps on them fights their design and can degrade the result rather than improve it. Use the sampler and low step count the model card recommends, and do not treat these fast models like standard ones.
Does the sampler affect CFG scale?
They interact, because both shape the same denoising process. Changing the sampler can make a CFG value that looked great before feel too strong or too weak, so if you switch samplers, expect to revisit your guidance value. Treat sampler, steps, and CFG scale as a group that you tune together rather than as fully independent settings you can set once.



