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.
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 · KV cache · Context window

Guides that use it

How AI agents fail in production.

Sources

Definition updated 2026-10-29.

The Ultimate AI Glossary (2027): every term