Core Parameters

The most important settings for optimal results

2.1 CFG Scale: Creativity vs. Prompt Adherence

The Classifier Free Guidance Scale (CFG Scale) determines how closely the model should follow your prompt.

Creativity Balance Prompt Adherence
7.5
1 7.5 20

Low CFG Value (1-5)

  • More creativity, interpretation
  • Less adherence to the prompt
  • More diverse, but unpredictable results

Medium CFG Value (6-10)

  • Balanced ratio
  • Ideal for most applications
  • Default: 7.5

High CFG Value (11-20+)

  • Strict prompt adherence
  • Less creative freedom
  • Can lead to exaggerated images

CFG Examples with the same prompt

Example for Low (CFG 3) CFG

Low (CFG 3)

Creative, but often far from the prompt

Example for Medium (CFG 7) CFG

Medium (CFG 7)

Good balance between creativity and prompt adherence

Example for High (CFG 15) CFG

High (CFG 15)

Strict prompt adherence, can seem exaggerated

2.2 Sampling Steps & Sampler

Sampling Steps

The number of steps the model goes through to create the image. More steps mean more details, but also longer generation time.

10 Steps
30 Steps
50+ Steps
Fast, fewer details Balanced Slow, more details

Guideline:

For most images, 20-30 steps are sufficient. Above 40-50 steps, improvements are often barely noticeable.

Sampler Algorithms

The sampler determines how the model performs the diffusion process. Each has its own strengths:

Sampler Properties Recommended Steps
Euler a Fast with good details, somewhat creative 20-25 Steps
DPM++ 2M Karras Highly detailed, good for photorealistic images 25-30 Steps
DDIM Very stable, good for inpainting 30-40 Steps

2.3 Seed: Randomness & Reproducibility

The seed is the starting value for the random generator. It determines the starting point of the image generation.

What does the seed do?

Prompt: "a castle"
Seed: 1234
Image A
Seed: 5678
Image B
Seed: 9012
Image C

Seed Strategies:

🎲
Random Seed

For exploration and diverse results. Each generated image is unique.

Seed: -1
🔁
Fixed Seed

To reproduce images or for systematic testing.

Seed: 1234567890

Pro Tip:

If you've generated an image you like, note down the seed! With the same prompt and parameters, you can reproduce the image exactly later.

Recommended Starting Values

Photorealism

  • CFG: 7-9
  • Sampler: DPM++ 2M Karras
  • Steps: 25-30

Creative Art

  • CFG: 4-7
  • Sampler: Euler a
  • Steps: 20-25

Precise Illustration

  • CFG: 9-12
  • Sampler: DDIM
  • Steps: 30-40

Learning objective achieved:

You now understand how CFG, Steps, and Seed influence the result and can make informed decisions for your generations.