Prompt caching can pay after 1 or 2 successful reuses

By AI Compare10 min readMethod: calculated and measured
Line chart comparing calculated cached-prefix input costs with ordinary input costs as successful prompt reuses increase.

Prompt caching is calculated to become cheaper after 1 successful reuse with the short Claude and OpenAI options below, or 2 successful reuses with their longer options. Gemini implicit caching saves on its first successful reuse, with no write premium, but a hit is not guaranteed. For an assumed 50,000-token prefix sent 20 times with every follow-up hitting, the short Claude option costs $0.220 instead of $2.00, a calculated 89% saving on that prefix's input.

How the break-even calculation works

A prefix is the unchanged beginning of a prompt that later requests can reuse. A token is the unit used to price model input. This calculation counts only the eligible prefix, so a cache read means reading that whole prefix at the documented discounted rate. A reuse excludes the initial request, which starts without a matching cache entry.

The selected models are Claude Sonnet 5.5, GPT-6.2 Sol and Gemini 3.1 Pro Preview. The comparison uses paid Standard text-input prices and compares each cache option with ordinary input on the same model. It does not rank the models' answers.

The formula in words: multiply prefix tokens by the initial write price, add prefix tokens times successful reuses times the read price, then divide by 1,000,000 to convert the per-million rates into dollars. Ordinary input costs prefix tokens times total requests times the ordinary input price, divided by the same denominator. For Gemini implicit caching, the initial request uses ordinary input instead of a premium write rate.

To find the first saving, divide the write premium above ordinary input by the saving from each read. The successful reuse count must be strictly greater than that ratio. In everyday terms, the discounted reads must repay the extra cost of putting the prefix into the cache. A tie does not count as saving.

A worked Claude example

Assume an unchanged prefix of 50,000 tokens. That middle scenario represents a reusable reference collection, rather than a changing conversation. The documented ordinary input rate is $2.00 per million tokens and the read rate is $0.10. The calculated short-write rate is $2.50, using the documented multiplier for a 5-minute lifetime.

The arithmetic can be followed directly:

  • Ordinary prefix input: 50,000 multiplied by $2.00, divided by 1,000,000, equals $0.100 per request.
  • Initial short write: 50,000 multiplied by $2.50, divided by 1,000,000, equals $0.125.
  • Each read: 50,000 multiplied by $0.10, divided by 1,000,000, equals $0.005.
  • The write premium is $0.125 minus $0.100, or $0.025. Each successful read saves $0.100 minus $0.005, or $0.095.

The first full reuse brings calculated caching cost to $0.130, below $0.200 for ordinary input over 2 requests. For the assumed 20-request workload, 19 reads cost $0.095. Add the initial $0.125 write to get $0.220. Subtract that from $2.00 in ordinary input to get $1.78, or 89%.

The long Claude write costs $0.200 for the same prefix. After the first reuse, its calculated $0.205 total is still above $0.200. After 2 reuses, $0.210 is below $0.300: the longer option needs 3 total requests to start saving.

What the results show

Write premiums determine the reuse threshold

The table separates ordinary input, the total initial write price and the read price. These are alternative input prices for the selected tokens; the write price is not added on top of ordinary input.

OptionOrdinary USD / 1MWrite or cold USD / 1MRead USD / 1MReuses to save
Claude, 5 min$2.00$2.50$0.101
Claude, 1 h$2.00$4.00$0.102
OpenAI, 30 min$2.00$2.50$0.101
OpenAI, 12 h (Responses API)$2.00$5.00$0.102
Gemini implicit$2.00$2.00$0.201
Documented ordinary and read rates; calculated total write or cold-input rates and first strictly cheaper reuse counts. Prices are USD per million prefix tokens. Every follow-up is assumed to hit.

For these selected rates, the 5-minute Claude and 30-minute OpenAI options share the same calculated threshold of 1 reuse. Claude's 1-hour option needs 2 reuses, and OpenAI's 12-hour option needs 2. Gemini implicit caching has no initial premium to repay, so 1 actual discounted read is enough. The OpenAI 12-hour option is the Responses API choice documented in its caching guide.

