Daily repeated calls to the same long prompt: How much API cost can Prompt Caching really save? A real calculation with 4 models and 100 calls

img-b4b0929b3ac69632501744be

Abstract: Using a single workload, this article calculates the cost of Prompt Caching across four parts — cache writes, cache reads, dynamic input, and output — and explains how hit rate, TTL, and call cadence affect the actual savings. Conclusion: The workload in this article assumes a fixed prefix of 20K tokens per call, 500 … Read more