Claude Fable 5$22.000/MClaude Opus 5$11.000/MClaude Opus 4.8$11.000/MClaude Opus 4.7$11.000/MClaude Opus 4.6$11.000/MClaude Opus 4.5$33.000/MClaude Sonnet 3.7$6.600/MClaude Opus 3$33.000/MClaude 2.1$12.800/MClaude 2$12.800/MGPT-5.6 Sol$12.500/MGPT-5.6 Terra$5.000/MGPT-5.5$12.500/MGPT-5.2$5.425/MGPT-5.2-Codex$5.425/MGPT-5$3.875/MGPT-4.5$97.500/MGPT-4 Turbo Preview$16.000/MGPT-4$39.000/MGPT-4-32k$78.000/Mo3$19.000/Mo3-mini$2.090/Mo4-mini$2.090/Mo1$28.500/Mo1-mini$5.700/Mo1-preview$28.500/MGemini 3.5 Pro$5.000/MGemini 3.1 Pro$5.000/MGemini 3 Pro$5.000/MGemini 2.5 Pro$3.875/MClaude Fable 5$22.000/MClaude Opus 5$11.000/MClaude Opus 4.8$11.000/MClaude Opus 4.7$11.000/MClaude Opus 4.6$11.000/MClaude Opus 4.5$33.000/MClaude Sonnet 3.7$6.600/MClaude Opus 3$33.000/MClaude 2.1$12.800/MClaude 2$12.800/MGPT-5.6 Sol$12.500/MGPT-5.6 Terra$5.000/MGPT-5.5$12.500/MGPT-5.2$5.425/MGPT-5.2-Codex$5.425/MGPT-5$3.875/MGPT-4.5$97.500/MGPT-4 Turbo Preview$16.000/MGPT-4$39.000/MGPT-4-32k$78.000/Mo3$19.000/Mo3-mini$2.090/Mo4-mini$2.090/Mo1$28.500/Mo1-mini$5.700/Mo1-preview$28.500/MGemini 3.5 Pro$5.000/MGemini 3.1 Pro$5.000/MGemini 3 Pro$5.000/MGemini 2.5 Pro$3.875/M

Index · Cost Calculator

AI Token Calculator

661 models priced

A free AI token calculator, token counter and LLM API cost calculator in one. Paste a prompt to see the exact token count and per-request cost for any model, or estimate monthly AI spend at volume. OpenAI models use the exact OpenAI BPE encoder; Claude, Gemini and open-weights families use cl100k_base as a documented approximation (typically within ~5–10% for English). Browse the AI model pricing index for the full rate sheet, or use the side-by-side model comparison to evaluate models on benchmarks and capabilities.

Model
Google
$0.625/M input$5.000/M output1,048,576 context◇ approximate · cl100k_base
0 tokens · 726 chars
Sample: Article summary (RAG)$0.00 per request
0 tokens · 405 chars
$0.00 per request
Per request
$0.00
0 in · 0 out
Per 1,000 requests
$0.00
at the same input + output size
Per 100K requests
$0.00
linear scaling
Per 1M requests
$0.00
at production scale

How AI cost estimation works

AI models bill per token, and a token is roughly four characters of English text. Every request is priced in two parts: the input tokens you send (system prompt, context, and message) and the output tokens the model generates. Providers publish these as per-million-token rates — for example a model might charge a few dollars per million input tokens and more per million output tokens, since generation is the costlier side. To estimate a single request, multiply your input token count by the input rate and your output token count by the output rate, then add the two. A blended price weights those two rates into one number (typically 70% input, 30% output) for quick model-to-model ranking. To use this calculator, pick a model, paste a representative prompt or enter your expected input and output token volumes, and add your daily request count to project monthly spend. Estimating before you build matters because output length and request volume compound quickly: a workload that looks cheap per request can dominate an infrastructure budget at production scale. How the blended rate is calculated →

Frequently Asked Questions

How do I estimate AI API costs?

Pick a model, then either paste a representative prompt to count its tokens or enter your expected input and output token volumes per request. The calculator multiplies those token counts by the model's per-million-token input and output rates to give a per-request cost, then scales that across your daily request volume to project monthly spend.

What is the difference between input and output token pricing?

Input tokens are everything you send to the model (your system prompt, context, and user message) while output tokens are everything the model generates in its completion. Providers almost always charge more per output token than per input token, so a model with cheap input but expensive output can still be costly for long, generative workloads.

What is a blended token price?

A blended price collapses a model's separate input and output rates into a single figure using an assumed ratio of input to output tokens (commonly 70% input, 30% output). It is useful for quick apples-to-apples ranking, but for an accurate estimate you should price your actual input and output token volumes separately.

How many tokens are in a word?

For ordinary English prose, one token averages about four characters, which works out to roughly 0.75 words per token, so 1,000 tokens is around 750 words. The ratio shifts with the content: code, rare words, other languages, and heavy punctuation all tokenize into more tokens per word. Paste your actual text above for an exact count rather than relying on the average.

Is this AI token calculator free?

Yes. The calculator is free to use, needs no sign-up, and counts tokens in your browser, the text you paste is never sent to a server. Pricing comes from the same provider-published rates as the rest of the Tokenando index.

Cost terms explained