How does the billable prefix cost grow after the initial request? The following chart holds the assumed prefix size fixed and adds successful full-prefix reads.

How quickly do successful reuses recover the write premium?Calculated prefix-input cost versus successful reuses. Claude and OpenAI short writes share a curve because their selected token rates match. Ordinary input rises faster than any full-hit cached curve.How quickly do successful reuses recover the write premium?Ordinary inputClaude short / OpenAI shortClaude longOpenAI longGemini implicit$0.000$0.200$0.400$0.600012345Successful reuses after initial request (count)Cumulative prefix input cost (USD)Ordinary input: 0, $0.100Ordinary input: 1, $0.200Ordinary input: 2, $0.300Ordinary input: 3, $0.400Ordinary input: 4, $0.500Ordinary input: 5, $0.600Claude short / OpenAI short: 0, $0.125Claude short / OpenAI short: 1, $0.130Claude short / OpenAI short: 2, $0.135Claude short / OpenAI short: 3, $0.140Claude short / OpenAI short: 4, $0.145Claude short / OpenAI short: 5, $0.150Claude long: 0, $0.200Claude long: 1, $0.205Claude long: 2, $0.210Claude long: 3, $0.215Claude long: 4, $0.220Claude long: 5, $0.225OpenAI long: 0, $0.250OpenAI long: 1, $0.255OpenAI long: 2, $0.260OpenAI long: 3, $0.265OpenAI long: 4, $0.270OpenAI long: 5, $0.275Gemini implicit: 0, $0.100Gemini implicit: 1, $0.110Gemini implicit: 2, $0.120Gemini implicit: 3, $0.130Gemini implicit: 4, $0.140Gemini implicit: 5, $0.150
Calculated at 50,000 prefix tokens with every follow-up hitting. Claude short and OpenAI short overlap. A reuse excludes the cold initial request; lines join integer scenarios. Open this chart as an SVG file.
Data in this chart
SeriesSuccessful reuses after initial request (count)Cumulative prefix input cost (USD)
Ordinary input00.1
Ordinary input10.2
Ordinary input20.3
Ordinary input30.4
Ordinary input40.5
Ordinary input50.6
Claude short / OpenAI short00.125
Claude short / OpenAI short10.13
Claude short / OpenAI short20.135
Claude short / OpenAI short30.14
Claude short / OpenAI short40.145
Claude short / OpenAI short50.15
Claude long00.2
Claude long10.205
Claude long20.21
Claude long30.215
Claude long40.22
Claude long50.225
OpenAI long00.25
OpenAI long10.255
OpenAI long20.26
OpenAI long30.265
OpenAI long40.27
OpenAI long50.275
Gemini implicit00.1
Gemini implicit10.11
Gemini implicit20.12
Gemini implicit30.13
Gemini implicit40.14
Gemini implicit50.15

The ordinary-input line rises faster than every cached curve because each plotted follow-up pays the ordinary rate instead of the read rate. The short Claude and OpenAI curves overlap because their selected write and read rates match. None of the curves predicts whether a request will get a hit.

Prefix size changes dollars, not the threshold

The same calculation at different assumed prefix lengths shows how much money is at stake. Each row starts cold and has 19 successful reads across 20 requests.

Prefix (tokens)Ordinary (USD)With cache (USD)Saving (USD)
10,000$0.400$0.044$0.356
50,000$2.000$0.220$1.780
100,000$4.000$0.440$3.560
Calculated Claude short-cache prefix costs for 20 requests and 19 full-prefix reads, using assumed token counts. The first request writes the prefix.

Calculated short-Claude caching cost rises from $0.044 at 10,000 tokens to $0.440 at 100,000 tokens. Prefix length multiplies both sides of the comparison, so it cancels out of the reuse threshold. A larger eligible prefix saves more dollars per hit, while the selected price tier stays fixed.

Request spacing can make the longer lifetime cheaper

