Skip to content

Kalkulator Penjimatan Cache

Lihat penjimatan daripada prompt caching — kos tanpa vs dengan cache merentas N permintaan, termasuk titik pulang modal premium penulisan.

AI & Agents
cosmodev ~/tools/cache-savings-calculator-
Jimat $0.33 (43.33%)
$0.75 tanpa cache → $0.43 dengan cache · 5 permintaan
Pulang modal: 13 hit cache — bacaan mesti membayar balik satu premium 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 setakat 2026-09-27T12:03:11.094Z