Free LLM API cost calculator
Rate this tool
From estimate to monitored spend
The result above stays available without an email or account. If you need ongoing provider totals, review current plans or start the trial separately.
From Scout's desk
Get weekly AI cost insights — free
Every Sunday: what AI models are costing developers like you, which switches save money, and one thing you can do this week to spend less.
No spam. Unsubscribe anytime.
How LLM token cost is actually calculated
Every provider prices per token rather than per request, and input and output are billed at different rates — output is typically several times more expensive. So an LLM token cost calculator is really doing one piece of arithmetic in both directions:
cost = (input tokens / 1M x input rate)
+ (output tokens / 1M x output rate)A token is roughly ¾ of an English word, but that ratio is a rule of thumb rather than a rule — code, JSON, and non-English text tokenize far less efficiently, sometimes at more than one token per character. If you need the real number rather than an estimate, the token counter counts your actual text.
Two things routinely make a real bill exceed the estimate. Conversations resend the whole history on every turn, so a long chat re-bills earlier messages as input again and again. And system prompts, retrieved documents, and tool definitions all count as input tokens even though you never typed them. That is why a per-call estimate and a monthly invoice can differ by an order of magnitude.
Why estimate, then monitor?
A calculator answers “what might this feature cost?” A spend monitor answers “what did we actually spend across OpenAI, Anthropic, Gemini, and OpenRouter?” TryTokka is built for the second question — encrypted keys, daily Scout sync, Sync now, and email when you cross a limit.
Use this page when you are pricing a batch job or comparing GPT-4o mini vs Claude Haiku. When traffic is live, switch to OpenAI spend tracking or the free 7-day trial.
Quick answers
Is this calculator free?
Yes. No account required. It estimates cost from published list rates for popular OpenAI and Anthropic models.
Does it match my invoice exactly?
Not always. Rates are catalog pins verified 2026-07-15 and may differ from live provider pricing, discounts, or batch tiers. Use it for planning; use TryTokka for synced spend across providers.
How is OpenAI cache pricing handled?
For OpenAI-style math, input tokens include cached tokens — non-cached input is charged at the full input rate and cache-read tokens at the cache rate.
Can I track real spend after estimating?
Yes. Connect billing keys in TryTokka for OpenAI, Anthropic, Gemini, OpenRouter, and more. Scout emails after daily sync when you cross a limit.
Can I share my estimate?
Yes. The URL updates with ?model=&in=&out=&req=&cache= as you type. Copy the shareable link from the calculator to send the same estimate.