No caching
Lowest cost$0.2820
All input billed at the standard rate
- Cache writes
- $0.0000
- Cache reads
- $0.0000
- Uncached input
- $0.2520
- Output
- $0.0300
API COST · PROMPT CACHING
Is 5 minutes enough, or is 1 hour cheaper?
Compare both with no caching.
Enter token counts only. No prompts or API keys. Calculation scope ↓
For these inputs, 1-hour caching costs the least. It saves $0.1500 compared with no caching.
$0.2820
All input billed at the standard rate
$0.3420
6 writes · 0 reads
$0.1320
Cache writes: 1 · reads: 5
Assumes sequential reuse of an identical prefix. Actual charges and cache hits are not guaranteed. Break-even analysis ↓
Shows the first 20 requests. Totals include every request. Times are relative to the first request start.
| Request | Elapsed time | 5-minute caching | 1-hour caching |
|---|---|---|---|
| 1 request | 0 min | Write · $0.0570 | Write · $0.0870 |
| 2 requests | 10 min | Write · $0.0570 | Read · $0.0090 |
| 3 requests | 20 min | Write · $0.0570 | Read · $0.0090 |
| 4 requests | 30 min | Write · $0.0570 | Read · $0.0090 |
| 5 requests | 40 min | Write · $0.0570 | Read · $0.0090 |
| 6 requests | 50 min | Write · $0.0570 | Read · $0.0090 |
NANOBOOK ANALYSIS · CALCULATED
Start with the gap between requests. In this fixed-prefix model, 5-minute caching becomes cheaper than no caching from request 2; 1-hour caching needs 3. Every reuse must arrive within the chosen cache lifetime.
Fixed study, independent of the calculator inputs above. Claude Sonnet 5.5 · 20,000 repeated + 1,000 new input + 500 output tokens per request. Cold start, USD before tax; no paid API or billing test.
| Gap between starts | Lowest-cost choice | What changes the answer |
|---|---|---|
| Under 5 minutes | 5-minute cache for 2+ requests | For just 1 request, no caching is cheaper. |
| 5 to under 60 minutes | 1-hour cache for 3+ requests | For 1–2 requests, no caching is cheaper. |
| 60 minutes or longer | No caching | Both cache options rewrite on every request in this conservative model. |
At a 10-minute gap, two requests cost $0.0960 with 1-hour caching versus $0.0940 without caching. With three requests, the comparison reverses: $0.1050 versus $0.1410.
The shared new-input and output costs cancel when comparing options. The initial cache-write premium and later prefix reads determine the break-even count.
Try 3 requests at a 10-minute gap53.2% lower total cost with 1-hour caching here. A 95% discount on prefix reads does not mean the whole bill falls by 95%.
Each cell shows the cheapest option and its total cost. Select a cell to load that exact workload into the calculator. None = no caching; 5m = 5-minute cache; 1h = 1-hour cache.
| Gap (min) | 1 request | 2 requests | 3 requests | 6 requests | 10 requests | 20 requests |
|---|---|---|---|---|---|---|
| 1 min | None$0.0470 | 5m$0.0660 | 5m$0.0750 | 5m$0.1020 | 5m$0.1380 | 5m$0.2280 |
| 4.9 min | None$0.0470 | 5m$0.0660 | 5m$0.0750 | 5m$0.1020 | 5m$0.1380 | 5m$0.2280 |
| 5 min | None$0.0470 | None$0.0940 | 1h$0.1050 | 1h$0.1320 | 1h$0.1680 | 1h$0.2580 |
| 10 min | None$0.0470 | None$0.0940 | 1h$0.1050 | 1h$0.1320 | 1h$0.1680 | 1h$0.2580 |
| 30 min | None$0.0470 | None$0.0940 | 1h$0.1050 | 1h$0.1320 | 1h$0.1680 | 1h$0.2580 |
| 59.9 min | None$0.0470 | None$0.0940 | 1h$0.1050 | 1h$0.1320 | 1h$0.1680 | 1h$0.2580 |
| 60 min | None$0.0470 | None$0.0940 | None$0.1410 | None$0.2820 | None$0.4700 | None$0.9400 |
| 70 min | None$0.0470 | None$0.0940 | None$0.1410 | None$0.2820 | None$0.4700 | None$0.9400 |
Let N be the total request count, P the repeated-prefix tokens, U the new input tokens and O the output tokens. Let I, W, R and Q be the normal-input, chosen-TTL write, read and output rates in USD per million tokens.
No cache = N × [P × I + U × I + O × Q] ÷ 1,000,000
One write, then hits = [P × W + (N−1) × P × R + N × (U × I + O × Q)] ÷ 1,000,000
Strict savings when N > (W−R) ÷ (I−R), provided P is cacheable and I > R.
When each gap reaches or exceeds the TTL, this calculator charges a write for every request instead. Hits refresh the lifetime, so a session can last longer than 5 or 60 minutes without another write if every gap stays short enough.
The first strictly cheaper counts are 2 and 3 across all four supported models, including both Haiku 5.5 input-price tiers. They are total requests, including the cold write. Eligibility still depends on the model’s minimum cacheable prefix; these counts are not universal rules for other models or future prices.
Totals are accumulated in integer nano-dollars. The downloadable file retains nine USD decimals; displayed costs are rounded. Every scenario row includes the model, inputs, write/read counts, rate version and assumptions.
Analysis checked · Derived from official Claude API pricing and prompt-caching rules. Numerical comparisons are NanoBook calculations, not observed API charges.
Download all 720 scenario rows (CSV)Checked · Direct Claude API · standard processing · global rates · before tax. USD per million tokens.
| Model | Uncached input | Output | 5-minute write | 1-hour write | Cache reads | Minimum prefix length |
|---|---|---|---|---|---|---|
| Claude Sonnet 5.5 | $2 | $10 | $2.5 | $4 | $0.1 | 512 tokens |
| Claude Opus 5.5 | $4 | $20 | $5 | $8 | $0.2 | 512 tokens |
| Claude Haiku 4.5 | $1 | $5 | $1.25 | $2 | $0.1 | 4,096 tokens |
| Claude Haiku 5.5Prompt up to 100,000 tokens | $0.1 | $0.5 | $0.125 | $0.2 | $0.01 | 512 tokens |
| Claude Haiku 5.5Prompt over 100,000 tokens | $0.5 | $2.5 | $0.625 | $1 | $0.05 | 512 tokens |
Cache reads cost 5% of base input for Sonnet 5.5 and Opus 5.5, and 10% for Haiku 4.5 and 5.5. For Haiku 5.5, a prompt over 100,000 tokens uses the higher rates for all input, output, cache writes and cache reads. Prompt length includes the repeated prefix, new input and cache hits, but excludes output. Higher rates apply to the whole request, not just the tokens above the threshold.
Assumes a cache breakpoint at the end of an unchanged prefix, with identical settings and sequential requests after the first response has begun. New input and output lengths are constant. Growing conversation history, automatic caching, parallel first requests, multiple breakpoints and mixed TTLs are excluded.
Lifetime is counted from the start of a write or read request. A successful read refreshes TTL without another write charge. An interval below 5 or 60 minutes is treated as a read; at or above the boundary it is treated as a rewrite. Actual cache entries may not disappear immediately at expiry, so hits after the boundary cannot be confirmed.
Below the model's minimum prefix length, all input uses the standard rate, with no cache writes or reads. Tokens differ from characters; use the model's token count. The 200,000 input tokens, 8,192 output tokens and 1,000 requests are calculator bounds, not model limits.
Cache writes + cache reads + uncached input + output. Cached input is not also charged as uncached input. Output and new input still cost money, so the total discount differs from the cache-read discount. Tax, currency conversion, Batch, priority processing, regional surcharges, tool fees, Bedrock, Vertex and Claude subscriptions are excluded.
Official rates, minimum prefix lengths, TTL refresh, usage categories and Haiku 5.5 prompt-length tiers were checked on 2026-11-05. No paid API requests or billing verification were performed. Price changes affect results. Rates are normally rechecked monthly.
Operator: kim hyun · NanoBook · Report an error
Revision history · First published 2026-11-04 with three models and three caching options. Added Haiku 5.5 and its two prompt-length pricing tiers on 2026-11-05.
2026-11-05 · Added the fixed-workload break-even study, request-count × interval matrix, reproducible dataset and method. Official rates were rechecked; no live API charges were measured.