Guide to negative prompts in Stable Diffusion

How to use negative prompts in Stable Diffusion.

The negative prompt is a parameter that tells Stable Diffusion what you don't want to see in the generated images. When specified, it guides the generation process not to include things in the image according to a given text.

A negative prompt may prevent generating specific things, styles or fix some image abnormalities. Let's look at examples comparing the same images with and without negative prompts:

Removing 'moss' from the 'elven forest':

Without negative promptNegative prompt: 'moss'

Removing 'duplication artifact' from 'portraits':

Without negative promptNegative prompt: 'duplicate'

Changing the image style completely and adding more light with a longer negative prompt:

Without negative promptNegative prompt: 'fog, darkness, grain'

We hope our guide helped you understand the negative prompts parameter in Stable Diffusion, and you'll use what you've learned to generate even better art.