LLM token counter & API cost calculator
Estimate token counts for any prompt and price it across GPT-5.5, Claude 4.6, Gemini 3, Llama 3.3, and Mistral Large side-by-side — input + output costs per call, plus daily and monthly projections at 1,000 calls/day. Everything is tokenised in your browser; nothing is sent to any model API.
Estimate ± ~5–10% vs the model's actual tokenizer for English prose; wider for code or non-English text. For exact counts, run the model's tokenizer locally (tiktoken, anthropic-tokenizer, sentencepiece). Rates updated 2026-05-27.
Gemini 3 FlashGoogle · $0.08 in / $0.30 out per 1M | $0.0000 | $0.0000 | $0.0000 |
Claude 4.5 HaikuAnthropic · $0.25 in / $1.25 out per 1M | $0.0000 | $0.0000 | $0.0000 |
GPT-5.5 MiniOpenAI · $0.30 in / $1.20 out per 1M | $0.0000 | $0.0000 | $0.0000 |
Llama 3.3 70B InstructLlama · $0.90 in / $0.90 out per 1M | $0.0001 | $0.0000 | $0.0001 |
Gemini 3 ProGoogle · $1.25 in / $5.00 out per 1M | $0.0001 | $0.0000 | $0.0001 |
Mistral LargeMistral · $2.00 in / $6.00 out per 1M | $0.0002 | $0.0000 | $0.0002 |
Claude 4.6 SonnetAnthropic · $3.00 in / $15.00 out per 1M | $0.0002 | $0.0000 | $0.0002 |
GPT-5.5 (general)OpenAI · $5.00 in / $15.00 out per 1M | $0.0004 | $0.0000 | $0.0004 |
o4 (reasoning)OpenAI · $15.00 in / $60.00 out per 1M | $0.0012 | $0.0000 | $0.0012 |
Claude 4.6 OpusAnthropic · $15.00 in / $75.00 out per 1M | $0.0012 | $0.0000 | $0.0012 |
Per-call costs only. Toggle '1,000 calls/day' above to project daily and monthly spend. API prices are quoted in USD by all providers; pick a currency converter if you need another currency.
Your text is tokenised in this browser. Nothing is sent to any model API.
How to use
Paste your prompt into the Input prompt textarea. The chars / words / estimated-token counts update live as you type, so you can shape the prompt against a target token budget in real time.
Paste a representative response into the Expected output textarea — or click "Set output = input length" for the common assumption that the model will respond with roughly the same volume as you sent. Output tokens are usually the dominant cost driver because output rates run 3–5× the input rate at most providers.
Read the per-model cost table underneath. Each row shows input cost + output cost + total per call; the table is sorted by total ascending so the cheapest viable model is always at the top.
Toggle the family chips (OpenAI, Anthropic, Google, Llama, Mistral) to narrow the comparison — useful when procurement has already restricted you to one or two providers and you only want to see those.
Flip "Scale to 1,000 calls/day" to project daily and monthly spend. Use this as a steady-state upper bound for production-cost forecasts before signing a contract or committing to a model in production.