# One-shot prompting

Canonical page: https://www.theglitch.ai/ai-glossary/one-shot-prompting

Giving a model exactly one example of the task before asking it to do the real one.

[One-shot prompting, common card \#155 in The Glitch AI glossary: Giving a model exactly one example of the task before asking it to do the real one.](https://www.theglitch.ai/images/cards/glossary/one-shot-prompting.png?v=0a848702804a5d1c)

GLS 155 · common

For: Beginner

## Why it matters

One good example often fixes format problems instantly.

## In practice

Show one finished product description, then ask for ten more in the same style.

## Watch for

The model may copy the example too closely; vary it if you see clones.

## Related terms

[Zero-shot prompting](https://www.theglitch.ai/ai-glossary/zero-shot-prompting) · [Few-shot prompting](https://www.theglitch.ai/ai-glossary/few-shot-prompting)

## Sources

- [Google ML glossary: one-shot prompting](https://developers.google.com/machine-learning/glossary#one-shot-prompting)

Definition updated 2026-11-02.

[The Ultimate AI Glossary (2027): every term](https://www.theglitch.ai/ai-glossary)

---

Site: [The Glitch](https://www.theglitch.ai) · [About Rabin](https://www.theglitch.ai/about) · [Agent guide](https://www.theglitch.ai/agent.md)
