How many cache hits do you need to save money?
The example sends an identical 100,000-token prefix repeatedly. The first request writes it, and each later request hits before expiry. Only the shared prefix is counted. Add fresh input and output separately for the full request bill.
| Model | Requests sharing prefix | Without caching | With 5-minute caching | Prefix savings |
|---|---|---|---|---|
| Claude Opus 5.5 | 1 | $0.40 | $0.50 | −$0.10 |
| Claude Opus 5.5 | 2 | $0.80 | $0.52 | $0.28 |
| Claude Opus 5.5 | 5 | $2.00 | $0.58 | $1.42 |
| Claude Opus 5.5 | 10 | $4.00 | $0.68 | $3.32 |
| Claude Sonnet 5.5 | 1 | $0.20 | $0.25 | −$0.05 |
| Claude Sonnet 5.5 | 2 | $0.40 | $0.26 | $0.14 |
| Claude Sonnet 5.5 | 5 | $1.00 | $0.29 | $0.71 |
| Claude Sonnet 5.5 | 10 | $2.00 | $0.34 | $1.66 |
A single write costs more than sending the prefix once. One successful read makes the two-request total cheaper for these rates. If the cache expires or the prefix changes, budget for another write when the cache is populated again.
How to estimate savings for a real repository
Measure cache creation and cache reads over a representative batch of tasks. Group calls by the stable prefix they share, such as tool definitions and repository instructions. Compare total cache charges with the standard input cost for the same tokens. If long gaps break reuse, check the one-hour write price and weigh it against how many additional reads you expect to recover.
Why can the total bill fall by less than the table shows?
New files, changing instructions and generated output are separate billable work. The table gives savings on one fixed input prefix. Use the full token breakdown to compare an API workflow with your Claude subscription.
Sources
Source figures reviewed on .