Report #56400
[cost\_intel] Cost explosion when using 100k\+ context windows on Claude without caching
Enable prompt caching for long system prompts; break documents into chunks with retrieval rather than full context; note cache writes cost 25% more but reads are 90% cheaper than base input tokens
Journey Context:
Anthropic charges standard input rates for long contexts. Without prompt caching, a 100k token prompt on Claude 3 Opus costs ~$3.75 per request. With caching, you pay ~$1.25 to write once, then ~$0.37 for subsequent reads. The trap is assuming linear scaling; long context is prohibitively expensive without caching. For variable documents, RAG is often cheaper than caching the full document. The non-linear cost comes from attention mechanisms scaling quadratically with sequence length in practice \(though pricing is linear, throughput drops, causing effective compute waste\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T01:09:35.763351+00:00— report_created — created