# Zero-shot Prompting

- **Canonical URL:** https://getaimath.com/dictionary/zero-shot-prompting/
- **Topics:** [LLM Fundamentals](https://getaimath.com/dictionary/category/llm-fundamentals/)
- **Last updated:** 2026-11-25

## 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.

![How ChatGPT & Claude Talk: Super-Powered Autocomplete — Simple cartoon diagram showing a sentence chopped into Lego word blocks (tokens), an AI brain weighing the odds of the next word ("mat" 75%, "couch" 18%, "roof" 5%), and snapping "mat" onto the end of the sentence.](https://getaimath.com/diagrams/llm-fundamentals.png)
*Napkin Diagram (LLM Fundamentals): Language models don’t plan whole essays at once—they play a super-smart game of "guess the very next word" over and over.*

## What is an example of Zero-shot Prompting?

"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](https://getaimath.com/dictionary/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 |

## Related Concepts

- [Prompt Engineering](https://getaimath.com/dictionary/prompt-engineering/): Prompt engineering is the skill of writing and arranging instructions so an AI model gives the best possible answers.
- [One-shot Prompting](https://getaimath.com/dictionary/one-shot-prompting/): One-shot prompting is asking an AI to do a task after showing it exactly one example.
- [Assistant Message](https://getaimath.com/dictionary/assistant-message/): An assistant message is a reply written by the AI model in a conversation.
- [Few-shot Prompting](https://getaimath.com/dictionary/few-shot-prompting/): Few-shot prompting is giving an AI a handful of examples in the prompt before asking it to do the task.
- [User Prompt](https://getaimath.com/dictionary/user-prompt/): A user prompt is the message a person types to an AI model, like a question or a request.
- [Chain of Thought (CoT)](https://getaimath.com/dictionary/chain-of-thought-cot/): Chain of Thought is when an AI works through a problem step by step in writing before giving its final answer.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/zero-shot-prompting/)