A cache lifetime, also called a time to live, is the retention interval specified for an entry. Anthropic documents that the lifetime starts when the request starts, rather than when its response ends. Its caching guide explicitly describes refreshes for the default short cache. The following scenario assumes full reads refresh either selected lifetime, including the longer option, and assumes expiry at or beyond that lifetime. That longer-cache refresh policy is a scenario assumption, not a separately quoted guarantee. Prefixes remain unchanged.

What happens when the same workload's requests move farther apart? The step chart changes the equal interval between request starts while keeping the prefix and request count fixed.

When does a longer Claude lifetime reduce prefix cost?Calculated costs for equally spaced request starts. Short-cache cost rises at its assumed expiry boundary; long-cache cost rises at its later boundary. Ordinary input cost stays constant.When does a longer Claude lifetime reduce prefix cost?Claude, 5 minClaude, 1 hOrdinary input$0.000$1.000$2.000$3.000$4.000020406080Gap between request starts (minutes)Workload prefix input cost (USD)Claude, 5 min: 1, $0.220Claude, 5 min: 4, $0.220Claude, 5 min: 5, $2.500Claude, 5 min: 6, $2.500Claude, 5 min: 15, $2.500Claude, 5 min: 30, $2.500Claude, 5 min: 59, $2.500Claude, 5 min: 60, $2.500Claude, 5 min: 61, $2.500Claude, 1 h: 1, $0.295Claude, 1 h: 4, $0.295Claude, 1 h: 5, $0.295Claude, 1 h: 6, $0.295Claude, 1 h: 15, $0.295Claude, 1 h: 30, $0.295Claude, 1 h: 59, $0.295Claude, 1 h: 60, $4.000Claude, 1 h: 61, $4.000Ordinary input: 1, $2.000Ordinary input: 4, $2.000Ordinary input: 5, $2.000Ordinary input: 6, $2.000Ordinary input: 15, $2.000Ordinary input: 30, $2.000Ordinary input: 59, $2.000Ordinary input: 60, $2.000Ordinary input: 61, $2.000
Calculated for 20 requests of 50,000 prefix tokens. Assumes full hits that refresh either lifetime below expiry, and misses at or beyond it. From 1 to 61 minutes, plotted costs move from $0.220 to $2.500 for the short cache and $0.295 to $4.000 for the long cache. Open this chart as an SVG file.
Data in this chart
SeriesGap between request starts (minutes)Workload prefix input cost (USD)
Claude, 5 min10.22
Claude, 5 min40.22
Claude, 5 min52.5
Claude, 5 min62.5
Claude, 5 min152.5
Claude, 5 min302.5
Claude, 5 min592.5
Claude, 5 min602.5
Claude, 5 min612.5
Claude, 1 h10.295
Claude, 1 h40.295
Claude, 1 h50.295
Claude, 1 h60.295
Claude, 1 h150.295
Claude, 1 h300.295
Claude, 1 h590.295
Claude, 1 h604
Claude, 1 h614
Ordinary input12
Ordinary input42
Ordinary input52
Ordinary input62
Ordinary input152
Ordinary input302
Ordinary input592
Ordinary input602
Ordinary input612

At the assumed 4-minute gap, the requests span a calculated 76 minutes, yet each read refreshes the entry in this scenario. Short-Claude cost is $0.220 and long-Claude cost is $0.295. The workload can last longer than the initial lifetime because each successful read starts another interval.

At a 6-minute gap, the short option instead costs $2.500 from repeated writes, while the long option remains at $0.295. At the plotted 61-minute gap, both options miss: short cost is $2.500, long cost is $4.000, and ordinary input remains $2.00. Paying for a longer lifetime helps only if it prevents enough misses.

The exact 5-minute and 60-minute boundaries are expiry assumptions for this chart. No deterministic spacing curve is supplied for OpenAI, whose guide allows retention beyond the requested minimum, or for Gemini, whose implicit caching is opportunistic.

What the confirmation pair recorded

