Skip to content

Calcolatore risparmio cache

Scopri quanto risparmia il prompt caching — costo non in cache vs in cache su N richieste, con il punto di pareggio del premio di scrittura.

AI & Agents
cosmodev ~/tools/cache-savings-calculator-
Risparmi $0.33 (43.33%)
$0.75 senza cache → $0.43 con cache · 5 richieste
Break-even: 13 cache hit — le letture devono ripagare un premio di scrittura
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

Dati aggiornati al 2026-09-27T12:03:11.094Z