Claude prompt cache TTL: what does a coffee break cost?
Anthropic told The New Stack the short default suits agents that send requests close together. Teams that stop to review code can pay to rebuild the cache.

The Claude prompt cache TTL, or time to live, is five minutes by default on Anthropic's API. Pause longer and the next request writes the cache again at a higher price. At 210,000 tokens on Opus 5.5, that turns a read of about 4 cents into a write of $1.05.
How long is the Claude prompt cache TTL?
Five minutes is the default, and each use of the cached content refreshes it at no extra charge. Anthropic's documentation says the clock starts when the request that writes or reads the entry begins. If a response takes four minutes to stream, your next request has about one minute left to reuse it.
You can ask for one hour instead by adding "ttl": "1h" to cache_control. That write costs more. Anthropic suggests the longer option for cases such as follow-ups that may arrive more than five minutes later. The company also says cache hits aren't deducted from your rate limit.
What does a pause cost on Opus 5.5 and Sonnet 5.5?
For a 210,000-token prompt, a five-minute rewrite costs 25 times as much as reading a warm cache on either model. The table applies Anthropic's list prices to the cached prompt only, leaving out new input and output tokens.
| 210,000 cached tokens | Opus 5.5 | Sonnet 5.5 |
|---|---|---|
| Read from warm cache | $0.042 | $0.021 |
| Write, five-minute TTL | $1.05 | $0.525 |
| Write, one-hour TTL | $1.68 | $0.84 |
The rates per million tokens are $0.20, $5 and $8 for Opus 5.5, and $0.10, $2.50 and $4 for Sonnet 5.5. Other models are priced differently, so check the price list for yours.
How much did pauses add in Requesty's data?
Requesty, which sells an AI gateway, found that rebuilding expired caches after pauses over five minutes took 23.1% of Claude spending in its coding traffic, against 9.3% for GPT models. It studied 30 days from October 24 to November 22 across tools including Claude Code, Codex and OpenCode. These are one vendor's figures from its own customers.
Rebuilding caches after breaks of five to 30 minutes alone took 15.2% of Claude spending, against 0.8% for GPT. Requesty also models a developer who takes four such breaks a day for 20 workdays: about $69 a month in extra cost on Opus 5.5, or about $1,380 for a team of 20. On Sonnet 5.5 its figure is about $23 a month per seat.
Which cache TTL does Claude Code use?
It depends on how you pay. On a Claude subscription within plan limits, the main conversation gets one hour and most other requests get five minutes. With an API key, a cloud provider or paid usage credits, the default is five minutes.
Version 2.1.242 or later lets you pick. For one hour on the main conversation, set promptCacheTtl in settings, or the variable CLAUDE_CODE_PROMPT_CACHE_TTL, to 1h. Other requests take subagentPromptCacheTtl. To confirm what was written, run claude -p "hello" --output-format json, then look at the usage.cache_creation field. Using your own LLM gateway through ANTHROPIC_BASE_URL? For one hour to work, it has to pass the anthropic-beta header along unchanged. On version 2.1.251 or later, /usage also shows whether the main cache is warm.
Does the one-hour cache save money?
The one-hour cache saves money only for some usage patterns. Anthropic told The New Stack that "the 5-minute cache costs less to write" and is usually the cheaper pick for busy agents. The publication reported that in Anthropic's tests on Opus 5.5 and Sonnet 5.5, with only seconds between requests, the five-minute setting came out 15% to 19% cheaper.
Requesty's replay found that turning on one hour from the first turn left 87% to 89% of sessions paying more, although the total Claude coding bill still came out about 1% to 10% lower, depending on the model. Switching after the first long pause, from turn 10 onward, saved about 5% to 7% net. Keep-alive requests after each 4.5 idle minutes, capped by session depth, saved about 8% to 9% net, though 43% to 52% of long sessions individually spent more on them than they saved. Requesty notes that Anthropic rejects max_tokens: 0 pings with some features, including enabled thinking and structured outputs.
What should IT teams do about Claude prompt cache TTL today?
Measure your own pauses before changing a default, because the answer depends on how your developers and agents work.
- Check which billing route each team uses, since it sets the Claude Code default.
- Read the cache_creation output to see which TTL you're getting, and the /usage line for the hit ratio.
- Try one hour on the main conversation for developers who often stop for review, and compare a few weeks of bills.
- Keep five minutes for agents that fire requests seconds apart.
- Don't switch a warm five-minute session to one hour midway. Requesty's live tests on Anthropic's API and Vertex saw the whole prompt rewritten.
For related reading, see what Claude Managed Agents on Bedrock cost and the Claude Code secrets allowlist fix.