LLM Token Calculator
Paste text or enter token counts. See costs across every major model instantly.
Count tokens in your text and see what it would cost to process across all major LLM providers. Supports GPT-5.4, Claude Opus 4.6, Gemini 3.1 Pro, Grok 4.1, DeepSeek, and more. Exact token counts for OpenAI models. Estimates for all others.
Characters
0
Words
0
Estimated Tokens
0
Quick examples
Cost Comparison
| Provider | Model | Input Cost | Output Cost | Total Cost |
|---|---|---|---|---|
| OpenAI | GPT-5.4 | $0.00 | $0.00 | $0.00 |
| OpenAI | GPT-5.4 Pro | $0.00 | $0.00 | $0.00 |
| OpenAI | GPT-5.3 Codex | $0.00 | $0.00 | $0.00 |
| Anthropic | Claude Opus 4.6 | $0.00 | $0.00 | $0.00 |
| Anthropic | Claude Sonnet 4.6 | $0.00 | $0.00 | $0.00 |
| Gemini 3.1 Pro | $0.00 | $0.00 | $0.00 | |
| Gemini 3.1 Flash Lite | $0.00 | $0.00 | $0.00 | |
| OpenAI | GPT-5.2 | $0.00 | $0.00 | $0.00 |
| Gemini 3 Flash | $0.00 | $0.00 | $0.00 | |
| OpenAI | GPT-5.2 Pro | $0.00 | $0.00 | $0.00 |
| DeepSeek | DeepSeek V3.2 | $0.00 | $0.00 | $0.00 |
| DeepSeek | DeepSeek V3.2 Reasoner | $0.00 | $0.00 | $0.00 |
| Mistral | Mistral Large 3 | $0.00 | $0.00 | $0.00 |
| Mistral | Devstral 2 | $0.00 | $0.00 | $0.00 |
| Amazon | Nova 2 Lite | $0.00 | $0.00 | $0.00 |
| OpenAI | GPT-5.1 | $0.00 | $0.00 | $0.00 |
| Anthropic | Claude Opus 4.5 | $0.00 | $0.00 | $0.00 |
| xAI | Grok 4.1 Fast | $0.00 | $0.00 | $0.00 |
| Anthropic | Claude Haiku 4.5 | $0.00 | $0.00 | $0.00 |
| Anthropic | Claude Sonnet 4.5 | $0.00 | $0.00 | $0.00 |
| xAI | Grok Code Fast | $0.00 | $0.00 | $0.00 |
| Mistral | Magistral Medium | $0.00 | $0.00 | $0.00 |
| Mistral | Mistral Medium 3.1 | $0.00 | $0.00 | $0.00 |
| OpenAI | GPT-5 | $0.00 | $0.00 | $0.00 |
| OpenAI | GPT-5 Pro | $0.00 | $0.00 | $0.00 |
| OpenAI | GPT-5 mini | $0.00 | $0.00 | $0.00 |
| OpenAI | GPT-5 nano | $0.00 | $0.00 | $0.00 |
| Mistral | Codestral | $0.00 | $0.00 | $0.00 |
| xAI | Grok 4 | $0.00 | $0.00 | $0.00 |
| OpenAI | o3 Pro | $0.00 | $0.00 | $0.00 |
| Mistral | Mistral Small 3.2 | $0.00 | $0.00 | $0.00 |
| Anthropic | Claude Sonnet 4 | $0.00 | $0.00 | $0.00 |
| Gemini 2.5 Flash Lite | $0.00 | $0.00 | $0.00 | |
| OpenAI | o3 | $0.00 | $0.00 | $0.00 |
| OpenAI | o4 mini | $0.00 | $0.00 | $0.00 |
| OpenAI | GPT-4.1 | $0.00 | $0.00 | $0.00 |
| OpenAI | GPT-4.1 mini | $0.00 | $0.00 | $0.00 |
| OpenAI | GPT-4.1 nano | $0.00 | $0.00 | $0.00 |
| Gemini 2.5 Flash | $0.00 | $0.00 | $0.00 | |
| Meta | Llama 4 Maverick | $0.00 | $0.00 | $0.00 |
| Meta | Llama 4 Scout | $0.00 | $0.00 | $0.00 |
| Gemini 2.5 Pro | $0.00 | $0.00 | $0.00 | |
| Cohere | Command A | $0.00 | $0.00 | $0.00 |
| xAI | Grok 3 | $0.00 | $0.00 | $0.00 |
| xAI | Grok 3 mini | $0.00 | $0.00 | $0.00 |
| Amazon | Nova Premier | $0.00 | $0.00 | $0.00 |
| OpenAI | o3 mini | $0.00 | $0.00 | $0.00 |
| OpenAI | o1 | $0.00 | $0.00 | $0.00 |
| Amazon | Nova Pro | $0.00 | $0.00 | $0.00 |
| Amazon | Nova Lite | $0.00 | $0.00 | $0.00 |
| Amazon | Nova Micro | $0.00 | $0.00 | $0.00 |
| Cohere | Command R7B | $0.00 | $0.00 | $0.00 |
| Mistral | Pixtral Large | $0.00 | $0.00 | $0.00 |
| Anthropic | Claude Haiku 3.5 | $0.00 | $0.00 | $0.00 |
| Cohere | Command R | $0.00 | $0.00 | $0.00 |
| OpenAI | GPT-4o mini | $0.00 | $0.00 | $0.00 |
| Mistral | Mistral Nemo | $0.00 | $0.00 | $0.00 |
| OpenAI | GPT-4o | $0.00 | $0.00 | $0.00 |
Showing costs for 0 input tokens across 58 models.
How Token Counting Works
Large language models process text as tokens — small chunks of text that typically represent about 4 characters in English. The exact tokenization varies by model because each provider uses a different tokenizer algorithm. For OpenAI models, this calculator uses the official tiktoken library to provide exact token counts. For other providers, we use calibrated character-ratio estimates clearly marked as approximate. One thousand tokens is roughly equivalent to 750 words of English text.
Understanding Input vs Output Tokens
LLM API pricing is split into input tokens (what you send to the model, including your prompt and any context) and output tokens (what the model generates in response). Output tokens are typically 2-5x more expensive than input tokens. When estimating costs, consider both sides: a chatbot that sends long system prompts with short user messages will have high input costs, while a content generator producing long articles will have high output costs.
Cached and Batch Pricing
Most providers offer discounted pricing for cached inputs and batch processing. Cached input pricing applies when you resend the same prompt prefix across multiple requests — the provider caches the processed tokens and charges less for repeated content. Batch pricing applies when you submit requests in bulk for asynchronous processing, accepting higher latency in exchange for 50% cost savings. Toggle these options in the calculator to see the impact on your costs.
Frequently Asked Questions
How many tokens is 1,000 words?
Why do different models have different token counts?
Are the token counts on this calculator exact?
How much does it cost to process a 10-page document?
What counts as a token in code?
Token estimates for non-OpenAI models use character-ratio approximations and may differ from exact counts by up to 10%. For production cost planning, verify with your provider's official tokenizer.