# Prompt caching

Canonical page: https://www.theglitch.ai/ai-glossary/prompt-caching

Reusing the processed start of a prompt across calls, so repeated instructions or documents are cheaper and faster.

[Prompt caching, common card \#173 in The Glitch AI glossary: Reusing the processed start of a prompt across calls, so repeated instructions or documents are cheaper and faster.](https://www.theglitch.ai/images/cards/glossary/prompt-caching.png?v=cc1f25100e45752d)

GLS 173 · common

Also called: Context caching.

For: Builders

## Why it matters

Agents and chat apps resend the same long context constantly; caching can cut cost and latency sharply.

## In practice

A support bot caches its 20-page policy manual and only pays full price for each new question.

## Watch for

Caches expire and only match identical prefixes; put the stable part first.

## Related terms

[Cost per token](https://www.theglitch.ai/ai-glossary/cost-per-token) · [KV cache](https://www.theglitch.ai/ai-glossary/kv-cache) · [Context window](https://www.theglitch.ai/ai-glossary/context-window)

## Guides that use it

[How AI agents fail in production.](https://www.theglitch.ai/learn/agent-failure-modes)

## Sources

- [Anthropic docs: Prompt caching](https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching)

Definition updated 2026-10-29.

[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)
