ReadingResearchRadarInvestment framework
Sign in / Sign up
← Back to reading
NewsQuick take4 min readDisconfirmAI Editorial

AI gateway provider Requesty: Claude API cache rebuilds account for 15.2% of spend

AI gateway provider Requesty reports that rebuilding expired prompt caches after short pauses accounts for 15.2% of observed Claude API spending, compared to 0.8% for GPT models.

2026-12-05 23:30 GMT+8

During a Claude Opus 5.5 coding session carrying 210,000 tokens of context, an eight-minute coffee break can turn a $0.04 cache read into a $1.05 cache write, according to Requesty, an AI gateway provider that published its analysis of 30 days of production traffic on Tuesday.

Requesty analyzed coding-agent traffic through its gateway between October 24 and November 22 across Claude Code, OpenCode, Codex, Pi, and Kilo. The company found that the additional cost of rebuilding expired prompt caches after pauses of five to 30 minutes accounted for 15.2% of observed Claude API spending, compared with 0.8% for GPT models.

Anthropic tells The New Stack that its five-minute default is based on the frequency of requests 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," the company says.

In its own tests with Claude Opus 5.5 and Sonnet 5.5, Anthropic found that five-minute caching cost 15% to 19% less than one-hour caching when requests arrived seconds apart.

Claude Sonnet 5.5 and GPT-6.1 Sol have identical pricing at $2 per million input tokens and $10 per million output tokens, with cache writes costing 1.25 times the input rate and reads costing 0.05 times the rate.

Sonnet 5.5 missed the cache 81.2% of the time following pauses of five to 30 minutes, compared with 2.3% for GPT-6.1 Sol, according to Requesty.

The five-minute TTL on Anthropic's API includes the time the model spends generating a response, leaving developers roughly a minute to review the output and submit another request if a reasoning turn takes four minutes.

Requesty estimates that a 20-person engineering team using Opus 5.5 could spend an additional $1,380 a month rebuilding expired caches, assuming each developer takes four breaks of five to 30 minutes per workday over a 20-day working month.

Sign in / Sign up
ReadingResearchRadarInvestment framework

Anthropic notes that for pauses exceeding 30 minutes, when both providers' default caches expire, the additional costs account for 7.8% of Claude spending and 8.5% of GPT spending.

For engineering teams that require developers to inspect diffs and approve agent actions, cache expiration can increase human oversight costs when reviews take longer than the remaining TTL.

"Developers should take the time they need to review code," Anthropic tells The New Stack.

The company clarifies that Claude Code defaults to a one-hour cache for the main conversation when developers operate within their subscription's included usage. The five-minute default applies when developers authenticate with API keys, use cloud providers or consume paid usage credits after exceeding their subscription allowance.

Requesty's billing data does not reveal what developers were doing between requests.

Writing to a one-hour cache costs twice Anthropic's standard input rate. Requesty found that using the longer TTL for every conversation would increase costs for 87% to 89% of individual sessions. About 76% of the Claude coding conversations in its dataset finish within five minutes, but those lasting more than an hour account for roughly 80% of 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 says.

In tests on Anthropic's API and Google Cloud's Vertex AI, Requesty found that changing the TTL of an active cache from five minutes to one hour required rewriting the entire cached prefix. Waiting until the cache expired before switching to one hour in conversations that had reached at least 10 turns reduced overall Claude spending by an estimated 5% to 7% in Requesty's simulations.

As of Claude Code v2.1.242, developers can set promptCacheTtl to 1h for the main conversation and keep subagents on five-minute caching using subagentPromptCacheTtl.

Requesty also tested a keep-alive mechanism in which the harness resends the previous API request after 4.5 minutes of inactivity with max_tokens set to zero and streaming disabled. By limiting keep-alive requests according to conversation depth, Requesty estimated net savings of 8% to 9%.

The approach requires retaining the previous request body and using the same provider, region, and credentials. It is incompatible with explicitly enabled thinking, structured outputs, forced tool selection, and Message Batches.

Despite the overall savings, keep-alive requests increased costs for 43% to 52% of long sessions in Requesty's simulations.

Claude Code v2.1.251 or later reports cache hit ratios and miss counts through /usage, while OpenTelemetry tracks cache read and creation tokens by user and session.

Sources

  • thenewstack.ioThe New Stack↗
Continue researching →