Skip to content

Calculator ng Cache Savings

Tingnan ang natitipid sa prompt caching — cost nang walang cache vs may cache sa N requests, kasama ang break-even point ng write premium.

AI & Agents
cosmodev ~/tools/cache-savings-calculator-
Natitipid $0.33 (43.33%)
$0.75 uncached → $0.43 cached · 5 mga request
Break-even: 13 cache hit — dapat mabayaran ng mga read ang premium ng isang write
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

Datos noong 2026-09-27T12:03:11.094Z