Report #91454
[cost\_intel] Prompt caching cost savings vanish with low cache hit rates or short prefixes
Only enable Anthropic prompt caching for contexts >1024 tokens with >90% hit rate; otherwise, use standard API with context compression or truncate static prefixes
Journey Context:
Anthropic charges 1.25x for cache writes but 0.1x for cache reads. Break-even requires 90% hit rate; at 80% hit rate, costs exceed standard API by 15%. Additionally, prefixes <1024 tokens incur the write penalty without sufficient read savings due to minimum billing granularity. Many implementers see 50-70% hit rates in RAG systems with rotating document sets and accidentally double costs versus stateless requests.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T12:05:54.785098+00:00— report_created — created