- Glossary
- Prompt caching
Glossary term
Prompt caching
Reusing the processed form of a repeated prompt prefix across requests, which cuts cost and latency.
Open lesson 70.1
Response, semantic and prompt caches · Chapter 70, and 3 more lessons below
In plain words
Put stable content first and mark the end of the cacheable prefix. Cached prefixes expire after a short lifetime unless reused.
Taught in
- 70.1Response, semantic and prompt cachesChapter 70, Caching layers and multi-region · main lesson
- 3.2Input vs output tokens and how pricing worksChapter 3, Context windows, tokens and cost
- 8.5Worked example: vision, PDFs and voice front endsChapter 8, Multimodal and voice
- 71.4Cutting cost without losing qualityChapter 71, Cost at scale
Also in these lessons
Content blockFiles APIInput tokensModel routingOutput tokensPDF supportResponse cacheSemantic cacheVision