An eight-minute break during a Claude Opus 5.5 coding session with 210,000 tokens of context can transform a $0.04 cache read operation into a $1.05 cache write, according to findings published Tuesday by Requesty, an AI gateway provider. The company analyzed 30 days of production traffic flowing through its platform between October 24 and November 22, examining usage patterns across Claude Code, OpenCode, Codex, Pi, and Kilo.

Requesty's research uncovered that rebuilding expired prompt caches following pauses of five to 30 minutes represented 15.2% of total Claude API spending in its dataset, substantially higher than the 0.8% figure observed for GPT models. Anthropic attributes its five-minute default cache duration to typical request patterns during agent execution.

The 5-minute cache costs less to write, so it's usually the better value when requests come close together, as they often do when an agent is working.

Anthropic

Testing conducted by Anthropic using Claude Opus 5.5 and Sonnet 5.5 demonstrated that five-minute caching delivered 15% to 19% cost savings compared to one-hour caching when requests arrived seconds apart.

The five-minute cache trap

Claude Sonnet 5.5 and GPT-6.1 Sol share identical pricing structures: $2 per million input tokens and $10 per million output tokens, with cache writes charged at 1.25 times the input rate and reads at 0.05 times the rate. However, Sonnet 5.5 experienced cache misses 81.2% of the time following pauses between five and 30 minutes, compared with just 2.3% for GPT-6.1 Sol.

Anthropic's five-minute time-to-live includes the duration of model response generation, leaving developers approximately one minute to review output and submit another request if a reasoning turn consumes four minutes. Requesty estimates that a 20-person engineering team relying on Opus 5.5 could incur an additional $1,380 monthly in cache rebuilding costs, assuming each developer takes four breaks lasting five to 30 minutes per workday across a 20-day month.

When pauses exceed 30 minutes—a threshold where both providers' default caches expire—additional costs represent 7.8% of Claude spending and 8.5% of GPT spending, according to Anthropic.

What code review costs

Engineering teams implementing mandatory code review workflows face heightened cache expiration expenses when human inspection of diffs and agent actions extends beyond the remaining time-to-live window.

Developers should take the time they need to review code.

Anthropic

Anthropic clarifies that Claude Code applies a one-hour cache default to main conversations when developers operate within their subscription's included usage tier. The five-minute default applies exclusively when developers authenticate using API keys, connect through cloud providers, or consume paid usage credits after exhausting their subscription allowance. Requesty's billing analysis did not capture what developers performed during gaps between requests.

When one-hour caching wins

Writing to a one-hour cache incurs twice Anthropic's standard input rate. Requesty determined that applying the longer time-to-live universally would increase costs for 87% to 89% of individual sessions. Although roughly 76% of Claude coding conversations in the dataset completed within five minutes, sessions exceeding one hour accounted for approximately 80% of total spending.

If pauses between 5 minutes and 1 hour are common, choose the 1-hour cache at the start of the conversation, since switching partway through means rebuilding the cache.

Anthropic

Testing on Anthropic's API and Google Cloud's Vertex AI revealed that modifying the time-to-live of an active cache from five minutes to one hour requires rewriting the entire cached prefix. Delaying the switch until cache expiration in conversations reaching at least 10 turns reduced estimated Claude spending by 5% to 7% in Requesty's simulations.

Beginning with Claude Code v2.1.242, developers can configure promptCacheTtl to 1h for primary conversations while maintaining five-minute caching for subagents through subagentPromptCacheTtl.

Keep the cache alive

Requesty tested a keep-alive strategy in which the harness resubmits the previous API request after 4.5 minutes of inactivity, setting max_tokens to zero and disabling streaming. By constraining keep-alive requests based on conversation depth, Requesty projected net savings of 8% to 9%.

This approach demands retention of the prior request body and consistent use of the same provider, region, and credentials. It remains incompatible with explicitly enabled thinking, structured outputs, forced tool selection, and Message Batches. Despite aggregate savings, keep-alive requests raised costs for 43% to 52% of extended sessions in Requesty's simulations.

Claude Code v2.1.251 and later versions expose cache hit ratios and miss counts via /usage, while OpenTelemetry enables tracking of cache read and creation tokens segmented by user and session.