Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Negative Prompts in Stable Diffusion: How to Use Them

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Negative prompts in Stable Diffusion tell the model what you don't want in the image, which dramatically improves output quality—especially for removing unwanted objects, fixing anatomy, or avoiding style artifacts. To use one, simply type your desired elements in the positive prompt box, then type the things you want to exclude into the negative prompt box (or append them with --neg if you're using a command-line interface). The model then avoids those concepts during generation. You don't need any special software—most Stable Diffusion interfaces (Automatic1111 WebUI, ComfyUI, InvokeAI, and many online services) have a dedicated negative prompt field.

What You'll Need

  • A Stable Diffusion interface that supports negative prompts (most do; if you're unsure, check the settings or help—if there's a second text box labeled "Negative prompt" or "Exclude," you're set).
  • Your positive prompt already written (the thing you want to see).
  • Basic understanding of what you want to avoid (e.g., blurry, extra fingers, text).

Step-by-Step

  1. Open your Stable Diffusion interface. This works in the popular Automatic1111 WebUI (the most common), ComfyUI, InvokeAI, or any online service like DreamStudio or Hugging Face Spaces. The steps are nearly identical—look for a second text input.
  2. Write your positive prompt as usual. For example: "a red apple on a wooden table, studio lighting, high detail".
  3. Locate the negative prompt field. In Automatic1111, it's directly below the positive prompt box, labeled "Negative prompt." In ComfyUI, you'll see a node called "CLIP Text Encode (Negative)" that you connect to the sampler. In online tools, it might be under "Advanced settings" or a toggle labeled "Show negative prompt." If you can't find it, check the settings or the help menu—labels can differ slightly by version.
  4. Type the things you want to avoid. Start with common ones: "blurry, low quality, distorted, ugly, extra fingers, bad anatomy, watermark, text, signature". Use commas to separate them. You can also use specific terms like "cartoon" if you want a photorealistic image, or "3d render" if you want a painting.
  5. Adjust the strength (if your interface allows it). Some tools have a "CFG scale" or "guidance scale" for negative prompts. A value between 7 and 12 is common. Higher values make the model follow the negative prompt more strictly, but too high (above 15) can cause artifacts. If you're not sure, leave it at the default.
  6. Generate the image. Click the Generate button (or press Ctrl+Enter in most WebUIs). The model will now try to avoid the terms you listed.
  7. Iterate. If the output still has unwanted elements, add those specific words to the negative prompt. For example, if you get extra fingers, add "extra fingers" and "six fingers". If you get a weird background, add "cluttered background" or "noise".
  8. Use parentheses for emphasis (optional). In some interfaces, you can increase the weight of a negative term by putting it in parentheses: "(blurry:1.2)" makes the model avoid blurriness more strongly. But this is advanced—start without it.
  9. Save your negative prompt as a preset. Many interfaces let you save prompt presets. In Automatic1111, you can use the "Styles" feature to save a negative prompt and load it with one click. This saves time if you always want to avoid the same things.

Common Mistakes

  • Putting negative terms in the positive prompt. Writing "no blur" in the positive prompt often makes the model generate blurry images because it tries to include the concept of "blur." Always use the negative field.
  • Using too many negative terms. A huge list can confuse the model and degrade quality. Stick to 5–15 key terms. If you need to exclude a lot, prioritize the most impactful ones.
  • Using vague terms like "bad" or "ugly." These are subjective; the model doesn't know what you mean. Be specific: "bad anatomy," "deformed," "asymmetric eyes."
  • Forgetting to reset the negative prompt. If you saved a preset, you might carry over terms from a previous generation that now harm your new image. Always clear or update the negative prompt when changing subjects.
  • Expecting perfection. Negative prompts reduce the chance of unwanted elements but don't guarantee their absence. You may still need to regenerate or use inpainting to fix stubborn issues.

Tips

  • Start with a standard set: "blurry, low quality, distorted, ugly, extra fingers, bad anatomy, watermark, text" works well for most photorealistic generations.
  • Use negative prompts to control style. If you want a photo, add "painting, illustration, cartoon, 3d render". If you want a drawing, add "photo, photorealistic".
  • Combine with positive prompt synonyms. If you want a "cat" but keep getting "dog," add "dog" to the negative prompt and also try "feline" in the positive.
  • Check the seed. If you get a nearly perfect image but one flaw, fix the negative prompt and use the same seed to reproduce the rest. In most interfaces, you can copy the seed from the last generation and paste it back.
  • Use negative prompts for safety. If you're generating for a public platform, you can add terms like "nsfw" or "explicit" to avoid unwanted content (though this isn't a guarantee—always review output).

Troubleshooting

If the negative prompt seems to have no effect:

  1. Check that you typed in the correct field—it's easy to accidentally put everything in the positive box.
  2. Make sure your interface version actually supports negative prompts. If you're using an older or minimal interface, it might not. Update to the latest version or switch to a more full-featured one like Automatic1111.
  3. Increase the CFG scale slightly (e.g., from 7 to 10) to make the model follow prompts more strictly. But don't go above 15—that can cause oversaturation.
  4. Try simpler negative terms. Sometimes the model ignores long, complex phrases. Use single words like "blurry" instead of "blurry image."

If the image becomes worse (e.g., too contrasty or weird colors):

  1. Lower the CFG scale back to default (7–8).
  2. Remove any parenthetical weights you added—they might be too strong.
  3. Reduce the number of negative terms to the most essential ones.

If you get a blank or black image:

  1. This can happen if your negative prompt contains terms that conflict with the positive prompt too strongly. For example, if you put "cat" in negative and "cat" in positive, the model gets confused. Remove conflicting terms.
  2. Try restarting the interface or clearing the cache—sometimes a glitch causes a black output.

If the negative prompt is ignored in ComfyUI:

  1. Make sure you connected the negative CLIP Text Encode node to the sampler's "negative" input. Double-check the node connections—it's easy to connect it to the positive input by mistake.

Frequently Asked Questions

What is the default negative prompt in Stable Diffusion?

There is no default—it's empty by default. However, many users adopt a standard set like "blurry, low quality, distorted, ugly, extra fingers, bad anatomy, watermark, text" to start.

Can I use negative prompts in online Stable Diffusion services?

Yes, most online services (like DreamStudio, Playground AI, or Hugging Face Spaces) have a negative prompt field, though it may be hidden under "Advanced settings." If you don't see it, check the documentation or look for a toggle.

How long should a negative prompt be?

Keep it concise—5 to 15 terms is typical. Too many can degrade quality. Focus on the most likely problems for your specific image.

Does the negative prompt affect speed or cost?

No, it doesn't significantly affect generation time or cost. It's processed in the same forward pass as the positive prompt.

Can I use negative prompts to fix anatomy issues?

Yes, adding terms like "extra fingers," "deformed hands," or "bad anatomy" often helps, but it's not a guaranteed fix. For persistent anatomy problems, consider using a model fine-tuned for humans or post-processing with inpainting.

What's the difference between negative prompt and CFG scale?

Negative prompt tells the model what to avoid; CFG scale controls how strictly the model follows both positive and negative prompts. A higher CFG makes the model adhere more to both, but too high can cause artifacts.