The study includes 2 usable synthetic Claude runs with identical prompt text. Both records reported the requested model, and both replies contained the word ready. The client's own instructions are included in the token counts. These are comparisons between complete runs, not comparisons between token counts and the size of the bare prompt.

The table places measured token counts beside the cost the client reported and the calculated range from documented prices. That range covers short writes through long writes because the retained records do not identify the write lifetime.

RunOrdinary input (tokens)Writes (tokens)Reads (tokens)Output (tokens)Client cost estimate (USD)Calculated range (USD)
First213,42604$0.0537$0.0336 to $0.0537
Second25,0688,3584$0.0212$0.0135 to $0.0212
Measured token counts from 2 synthetic Claude runs. Client costs are estimates, displayed to matching currency precision. Calculated ranges apply the documented short and long write rates to recorded usage, including output.

Across 2 runs, measured cache creation ranged from 5,068 to 13,426 tokens and cache reads from 0 to 8,358 tokens. Each run recorded 2 ordinary input tokens and 4 output tokens, with no spread in either count. Adding the separate input categories gives a calculated 13,428 input tokens in each run. The cost the client reported ranged from $0.0212 to $0.0537; those figures are the client's estimates rather than invoices.

The accounting formula multiplies ordinary input by $2.00, cache reads by $0.10, and output by $10.00. It adds cache creation multiplied by either $2.50 or $4.00, then divides everything by 1,000,000. Output is included here to check complete run accounting, although it is excluded from the prefix-only scenarios.

That gives a calculated range of $0.0336 to $0.0537 for the first run and $0.0135 to $0.0212 for the second. The client reported $0.0537 and $0.0212, matching the long-write endpoints at displayed precision. Full precision remains in the downloadable records and CSV. This agreement checks arithmetic against the client's price calculation; it does not establish the write lifetime or an invoiced price.

The second run did not reproduce the ideal full-prefix-read assumption: it still created cache tokens while reading others. The pair demonstrates partial reuse in those records. It does not confirm a full-prefix hit rate, an expiry curve or the production savings projected by the ideal scenarios. The records do not explain why the remaining tokens were written, so no internal cause is assigned.

How to use the result for a decision

Count successful reads, rather than repeated prompt submissions. A follow-up that rewrites the prefix cannot repay a write premium as quickly as a discounted read. At the worked-example size, replacing a successful short-Claude read with a full write adds a calculated $0.120 to input cost.

The share of follow-ups that hit differs from the share of all requests that read a cache. Assume 50% of the follow-ups hit in the 20-request workload. That means 9.5 expected reads, or 47.5% of all requests, because the initial request is cold. Calculated short-Claude cost becomes $1.360. The fractional read count describes an average across equivalent workloads, not an observed request split.

For an unchanged prefix reused inside the shorter lifetime, the smaller write premium needs fewer reads to repay. For longer gaps, compare the extra write premium with the writes avoided. Gemini implicit caching has no write surcharge or storage fee, but its guide expressly guarantees neither retention nor savings. Its documented best-effort lifetime of up to 24 hours is not a promise that a request inside that interval will hit.

Calculate your own prefix cost

The calculator starts with the article's assumptions: 50,000 prefix tokens, 20 total requests and 100 percent of follow-ups reading the full prefix, using short Claude caching. It reproduces calculated cost of $0.220 and savings of $1.78. Replace those assumptions with an eligible prefix size and a hit share justified by the intended workload.

The calculator treats each miss as a complete write for the premium-write options and ordinary input for Gemini implicit. It does not infer hits from time. Its full-hit reuse threshold describes a separate ideal case; changing the assumed hit share changes workload cost, not that threshold's meaning.

Calculate prefix cost at your own reuse rate

Calculated prefix input only, with a cold initial request. Choose a cache option and an assumed follow-up hit share. Every miss writes the full prefix, or uses ordinary input for Gemini implicit. Retention is not predicted.

Calculated ordinary prefix cost
$2.000
Calculated cost with caching
$0.220
Calculated saving (negative means extra cost)
$1.780
Calculated saving as share of ordinary cost
89.0%
Reuses to save if every follow-up hits
1
Total requests at that full-hit threshold
2
Calculated extra cost per miss versus a read
$0.120
Calculated reads at the assumed share
19.0

