Calcolatore dei costi dei token AI
Calcola uno stesso carico su tutti i 19 modelli Claude e GPT in vendita, fianco a fianco: ogni riga mostra il prezzo di listino del fornitore e il prezzo tramite Kunavo, letti in tempo reale dal catalogo, e le letture dalla cache, le scritture in cache e i token di ragionamento sono fatturati secondo le regole di ciascun fornitore. Sotto il calcolatore c'è quanto è stato addebitato per esecuzioni reali di agenti di programmazione. Gratis e senza registrazione; incolla un prompt per contarne prima i token.
Your workload
Estimate for Claude Sonnet 5: Anthropic does not publish Claude's tokenizer, so this is OpenAI's o200k_base count. Anthropic's free count_tokens endpoint returns Claude's own number.Counted in your browser — nothing you paste leaves this page.
Rate: $1,40 in / $7,00 out · cache hit $0,1400 · cache write $1,75 — all per 1M tokens, read live from the Kunavo catalog.
Estimated cost
You save vs Anthropic list
$150/ month · ~30%
Pay as you go from $10, failed calls not billed. The dashboard opens with this model in a ready-to-run request.
Estimate only. Reasoning models bill hidden reasoning tokens at the output rate, so a reasoning workload costs more than the output box suggests. Cache writes are billed separately at $1,75 per 1M and are not in this figure — they are a one-off per cache entry, not per request. Failed requests are never billed.
Measured: one coding task, start to finish
Our own test on 10 ott 2026, not a customer's: the same small repo task — make a six-test unit suite pass, five of them failing at the start — run headless in two coding agents against Kunavo. "Cost" is the run at Kunavo's rates, read from our usage log; one OpenCode call was missing from that log and went uncharged, and it is counted here at the same rates.
| Client | Model | Model calls | Time | Input (cache read / write) | Output | Cost |
|---|---|---|---|---|---|---|
| OpenCode 1.18.35 | Claude Sonnet 5 | 5 | 3:03 | 53.077 (26.999 / 24.212) | 3976 | $0,0766 |
| Cline CLI 3.0.70 | Claude Sonnet 5 | 4 | 1:58 | 45.171 (30.855 / 14.181) | 5301 | $0,0664 |
| Cline CLI 3.0.70 | GPT-5.6 Terra | 6 | 1:01 | 49.835 (35.328 / 0) | 2298 | $0,0223 |
At these sizes, $10 pays for about 130–448 runs of this task.
Cache rules: Anthropic vs OpenAI
The same cached prefix is billed differently on the two protocols. Each row is read from the rates billing uses, and each ratio is a multiple of that model's own input rate on Kunavo.
| Vendor | Models | Cache hit | Cache write |
|---|---|---|---|
| Anthropic | Claude Fable 5, Claude Opus 5, Claude Opus 4.8, Claude Opus 4.7, Claude Opus 4.6, Claude Sonnet 5, Claude Sonnet 4.6, Claude Haiku 5.5, Claude Haiku 4.5 | ×0,1 | ×1,25 |
| Anthropic | Claude Fable 5.2, Claude Fable 5.1 | ×0,025 | ×1,25 |
| Anthropic | Claude Opus 5.5, Claude Sonnet 5.5 | ×0,05 | ×1,25 |
| OpenAI | GPT-6 Astra, GPT-6 Sol, GPT-6 Luna, GPT-5.6 Sol, GPT-5.6 Terra | ×0,1 | ×1,25 |
| OpenAI | GPT-5.5 | ×0,1 | ×1 |
On both, reasoning tokens are billed at the output rate, including the ones the response does not show, so the output field wants billed output tokens rather than the length of the answer you see.
How caching works on each protocolIncorpora questo calcolatore nel tuo sito
Puoi incorporarlo gratuitamente in un articolo del blog o nella tua documentazione. I prezzi seguono il catalogo aggiornato in tempo reale di Kunavo e i link aprono kunavo.com in una nuova scheda.
<iframe src="https://kunavo.com/it/embed/llm-cost-calculator" title="AI token cost calculator" width="100%" height="760" style="border:0;border-radius:16px;max-width:720px" loading="lazy"></iframe>Guide ai prezzi per ogni famiglia di modelli
Conta i token di un prompt, poi calcolane il costo
Cache hit a un decimo del prezzo dell'input
Token di input memorizzati nella cache e di ragionamento
Tariffe Haiku / Sonnet / Opus
Tariffe GPT per modello
Un'unica API per ogni modello
Prezzo per immagine
Tutti i modelli, a confronto con il prezzo ufficiale
Altri strumenti gratuiti
- Token counter
Paste text, get its token count, and see what it costs as input or output on every Claude and GPT model — counted in your browser.
- Claude token cost calculator
Claude rates with the cache maths the others leave out — cache hits at a tenth of input and cache writes at 1.25×, each at the model's own discount.
- AI video cost calculator
Per-clip and per-second video models priced as the different things they are — resolution, clip length and volume, each next to the provider's list price.
- AI image cost calculator
Every image model on the key, priced per image and per tier — one is flat across resolutions and the rest are not, so the cheapest model changes with the size you ship.
- OpenAI API pricing calculator
GPT rates including cached input at a tenth of the input rate, and what reasoning tokens do to an output-heavy bill.
Come si calcola il costo dei token LLM?
Il costo di un'API LLM è calcolato per milione di token, con input e output fatturati a tariffe diverse; pertanto, il costo di una richiesta è (token di input ÷ 1.000.000 × tariffa input) + (token di output ÷ 1.000.000 × tariffa output). L'output è in genere diverse volte più costoso dell'input, motivo per cui un prompt breve con una risposta lunga può costare più di un prompt lungo con una risposta breve. Il costo mensile è il costo per richiesta moltiplicato per il volume delle richieste, mentre l'input memorizzato nella cache aggiunge un terzo termine, calcolato a una frazione della tariffa di input.
Questo calcolatore del costo dei token conta i token del testo?
Sì. Incolla un prompt o un documento nel riquadro sopra i campi di input: verrà contato nel browser con o200k_base, il tokenizer dei modelli GPT-4o e GPT-5 di OpenAI. Con un clic puoi inserire il conteggio nel campo di input o di output. Il conteggio è esatto per i modelli GPT per cui è confermato l’uso di quel tokenizer ed è una stima per Claude e Gemini; la nota sotto il riquadro indica quale caso si applica al modello selezionato. Per il traffico che invii già, il campo usage delle risposte API rimane il dato su cui si basa la fatturazione.
Questo calcolatore del costo dei token è gratuito?
Sì. Il calcolatore del costo dei token è gratuito, funziona nel browser e non richiede registrazione né chiavi API. Le tariffe vengono lette in tempo reale dal catalogo dei modelli Kunavo e ogni modello viene mostrato accanto al prezzo di listino pubblicato dal provider, così il confronto può essere verificato sulla pagina dei prezzi del provider.
Quale API LLM è più economica per il mio carico di lavoro?
Dipende dal rapporto tra input e output, ed è proprio per questo che conviene confrontare invece di dare per scontato. Un carico che invia un contesto lungo e restituisce risposte brevi è dominato dalla tariffa di input; un carico che genera testi lunghi è dominato dall'output, dove la differenza tra i livelli è maggiore. Inserisci i tuoi conteggi di token qui sopra e consulta la colonna mensile: il modello più economico per un'attività di riepilogo spesso non è il più economico per una chat.
Perché la mia fattura API reale è più alta di quella indicata dal calcolatore?
Una stima per richiesta esclude tre elementi. I token di ragionamento vengono fatturati come output, anche se non compaiono nella risposta. Le scritture nella cache vengono fatturate una volta per ogni voce della cache e restano fuori dal valore per richiesta. Anche i tentativi ripetuti vengono fatturati: una richiesta non riuscita che ha consumato token viene comunque conteggiata. La differenza maggiore riguarda gli strumenti agentici, perché un'attività visibile all'utente comporta molti scambi fatturati.