Negative Prompting: Definition and Examples
Negative prompting is a technique that involves explicitly telling an AI model what it should not generate, thereby refining the results by excluding undesirable elements.
Full definition
Negative prompting is a prompt engineering method that relies on specifying elements to avoid in the output of an artificial intelligence model. Rather than just describing what you want (positive prompt), you add negative instructions to guide the model by telling it what to exclude. This approach is particularly common in image generation but also applies to language models.
In image generation (Stable Diffusion, Midjourney, DALL-E), negative prompting helps eliminate common visual artifacts like deformed hands, blurry faces, inconsistent backgrounds, or unwanted artistic styles. The model then assigns negative weight to these concepts during the generation process, reducing their likelihood in the final output.
For language models (LLMs), negative prompting takes the form of explicit instructions such as "do not include technical jargon," "avoid bullet points," or "do not fabricate information." These negative constraints help frame the response and avoid default model behaviors that do not meet user expectations.
The effectiveness of negative prompting is based on a fundamental principle: it is often easier to describe what you want to avoid than to exhaustively specify what you want. By combining positive and negative prompts, you achieve much finer control over the model's output, making it an essential technique for any prompt engineering practitioner.
Etymology
The term combines "negative" and "prompting" (giving instructions to an AI model). It emerged with the popularization of diffusion models for image generation in 2022, especially with Stable Diffusion, where a dedicated field for "negative prompts" was integrated into user interfaces.
Concrete examples
Image generation with Stable Diffusion — avoiding common visual defects
Realistic photo portrait of a woman, natural lighting, high quality | Negative: deformed hands, blurry, bad anatomy, low resolution, text, watermark
Content writing with an LLM — controlling tone and format
Explain how blockchain works. Do not use technical jargon. Do not use bullet points. Do not exceed 200 words. Avoid clichéd metaphors.
Code generation — preventing bad practices
Write a Python function for email validation. Do not use regex. Do not install an external dependency. Do not ignore edge cases like internationalized domains.
Practical usage
To use negative prompting effectively, start by identifying recurring defects in the model's outputs, then formulate explicit exclusions for each. With LLMs, integrate your negative constraints directly into the system prompt or at the end of the instruction. With image models, use the dedicated negative prompt field and adjust the CFG Scale parameter to control the intensity of the effect.
Related concepts
FAQ
Does negative prompting work with all AI models?
Should I prioritize positive or negative instructions in a prompt?
Why does my negative prompt not seem to work?
See also
How to use this prompt
- Copy the prompt with the button above.
- Paste it into ChatGPT, Claude or your favorite AI assistant.
- Replace the bracketed variables with your details, then refine the result.
About Prompt Guide
Prompt Guide is a free library of 2500+ ready-to-use prompts for ChatGPT, Claude and other AIs, with guides to learn prompting and tools to build and optimize your own prompts.
More definitions
Neural Architecture Search: Definition and Examples
Neural Architecture Search (NAS) is a machine learning technique that automates the design of neural network architectures by exploring...
O1 Model: Definition and Examples
O1 is an AI model developed by OpenAI, designed to solve complex problems through a deep internal reasoning process before formulating a response.
Ollama: Definition and Examples
Ollama is an open source tool that allows you to run large language models (LLMs) locally on your own computer, without internet connection or dependency on a
OpenAI: Definition and Examples
OpenAI is an American artificial intelligence research and deployment company, founded in 2015, best known for creating ChatGPT and the
Overfitting: Definition and Examples
Overfitting (or overtraining) refers to the phenomenon where an AI model adapts too precisely to the training data, to the point of losing its ability to generalize to new data.
P Tuning: Definition and Examples
P-Tuning is a technique for adapting large language models by optimizing continuous embeddings ("learnable prompts") inserted into the input, without modifying the model's weights.
Get new prompts every week
Join our newsletter.