DX Heroes logo
#ai
#prompting

What is zero-shot prompting?

Length: 

3 min

Published: 

June 9, 2026

What is zero-shot prompting?

What is zero-shot prompting?

Zero-shot prompting is asking an AI model to complete a task using only an instruction, with no worked examples. You describe what you want, and the model relies on what it learned during training to produce an answer. "Translate this sentence into German" or "Classify this review as positive or negative" are zero-shot prompts. The name comes from the count of examples: zero.

It is the default way most people use tools like ChatGPT or Claude. You ask, the model answers. The contrast is few-shot prompting, where you include a handful of input-output examples to show the model exactly what you mean.

In plain words

Imagine asking a well-read colleague to summarise a report. You do not first hand them three sample summaries; you just say "summarise this" and trust they know what a summary looks like. Zero-shot prompting is the same bet. The model has read enough to know the task already, so a clear instruction is often all it needs.

When to use it

  • Common tasks. Translation, summarising, rewriting, and simple classification usually work well with no examples.
  • Quick drafts and exploration. When you just need a fast first answer, a plain instruction is the cheapest and fastest path.
  • Saving tokens. No examples means a shorter prompt, which lowers cost and leaves more room in the context window.
  • As a starting point. Try zero-shot first. Add examples only if the result misses the mark.

Common pitfalls

  • Vague instructions, vague output. With no examples to anchor it, the model leans on your wording. Be specific about format, tone, and what counts as a good answer.
  • Unusual formats fail. If you need output in a strict or uncommon shape, the model has to guess. That is exactly where one or two examples beat a description.
  • Niche or private knowledge. Zero-shot relies on training data. For your own categories, edge cases, or domain quirks, few-shot examples carry information a plain instruction cannot.

Related articles:

  • What is few-shot prompting? - The next step up: showing the model a few examples instead of describing the task.
  • What is chain-of-thought prompting? - Asking the model to reason step by step for harder problems.
  • What is prompt engineering? - The broader craft of writing prompts that get reliable results.

Want to stay one step ahead?

Don't miss our best insights. No spam, just practical analyses, invitations to exclusive events, and podcast summaries delivered straight to your inbox.