Guidance (CFG)

The strength of prompt guidance during generation.

Excessive guidance can produce harsh contrast or distorted shapes

Typical 5-10Default 7.5

Classifier-free guidance, or CFG, adjusts the difference between predictions made with the positive prompt and with an empty or negative prompt.Increasing it can improve agreement with the prompt. Excessive guidance can produce harsh contrast, unnatural colours, or distorted shapes. It does not make the model follow every instruction literally.Useful values depend on the model. Some fast or distilled models use little or no classifier-free guidance. Start with the model's suggestions and compare small changes.Other settings, including the sampler and step count, affect how a guidance value behaves.

The examples on this page were made from one prompt, one model and one seed, changing only the setting shown. Other pictures, models and settings respond differently; compare on your own request with the seed and the other settings fixed.