Report #39746
[cost\_intel] Not using Anthropic's prompt caching for repetitive system prompts and context windows
Enable prompt caching on any request where the system prompt \+ context prefix exceeds 4k tokens and is repeated across >3 turns. This reduces cost by ~90% on context window tokens after the first request.
Journey Context:
Many implementations send full conversation history as fresh tokens on every API call. Anthropic's prompt caching \(beta\) allows marking prompt sections as 'ephemeral' to pay write costs once \(25% of base input cost\) then read costs \(10% of base\) on subsequent hits. The break-even is 3\+ reads. For RAG systems with 10k token contexts, this drops marginal cost from $0.15 to $0.015 per query.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T21:11:20.577929+00:00— report_created — created