TokenRate · tokenrate.dev
AI Token Calculator & Live Pricing Comparison
TYPE ANY AMOUNT — RESULTS UPDATE LIVE
145 models · 7 providers
| Model | Tier | Quality | Rate in / out / 1M | Tokens In | Tokens Out | Value |
|---|---|---|---|---|---|---|
| Claude Opus 4.6 (Fast) | Flagship | 77elo | $30.00 – $150.00 | — | — | 2.6 |
| GPT-5.5 Pro | Flagship | 78 | $30.00 – $180.00 | — | — | 2.6 |
| Gemini 2.5 Pro | Flagship | 76 | $1.25 – $10.00 | — | — | 61 |
| Llama 4 Maverick | Balanced | 62 | $0.150 – $0.600 | — | — | 413 |
| R1 Distill Llama 70B | Reasoning | 73 | $0.700 – $0.800 | — | — | 104 |
| Mistral Large 2407 | Flagship | 50 | $2.00 – $6.00 | — | — | 25 |
| Grok 4.20 Multi-Agent | Balanced | 78 | $2.00 – $6.00 | — | — | 39 |
| Claude Opus 4.1 | Flagship | 77elo | $15.00 – $75.00 | — | — | 5.1 |
| GPT-5.4 Pro | Flagship | 78 | $30.00 – $180.00 | — | — | 2.6 |
| Gemini 2.5 Pro Preview 06-05 | Flagship | 76 | $1.25 – $10.00 | — | — | 61 |
| Llama 4 Scout | Balanced | 55 | $0.100 – $0.300 | — | — | 550 |
| R1 | Reasoning | 73 | $0.700 – $2.50 | — | — | 104 |
| Mistral Large | Flagship | 50 | $2.00 – $6.00 | — | — | 25 |
| Grok 4.3 | Balanced | 78 | $1.25 – $2.50 | — | — | 62 |
| Claude Opus 4 | Flagship | 77elo | $15.00 – $75.00 | — | — | 5.1 |
| GPT-5.2 Pro | Flagship | 78 | $21.00 – $168.00 | — | — | 3.7 |
| Gemini 2.5 Pro Preview 05-06 | Flagship | 76 | $1.25 – $10.00 | — | — | 61 |
| Llama 3.3 70B Instruct | Balanced | 52 | $0.100 – $0.320 | — | — | 520 |
| R1 0528 | Reasoning | 73 | $0.500 – $2.15 | — | — | 146 |
| Mistral Large 3 2512 | Flagship | 50 | $0.500 – $1.50 | — | — | 100 |
| Grok 4.20 | Balanced | 78 | $1.25 – $2.50 | — | — | 62 |
| Claude Opus 4.6 | Flagship | 77elo | $5.00 – $25.00 | — | — | 15 |
| GPT-5 Pro | Flagship | 78 | $15.00 – $120.00 | — | — | 5.2 |
| Gemini 3.1 Pro Preview Custom Tools | Balanced | 75elo | $2.00 – $12.00 | — | — | 38 |
| Llama 3.1 70B Instruct | Balanced | 47 | $0.400 – $0.400 | — | — | 118 |
| R1 Distill Qwen 32B | Reasoning | 73 | $0.290 – $0.290 | — | — | 252 |
| Codestral 2508 | Balanced | 50 | $0.300 – $0.900 | — | — | 167 |
| Grok Build 0.1 | Balanced | 50 | $1.00 – $2.00 | — | — | 50 |
| Claude Opus 4.5 | Flagship | 77elo | $5.00 – $25.00 | — | — | 15 |
| GPT-5 Image | Flagship | 78 | $10.00 – $10.00 | — | — | 7.8 |
| Gemini 3.1 Pro Preview | Balanced | 75elo | $2.00 – $12.00 | — | — | 38 |
| Llama 3 70B Instruct | Balanced | 44 | $0.510 – $0.740 | — | — | 86 |
| DeepSeek V3.2 Exp | Balanced | 65 | $0.270 – $0.410 | — | — | 241 |
| Mistral Medium 3.5 | Balanced | 48 | $1.50 – $7.50 | — | — | 32 |
| Claude Opus 4.7 (Fast) | Flagship | 76elo | $30.00 – $150.00 | — | — | 2.5 |
| GPT-5.4 Image 2 | Flagship | 78 | $8.00 – $15.00 | — | — | 9.8 |
| Gemini 3.5 Flash | Balanced | 73elo | $1.50 – $9.00 | — | — | 49 |
| Llama 3.2 11B Vision Instruct | Balanced | 32 | $0.345 – $0.345 | — | — | 93 |
| DeepSeek V3.1 Terminus | Balanced | 65 | $0.270 – $0.950 | — | — | 241 |
| Mistral Medium 3.1 | Balanced | 48 | $0.400 – $2.00 | — | — | 120 |
| Claude Opus 4.7 | Flagship | 76elo | $5.00 – $25.00 | — | — | 15 |
| GPT-5.5 | Flagship | 78 | $5.00 – $30.00 | — | — | 16 |
| Gemini 3 Flash Preview | Balanced | 72elo | $0.500 – $3.00 | — | — | 144 |
| Llama 3.1 8B Instruct | Balanced | 30 | $0.020 – $0.030 | — | — | 1.5k |
| DeepSeek V3.2 | Balanced | 65 | $0.229 – $0.343 | — | — | 284 |
| Mistral Medium 3 | Balanced | 48 | $0.400 – $2.00 | — | — | 120 |
| Claude Opus 4.8 (Fast) | Flagship | 73elo | $10.00 – $50.00 | — | — | 7.3 |
| GPT-5.4 | Flagship | 78 | $2.50 – $15.00 | — | — | 31 |
| Gemini 2.5 Flash | Balanced | 66 | $0.300 – $2.50 | — | — | 220 |
| Llama 3 8B Instruct | Balanced | 26 | $0.140 – $0.140 | — | — | 186 |
| DeepSeek V3.1 | Balanced | 65 | $0.210 – $0.790 | — | — | 310 |
| Mistral Small 3.1 24B | Balanced | 42 | $0.351 – $0.555 | — | — | 120 |
| Claude Opus 4.8 | Flagship | 73elo | $5.00 – $25.00 | — | — | 15 |
| GPT-5.3 Chat | Flagship | 78 | $1.75 – $14.00 | — | — | 45 |
| Gemma 2 27B | Balanced | — | $0.650 – $0.650 | — | — | — |
| Llama 3.2 3B Instruct | Balanced | 22 | $0.051 – $0.335 | — | — | 432 |
| DeepSeek V3 0324 | Balanced | 65 | $0.200 – $0.770 | — | — | 325 |
| Mistral Small 4 | Balanced | 42 | $0.150 – $0.600 | — | — | 280 |
| Claude Sonnet 4.6 | Balanced | 72 | $3.00 – $15.00 | — | — | 24 |
| GPT-5.3-Codex | Flagship | 78 | $1.75 – $14.00 | — | — | 45 |
| Gemma 4 31B | Balanced | — | $0.120 – $0.360 | — | — | — |
| Llama 3.2 1B Instruct | Balanced | 15 | $0.027 – $0.201 | — | — | 556 |
| DeepSeek V3 | Balanced | 60 | $0.200 – $0.800 | — | — | 300 |
| Mistral Small 3.2 24B | Balanced | 42 | $0.075 – $0.200 | — | — | 560 |
| Claude Sonnet 4.5 | Balanced | 72 | $3.00 – $15.00 | — | — | 24 |
| GPT-5.2-Codex | Flagship | 78 | $1.75 – $14.00 | — | — | 45 |
| Gemma 3 27B | Balanced | — | $0.080 – $0.160 | — | — | — |
| Llama Guard 3 8B | Balanced | — | $0.484 – $0.030 | — | — | — |
| DeepSeek V4 Pro | Balanced | — | $0.435 – $0.870 | — | — | — |
| Mistral Small 3 | Balanced | 42 | $0.050 – $0.080 | — | — | 840 |
| Claude Sonnet 4 | Balanced | 72 | $3.00 – $15.00 | — | — | 24 |
| GPT-5.2 Chat | Flagship | 78 | $1.75 – $14.00 | — | — | 45 |
| Gemma 4 26B A4B | Balanced | — | $0.060 – $0.330 | — | — | — |
| Llama Guard 4 12B | Balanced | — | $0.180 – $0.180 | — | — | — |
| DeepSeek V4 Flash | Balanced | — | $0.098 – $0.197 | — | — | — |
| Mixtral 8x22B Instruct | Balanced | 40 | $2.00 – $6.00 | — | — | 20 |
| Claude Fable 5 | Balanced | — | $10.00 – $50.00 | — | — | — |
| GPT-5.2 | Flagship | 78 | $1.75 – $14.00 | — | — | 45 |
| Gemma 3n 4B | Balanced | — | $0.060 – $0.120 | — | — | — |
| Mistral Nemo | Balanced | 38 | $0.020 – $0.030 | — | — | 1.9k |
| Claude Haiku 4.5 | Fast | 60 | $1.00 – $5.00 | — | — | 60 |
| GPT-5.1-Codex-Max | Flagship | 78 | $1.25 – $10.00 | — | — | 62 |
| Gemma 3 4B | Balanced | — | $0.050 – $0.100 | — | — | — |
| Ministral 3 8B 2512 | Balanced | 35 | $0.150 – $0.150 | — | — | 233 |
| Claude 3.5 Haiku | Fast | 55 | $0.800 – $4.00 | — | — | 69 |
| GPT-5.1 | Flagship | 78 | $1.25 – $10.00 | — | — | 62 |
| Gemma 3 12B | Balanced | — | $0.050 – $0.150 | — | — | — |
| Ministral 3 3B 2512 | Balanced | 28 | $0.100 – $0.100 | — | — | 280 |
| Claude 3 Haiku | Fast | 30 | $0.250 – $1.25 | — | — | 120 |
| GPT-5.1 Chat | Flagship | 78 | $1.25 – $10.00 | — | — | 62 |
| Nano Banana Pro (Gemini 3 Pro Image Preview) | Fast | 75elo | $2.00 – $12.00 | — | — | 38 |
| Devstral 2 2512 | Balanced | — | $0.400 – $2.00 | — | — | — |
| GPT-5.1-Codex | Flagship | 78 | $1.25 – $10.00 | — | — | 62 |
| Nano Banana (Gemini 2.5 Flash Image) | Fast | 66 | $0.300 – $2.50 | — | — | 220 |
| Ministral 3 14B 2512 | Balanced | — | $0.200 – $0.200 | — | — | — |
| GPT-5 Codex | Flagship | 78 | $1.25 – $10.00 | — | — | 62 |
| Gemini 2.5 Flash Lite Preview 09-2025 | Fast | 66 | $0.100 – $0.400 | — | — | 660 |
| Saba | Balanced | — | $0.200 – $0.600 | — | — | — |
| GPT-5 Chat | Flagship | 78 | $1.25 – $10.00 | — | — | 62 |
| Gemini 2.5 Flash Lite | Fast | 55 | $0.100 – $0.400 | — | — | 550 |
| Voxtral Small 24B 2507 | Balanced | — | $0.100 – $0.300 | — | — | — |
| GPT-5 | Flagship | 58 | $1.25 – $10.00 | — | — | 46 |
| Nano Banana 2 (Gemini 3.1 Flash Image Preview) | Fast | — | $0.500 – $3.00 | — | — | — |
| o3 Pro | Reasoning | 82 | $20.00 – $80.00 | — | — | 4.1 |
| Gemini 3.1 Flash Lite | Fast | — | $0.250 – $1.50 | — | — | — |
| o3 Deep Research | Reasoning | 82 | $10.00 – $40.00 | — | — | 8.2 |
| Gemini 3.1 Flash Lite Preview | Fast | — | $0.250 – $1.50 | — | — | — |
| o3 | Reasoning | 82 | $2.00 – $8.00 | — | — | 41 |
| o3 Mini High | Reasoning | 82 | $1.10 – $4.40 | — | — | 75 |
| o1-pro | Reasoning | 78 | $150.00 – $600.00 | — | — | 0.5 |
| o1 | Reasoning | 78 | $15.00 – $60.00 | — | — | 5.2 |
| o4 Mini Deep Research | Reasoning | 75 | $2.00 – $8.00 | — | — | 38 |
| o4 Mini High | Reasoning | 75 | $1.10 – $4.40 | — | — | 68 |
| o4 Mini | Reasoning | 75 | $1.10 – $4.40 | — | — | 68 |
| o3 Mini | Reasoning | 72 | $1.10 – $4.40 | — | — | 65 |
| GPT-4o (2024-05-13) | Balanced | 64 | $5.00 – $15.00 | — | — | 13 |
| GPT-4o (2024-11-20) | Balanced | 64 | $2.50 – $10.00 | — | — | 26 |
| GPT-4o (2024-08-06) | Balanced | 64 | $2.50 – $10.00 | — | — | 26 |
| GPT-4o | Balanced | 64 | $2.50 – $10.00 | — | — | 26 |
| GPT-4 | Balanced | 58 | $30.00 – $60.00 | — | — | 1.9 |
| GPT-4 Turbo | Balanced | 58 | $10.00 – $30.00 | — | — | 5.8 |
| GPT-4 Turbo Preview | Balanced | 58 | $10.00 – $30.00 | — | — | 5.8 |
| GPT Chat Latest | Balanced | 58 | $5.00 – $30.00 | — | — | 12 |
| GPT-3.5 Turbo 16k | Balanced | 58 | $3.00 – $4.00 | — | — | 19 |
| GPT Audio | Balanced | 58 | $2.50 – $10.00 | — | — | 23 |
| GPT-4o Search Preview | Balanced | 58 | $2.50 – $10.00 | — | — | 23 |
| GPT-4.1 | Balanced | 58 | $2.00 – $8.00 | — | — | 29 |
| GPT-3.5 Turbo Instruct | Balanced | 58 | $1.50 – $2.00 | — | — | 39 |
| GPT-3.5 Turbo (older v0613) | Balanced | 58 | $1.00 – $2.00 | — | — | 58 |
| gpt-oss-safeguard-20b | Balanced | 58 | $0.075 – $0.300 | — | — | 773 |
| gpt-oss-120b | Balanced | 58 | $0.039 – $0.180 | — | — | 1.5k |
| gpt-oss-20b | Balanced | 58 | $0.029 – $0.140 | — | — | 2.0k |
| GPT-3.5 Turbo | Balanced | 35 | $0.500 – $1.50 | — | — | 70 |
| GPT-5 Image Mini | Fast | 78 | $2.50 – $2.00 | — | — | 31 |
| GPT-5.4 Mini | Fast | 78 | $0.750 – $4.50 | — | — | 104 |
| GPT-5.1-Codex-Mini | Fast | 78 | $0.250 – $2.00 | — | — | 312 |
| GPT-5.4 Nano | Fast | 78 | $0.200 – $1.25 | — | — | 390 |
| GPT-5 Mini | Fast | 68 | $0.250 – $2.00 | — | — | 272 |
| GPT Audio Mini | Fast | 58 | $0.600 – $2.40 | — | — | 97 |
| GPT-4o-mini Search Preview | Fast | 58 | $0.150 – $0.600 | — | — | 387 |
| GPT-4.1 Nano | Fast | 58 | $0.100 – $0.400 | — | — | 580 |
| GPT-5 Nano | Fast | 55 | $0.050 – $0.400 | — | — | 1.1k |
| GPT-4.1 Mini | Fast | 52 | $0.400 – $1.60 | — | — | 130 |
| GPT-4o-mini (2024-07-18) | Fast | 51 | $0.150 – $0.600 | — | — | 340 |
| GPT-4o-mini | Fast | 51 | $0.150 – $0.600 | — | — | 340 |
Approximation: ~4 chars / 1 token · Rates shown per 1M tokens · Pricing is live via OpenRouter — confirm with provider before billing decisions.
Free, instant cost estimates for every major AI model. Convert money, tokens, and characters across Claude, GPT-4o, Gemini, Llama, DeepSeek, Grok, and Mistral — with live pricing from OpenRouter.
What is an AI token calculator? An AI token calculator converts between dollars, token counts, and characters using live API pricing from large language model providers. It answers two questions developers ask before shipping with an LLM: "how much will this prompt cost?" and "how many tokens does my budget buy?"
Current AI API pricing (May 2026): Llama 3.1 8B costs $0.05/1M input tokens; Gemini 2.0 Flash costs $0.10/1M; GPT-4o mini costs $0.15/1M; Claude Haiku 4 costs $0.25/1M. Output tokens cost roughly 3–5× the input price across every major provider. A typical 1,000-token request on a balanced model like Claude Sonnet 4 ($3/1M input) costs $0.003 — under a third of a cent. Use the calculator above to convert any amount across 27+ tracked models.
Prices verified 2026-05-22 · Live data refreshed hourly from OpenRouter
What Are AI Tokens?
A token is the basic unit that AI language models use to process text. Rather than reading word by word, models break text into token fragments — roughly 4 characters each for English. The word "hamburger" is 3 tokens; "hi" is 1 token.
Every AI API — including Claude, GPT-4o, and Gemini — charges by the token. You pay for the text you send (input tokens) and the text the model generates (output tokens). Understanding tokens is the key to predicting and controlling your AI costs.
How AI Token Pricing Works
AI models are priced by the million tokens — written as $/1M tokens. The two numbers you always see are:
- InputThe text you send — your prompt, system instructions, and conversation history.
- OutputThe text the model generates. Usually 3–5× more expensive than input, because generating tokens requires more compute than reading them.
A typical 1,000-token request (about 750 words of prompt) with Claude Sonnet 4 costs $0.003 — less than a third of a cent. At scale, though, those fractions add up fast.
Cheapest AI Models in 2026
Ranked by input token price. All prices per 1 million tokens.
| Model | Provider | Input / 1M | Output / 1M | Context |
|---|---|---|---|---|
| Llama 3.1 8B | Meta | $0.050 | $0.080 | 128K |
| Gemini 1.5 Flash | $0.075 | $0.300 | 1M | |
| Gemini 2.0 Flash | $0.100 | $0.400 | 1M | |
| Mistral Small | Mistral | $0.100 | $0.300 | 32K |
| GPT-4o mini | OpenAI | $0.150 | $0.600 | 128K |
| Mistral Nemo | Mistral | $0.150 | $0.150 | 128K |
Prices are approximate and may change. See full comparison →
Token Calculation Examples
1,000 words of English text
~1,333 tokens
~4 chars per token
A standard email (150 words)
~200 tokens
under $0.001 on most models
A 10-page PDF (2,500 words)
~3,333 tokens
$0.01 with Claude Sonnet 4
An entire novel (80,000 words)
~107K tokens
fits in most flagship models
A full codebase (100K lines)
~300K+ tokens
needs 200K+ context window
1 million tokens budget at $1
~750K words
with Gemini 2.0 Flash
Want more? See the full token reference guide →
Browse All AI Models
Detailed pricing pages for every major model — with context windows, strengths, use cases, and cost examples.
Frequently Asked Questions
Related Tools & Guides
