Skip to content

Cache Savings Calculator

See what prompt caching saves — uncached vs cached cost over N requests, with the write-premium break-even point.

AI & Agents
cosmodev ~/tools/cache-savings-calculator-
Saves $0.33 (43.33%)
$0.75 uncached → $0.43 cached · 5 requests
Break-even: 13 cache hits — reads must repay one write premium
uncached = hits × (prompt×in$/M + output×out$/M) / 1M
          = 5 × (10,000×$10 + 1,000×$50) / 1M = $0.75
cached = (prompt×write$/M + hits × (prompt×read$/M + output×out$/M)) / 1M
       = (10,000×$12.5 + 5 × (10,000×$1 + 1,000×$50)) / 1M = $0.43
break-even hits = ceil(write$/M / read$/M) = ceil($12.5 / $1) = 13

Data as of 2026-09-27T12:03:11.094Z