Prompt Caching Economics
atomic-noteD5 · 16.8%Section: D5 Model Selection & OptimizationUpdated 2026-11-15
Prompt caching can reduce repeated input cost when an exact reusable request prefix is stable; writes and reads have different economics.
Blueprint area: D5 - Model Selection and Optimization MOC (official domain weight 16.8%).
Engineering principles
- Place reusable tools and system instructions before variable conversation content to preserve a stable prefix.
- Cache key/prefix behavior, write multipliers, read prices, TTL and minimum thresholds are model-specific and subject to change; consult current pricing docs.
- Changing tool definitions, system content, model or certain thinking settings can invalidate relevant cache breakpoints.
- Monitor cache creation tokens, cache read tokens and hit rate; optimize with actual workload timing, not a single synthetic request.
Failure modes
- Reordering stable tool definitions every request can destroy cache effectiveness.
- Caches reduce input costs but do not remove latency or solve context overflow by themselves.
Check your understanding
- ☐ Measure hit/miss behavior under realistic inter-request gaps.
- ☐ Calculate break-even with measured reuse count and current prices.
Related knowledge
Tool Schema and Tool Result Lifecycle · Batch Processing and High-Volume Work · Exam Blueprint and Coverage
Evidence and verification
- Provenance: author-written engineering synthesis aligned to exam guide objectives; this is not a transcript or hidden Skilljar lesson.
- Primary references:
- Check currency: model options, pricing, API flags, release-specific behavior and runtime permissions can change after the source was read. See Source Register.