Zero-shot Prompting
What is Zero-shot Prompting?
In one sentence: Zero-shot prompting is asking an AI to do a task without giving it any examples first.
You just describe what you want and trust the model to figure it out from what it already knows. Large models are often good at this because they have seen so many kinds of tasks during training.
What does Zero-shot Prompting look like?
"Translate 'good morning' into Spanish" is a zero-shot prompt.
Why does Zero-shot Prompting matter?
Zero-shot prompting is quick and often works, but adding examples can improve tricky tasks.
Zero-shot Prompting vs. Few-shot Prompting
Zero-shot prompting gives instructions alone with zero examples, while few-shot prompting includes 2–5 worked input-output examples inside the prompt to demonstrate exact style or edge cases.
| Dimension | Zero-shot Prompting | Few-shot Prompting |
|---|---|---|
| Examples in prompt | 0 (instructions only) | Typically 2–5 input → output pairs |
| Prompt token cost | Minimal | Higher (examples repeat on every call) |
| When to use | Clear everyday tasks on strong models | Strict formatting, nuanced tone, tricky edge cases |
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/zero-shot-prompting/">Zero-shot Prompting, explained simply</a> (The AI Math Dictionary)