Calculated in your browser by the same model that produced the article's numbers. Nothing you enter leaves the page.

Limitations

The calculated scenarios price only the reusable text prefix. Output and changing suffixes are excluded, as are tool fees, discounts and taxes. Implementation work is not assigned a dollar cost. A reduction in prefix-input cost is therefore not the same percentage reduction in the total application bill, and no latency improvement is calculated.

The reuse thresholds and the 89% saving assume every follow-up reads the full prefix. If no follow-up hits, the same short-Claude workload costs $2.500 against $2.00 for ordinary input. The calculated long-Claude cost of $0.295 at gaps between 5 and 60 minutes depends on the assumption that each read renews the longer lifetime. The costs at those exact gaps depend on the assumed expiry at the boundary.

The assumed prefixes are chosen above the documented cache floors: 512 tokens for the selected Claude model, 1,024 visible prefix tokens for the selected OpenAI family, and 4,096 tokens for the selected Gemini model. Equal token counts across providers are an assumption, not a claim that the same document has identical tokenization.

The selected lower price tiers also require the complete request to fit. GPT-6.2 Sol uses higher rates above 272,000 input tokens, and Gemini's selected rates apply through 200,000 prompt tokens. Extra input can cross a tier even when the reusable prefix itself fits. The calculator bounds do not check the reader's complete request.

The cadence model assumes a constant interval and no prefix invalidation. OpenAI documents that a change before a breakpoint prevents the following prefix from matching. Its guide explicitly says a short-lifetime read does not restart the longer clock. The quoted passage does not establish what a long-lifetime read does; no OpenAI cadence calculation is made.

Gemini explicit caches and their storage pricing are outside the comparison. The confirmation sample contains 2 runs and supplies no OpenAI or Gemini measurements. Its partial reuse result cannot supply a reliable future hit probability. All scenario hit shares remain stated assumptions.

Inputs and official sources

The input list distinguishes documented provider figures from scenario assumptions and gives the basis for each assumption. Provider pricing and caching pages were opened for this article; the quoted passages are retained with the downloadable study. This calculation uses those quotes rather than capability scores or the site's comparison dataset.

