Skip to content

Kalkulator Penghematan Cache

Lihat penghematan dari prompt caching — biaya tanpa cache vs dengan cache untuk N request, termasuk titik impas premi penulisan.

AI & Agents
cosmodev ~/tools/cache-savings-calculator-
Hemat $0.33 (43.33%)
$0.75 tanpa cache → $0.43 dengan cache · 5 permintaan
Balik modal: 13 cache hit — pembacaan harus membayar satu premi penulisan
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 per 2026-09-27T12:03:11.094Z