Free LLM Token Calculator
Accurately calculate the token count and estimate API costs for your text with our free LLM token calculator. Paste your text to see how it's tokenized by leading models from OpenAI (GPT-4, GPT-5), Anthropic (Claude 3), Google (Gemini), and more. Instantly get price estimates for both input and output to better manage your AI development budget.
Tokens
0
Words
0
Total Characters
0
Model Selection
Model | Provider | Context | Input Price | Output Price | Total Price |
---|---|---|---|---|---|
o4 Mini | openai | 200K | $1.10 | $4.40 | $5.50 |
GPT-5 | openai | 400K | $1.25 | $10.00 | $11.25 |
o1 | openai | 200K | $15.00 | $60.00 | $75.00 |
Claude Opus 4.1 | anthropic | 200K | $15.00 | $75.00 | $90.00 |
Claude Sonnet 4 | anthropic | 1M | $3.00 | $15.00 | $18.00 |
Claude 3.5 Haiku | anthropic | 200K | $0.80 | $4.00 | $4.80 |
Gemini 2.5 Flash | gemini | 1.05M | $0.30 | $2.50 | $2.80 |
Gemini 2.5 Pro | gemini | 1.05M | $1.25 | $10.00 | $11.25 |
Gemini 2.0 Flash | gemini | 1M | $0.10 | $0.40 | $0.50 |
Mistral Medium 3.1 | mistral | 131K | $0.40 | $2.00 | $2.40 |
Codestral 2508 | mistral | 256K | $0.30 | $0.90 | $1.20 |
Mistral Large 2411 | mistral | 128K | $2.00 | $6.00 | $8.00 |
Grok 4 | xai | 256K | $3.00 | $15.00 | $18.00 |
Grok Code Fast 1 | xai | 256K | $0.20 | $1.50 | $1.70 |
Grok 3 Mini | xai | 131K | $0.30 | $0.50 | $0.80 |
DeepSeek-R1 | deepseek | N/A | $3.00 | $7.00 | $10.00 |
DeepSeek-V3 | deepseek | N/A | $1.25 | $1.25 | $2.50 |
Qwen3 235B A22B Instruct 2507 | alibaba | 262K | $0.08 | $0.31 | $0.39 |
Qwen3 Coder 30B A3B Instruct | alibaba | 0 | $0.05 | $0.21 | $0.26 |
Llama 4 Maverick | meta | N/A | $0.27 | $0.85 | $1.12 |
What are tokens in LLMs?
Tokens are the basic units that language models process. They can be words, parts of words, or characters. Different models use different tokenization methods, affecting both API costs and model performance.
Supported Models
Calculate tokens for OpenAI GPT-4, Anthropic Claude 3, Google Gemini, and more. Prices updated regularly to reflect current API costs.
Why Token Counting Matters
Understanding token usage helps optimize prompts, reduce API costs, and stay within model context limits. Save money by knowing your token count before making API calls.