InputValueKindWhere it comes from
Claude Sonnet 5.5 input price$2 USD per million tokensDocumentedAnthropic, Claude API pricing (read December 3, 2026): “| Claude Sonnet 5.5 | $2 / MTok | $2.50 / MTok | $4 / MTok | $0.10 / MTok<sup>2</sup> | $10 / MTok |”
Claude Sonnet 5.5 cache read price$0.10 USD per million tokensDocumentedAnthropic, Claude API pricing (read December 3, 2026): “| Claude Sonnet 5.5 | $2 / MTok | $2.50 / MTok | $4 / MTok | $0.10 / MTok<sup>2</sup> | $10 / MTok |”
Claude Sonnet 5.5 output price$10 USD per million tokensDocumentedAnthropic, Claude API pricing (read December 3, 2026): “| Claude Sonnet 5.5 | $2 / MTok | $2.50 / MTok | $4 / MTok | $0.10 / MTok<sup>2</sup> | $10 / MTok |”
Five-minute cache write multiplier1.25 x base input priceDocumentedAnthropic, Claude prompt caching (read December 3, 2026): “Cache write tokens with a 5-minute TTL are 1.25 times the base input tokens price.”
One-hour cache write multiplier2 x base input priceDocumentedAnthropic, Claude prompt caching (read December 3, 2026): “Cache write tokens with a 1-hour TTL are 2 times the base input tokens price.”
Five-minute cache lifetime5 minutesDocumentedAnthropic, Claude prompt caching (read December 3, 2026): “Cache write tokens with a 5-minute TTL are 1.25 times the base input tokens price.”
One-hour cache lifetime1 hoursDocumentedAnthropic, Claude prompt caching (read December 3, 2026): “Cache write tokens with a 1-hour TTL are 2 times the base input tokens price.”
Claude Sonnet 5.5 cacheable prefix minimum512 tokensDocumentedAnthropic, Claude prompt caching (read December 3, 2026): “512 tokens for Claude Fable 5.2, [Claude Mythos 5.2](https://platform.claude.com/docs/en/models/mythos-5-2/overview), Claude Fable 5.1, [Claude Mythos 5.1](https://platform.claude.com/docs/en/models/mythos-5-1/overview), Claude Opus 5.5, Claude Opus 5, Claude Sonnet 5.5”
GPT-6.2 Sol short-context input price$2.00 USD per million tokensDocumentedOpenAI, OpenAI API pricing (read December 3, 2026): “| gpt-6.2-sol | $2.00 | $10.00 | $0.10 | $2.50 | $5.00 | $4.00 | $15.00 | $0.20 | $5.00 | $10.00 |”
GPT-6.2 Sol short-context cache read price$0.10 USD per million tokensDocumentedOpenAI, OpenAI API pricing (read December 3, 2026): “| gpt-6.2-sol | $2.00 | $10.00 | $0.10 | $2.50 | $5.00 | $4.00 | $15.00 | $0.20 | $5.00 | $10.00 |”
Thirty-minute cache write multiplier1.25 x base input priceDocumentedOpenAI, OpenAI prompt caching (read December 3, 2026): “For GPT-5.6 and later, cache writes cost 1.25× the standard, uncached input-token rate for the default 30-minute lifetime. In the Responses API, you can choose a [12-hour minimum lifetime](#cache-lifetime) at a write rate of 2.5× ordinary input.”
Twelve-hour cache write multiplier2.5 x base input priceDocumentedOpenAI, OpenAI prompt caching (read December 3, 2026): “For GPT-5.6 and later, cache writes cost 1.25× the standard, uncached input-token rate for the default 30-minute lifetime. In the Responses API, you can choose a [12-hour minimum lifetime](#cache-lifetime) at a write rate of 2.5× ordinary input.”
Default cache lifetime30 minutesDocumentedOpenAI, OpenAI prompt caching (read December 3, 2026): “For GPT-5.6 and later, cache writes cost 1.25× the standard, uncached input-token rate for the default 30-minute lifetime. In the Responses API, you can choose a [12-hour minimum lifetime](#cache-lifetime) at a write rate of 2.5× ordinary input.”
Long cache lifetime12 hoursDocumentedOpenAI, OpenAI prompt caching (read December 3, 2026): “For GPT-5.6 and later, cache writes cost 1.25× the standard, uncached input-token rate for the default 30-minute lifetime. In the Responses API, you can choose a [12-hour minimum lifetime](#cache-lifetime) at a write rate of 2.5× ordinary input.”
GPT-6.2 Sol minimum cacheable visible prefix1,024 tokensDocumentedOpenAI, OpenAI prompt caching (read December 3, 2026): “| Minimum cacheable prefix | 1,024 visible input tokens | Varies by request settings | Varies by request settings |”
Short-context ceiling272K tokensDocumentedOpenAI, GPT-6.2 Sol model pricing and context tiers (read December 3, 2026): “For requests with more than 272K input tokens, input and cache rates double and output costs 1.5 times the short-context rate for the full request.”
Gemini lower-tier ordinary text input price$2.00 USD per million tokensDocumentedGoogle, Gemini API pricing (read December 3, 2026): “* Input price * Not available * $2.00, prompts <= 200k tokens $4.00, prompts > 200k tokens”
Gemini lower-tier implicit cache read price$0.20 USD per million tokensDocumentedGoogle, Gemini API pricing (read December 3, 2026): “* Context caching price * Not available * $0.20, prompts <= 200k tokens $0.40, prompts > 200k”
Gemini lower-tier prompt ceiling200k tokensDocumentedGoogle, Gemini API pricing (read December 3, 2026): “* Input price * Not available * $2.00, prompts <= 200k tokens $4.00, prompts > 200k tokens”
Gemini implicit caching minimum4,096 tokensDocumentedGoogle, Gemini GenerateContent context caching (read December 3, 2026): “| Gemini 3.1 Pro Preview (`gemini-3.1-pro-preview`) | 4,096 | 90% (Standard, Priority), 80% (Flex, Batch) | None |”
Gemini best-effort maximum implicit lifetime24 hoursDocumentedGoogle, Gemini GenerateContent context caching (read December 3, 2026): “Each entry has a best-effort TTL of up to 24 hours, and the server evicts entries dynamically based on capacity and request routing.”
Tokens per pricing unit1M tokensDocumentedOpenAI, OpenAI API pricing (read December 3, 2026): “Prices per 1M tokens.”
Eligible reusable prefix sizes10,000, 50,000, 100,000 tokensAssumptionScenario prefixes span a short reference document through a large reference collection, above every selected cache floor and below every selected input price boundary.
Worked-example reusable prefix50,000 tokensAssumptionThe middle scenario size keeps the worked example readable while showing both write premiums and discounted reads.
Successful reuse counts for the cost curve0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 reuses after initial requestAssumptionA cold initial request followed by fully successful repeated prefix reads. The range covers every selected break-even threshold and further repeated use.
Requests in hit-share and cadence scenarios20 requestsAssumptionA fixed group of repeated requests separates initial write cost from later reads. Every group begins cold.
Assumed follow-up cache hit shares0, 0.25, 0.5, 0.75, 1 share of follow-up requestsAssumptionEvenly spaced stress cases from every follow-up missing to every follow-up hitting. These are chosen scenarios, not observed probabilities.
Claude request-start spacing scenarios1, 4, 5, 6, 15, 30, 59, 60, 61 minutes between startsAssumptionChosen gaps bracket each Claude lifetime and its exact boundary, where expiry is assumed. The cadence model assumes every full read refreshes the selected lifetime, including the longer option; that longer refresh policy is a scenario assumption rather than a separately quoted guarantee.
Worked-example request spacing4 minutes between startsAssumptionFollow-up requests start inside both Claude lifetimes. Response time is included in the interval between starts.
Calculator default follow-up hit share100 percent of follow-up requestsAssumptionThe default isolates ideal arithmetic by assuming every request after the cold initial request reads the full reusable prefix.
Calculator request-count maximum1,000 requestsAssumptionAn interface bound for a repeated workload. It is not a provider rate limit or a request-volume prediction.
Requested synthetic confirmation calls2 runsAssumptionA pair of identical prompts lets the study check recorded cache accounting if reuse occurs. It cannot establish a retention curve or reliable hit probability.
Every input of the calculation. Documented values are quoted from the page named; assumptions are scenario choices, stated so the result can be redone with other values.

The source list links the official pricing pages, caching rules and the model page defining the OpenAI context boundary. Those pages set the scope of each documented claim.

  1. Anthropic: Claude API pricing, read December 3, 2026.
  2. Anthropic: Claude prompt caching, read December 3, 2026.
  3. OpenAI: OpenAI API pricing, read December 3, 2026.
  4. OpenAI: OpenAI prompt caching, read December 3, 2026.
  5. Google: Gemini API pricing, read December 3, 2026.
  6. Google: Gemini GenerateContent context caching, read December 3, 2026.
  7. OpenAI: GPT-6.2 Sol model pricing and context tiers, read December 3, 2026.

Download the calculation

The CSV labels documented inputs, assumptions and calculated scenarios separately, and identifies client cost estimates alongside measured token counts. It includes the plotted points and the other scenario rows, so the calculations can be checked without reading values off a chart. The study records source passages; the published model file contains the arithmetic, and the run records retain their original reported precision.

Method: calculated and measured. The confirmation runs (2, on claude-sonnet-5-5, CLI 2.1.335) were executed on December 3, 2026; everything else is calculated from the inputs above.

Download: every number as CSV, the inputs and their sources (JSON) and the model that computes the results (JavaScript), and the confirmation runs (JSON).