Three knobs control a ComfyUI image most: steps, CFG, and the sampler. Steps set how many denoising iterations run, and CFG sets how strictly the sampler follows the prompt. The right values depend on the model, so set them deliberately instead of leaving whatever the workflow shipped with.
What you need
- ComfyUI installed with a model loaded
- A prompt to test with
- Knowledge of which model is loaded: SDXL or FLUX
Step 1: Set steps and CFG for your model
In the KSampler node, set the steps and CFG for the model: SDXL takes 20 to 30 steps with a CFG of 6 to 8, FLUX schnell takes 4 steps with a CFG of 1, and FLUX dev takes 20 steps with a CFG of 3.5. Leave the sampler on a default such as euler.
Step 2: Queue the prompt
Write a short prompt in the positive text node and click Queue Prompt. Wait for the image to appear in the Save Image node.
Step 3: Check the image and adjust once
Look at the image: too few steps gives a noisy or unfinished image, and too high a CFG gives oversaturated and strange colours. Change one knob at a time and queue again until the image looks right.
Worked example: synthetic steps and CFG test
The table below is a synthetic example. It shows the expected result of setting steps and CFG; no image was generated.
| Model | Steps | CFG | Result |
|---|---|---|---|
| SDXL | 25 | 7 | Clean image |
| SDXL | 5 | 7 | Noisy, unfinished |
| SDXL | 25 | 15 | Oversaturated, strange |
| FLUX schnell | 4 | 1 | Clean image |
Expected result (UNTESTED). SDXL at 25 steps and CFG 7 gives a clean image, 5 steps gives a noisy one, CFG 15 gives an oversaturated one, and FLUX schnell at 4 steps and CFG 1 gives a clean image. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- More steps is not always better; past the sweet spot, images get overcooked.
- FLUX does not use negative prompts, while SDXL-family models do.
- Change one knob at a time, or you will not know which change fixed the image.
