LLM Token Calculator
Calculate number of tokens, words, and characters for LLMs (GPT-4o, GPT-o1, GPT-4, Claude, Gemini)
Recent Models and Prices
Model | Provider | Context | Input/1M Tokens | Input(cached)/1M Tokens | Output/1M Tokens | Input Price | Input(cached) Price | Output Price |
---|---|---|---|---|---|---|---|---|
o1-preview | OpenAI | 128K | $15.00 | $0.00 | $60.00 | $0.00 | $0.00 | $0.00 |
o1-mini | OpenAI | 128K | $3.00 | $0.00 | $12.00 | $0.00 | $0.00 | $0.00 |
gpt-4o | OpenAI | 128K | $2.50 | $0.00 | $10.00 | $0.00 | $0.00 | $0.00 |
gpt-4o-mini | OpenAI | 128K | $0.15 | $0.00 | $0.60 | $0.00 | $0.00 | $0.00 |
gpt-4-turbo | OpenAI | 128K | $10.00 | $0.00 | $30.00 | $0.00 | $0.00 | $0.00 |
gpt-3.5-turbo | OpenAI | 16K | $0.50 | $0.00 | $1.50 | $0.00 | $0.00 | $0.00 |
claude-3-5-sonnet-20241022 | Anthropic | 200K | $3.00 | $0.00 | $15.00 | $0.00 | $0.00 | $0.00 |
claude-3.7-sonnet-20241015 | Anthropic | 200K | $4.00 | $0.00 | $20.00 | $0.00 | $0.00 | $0.00 |
claude-3-opus-20240229 | Anthropic | 200K | $15.00 | $0.00 | $75.00 | $0.00 | $0.00 | $0.00 |
claude-3-sonnet-20240229 | Anthropic | 200K | $3.00 | $0.00 | $15.00 | $0.00 | $0.00 | $0.00 |
claude-3-haiku-20240307 | Anthropic | 200K | $0.25 | $0.00 | $1.25 | $0.00 | $0.00 | $0.00 |
gemini-2.0-flash-exp | 1M | $0.08 | $0.00 | $0.30 | $0.00 | $0.00 | $0.00 | |
gemini-1.5-pro | 2M | $1.25 | $0.00 | $5.00 | $0.00 | $0.00 | $0.00 | |
gemini-1.5-flash | 1M | $0.08 | $0.00 | $0.30 | $0.00 | $0.00 | $0.00 | |
meta-llama/Llama-3.3-70B-Instruct | Meta | 128K | $0.60 | $0.00 | $0.60 | $0.00 | $0.00 | $0.00 |
meta-llama/Llama-3.2-90B-Vision-Instruct | Meta | 128K | $1.20 | $0.00 | $1.20 | $0.00 | $0.00 | $0.00 |
meta-llama/Llama-3.2-11B-Vision-Instruct | Meta | 128K | $0.18 | $0.00 | $0.18 | $0.00 | $0.00 | $0.00 |
meta-llama/Llama-3.1-405B-Instruct | Meta | 128K | $2.70 | $0.00 | $2.70 | $0.00 | $0.00 | $0.00 |
meta-llama/Llama-3.1-70B-Instruct | Meta | 128K | $0.60 | $0.00 | $0.60 | $0.00 | $0.00 | $0.00 |
meta-llama/Llama-3.1-8B-Instruct | Meta | 128K | $0.06 | $0.00 | $0.06 | $0.00 | $0.00 | $0.00 |
mistral-large-2407 | Mistral AI | 128K | $2.00 | $0.00 | $6.00 | $0.00 | $0.00 | $0.00 |
mistral-small-2409 | Mistral AI | 32K | $0.20 | $0.00 | $0.60 | $0.00 | $0.00 | $0.00 |
codestral-2405 | Mistral AI | 32K | $0.20 | $0.00 | $0.60 | $0.00 | $0.00 | $0.00 |
deepseek-chat | DeepSeek | 64K | $0.14 | $0.00 | $0.28 | $0.00 | $0.00 | $0.00 |
deepseek-3.1 | DeepSeek | 128K | $0.12 | $0.00 | $0.24 | $0.00 | $0.00 | $0.00 |
qwen/qwen-2.5-72b-instruct | Alibaba | 32K | $0.56 | $0.00 | $0.56 | $0.00 | $0.00 | $0.00 |
claude-4-opus-20250522 | Anthropic | 200K | $15.00 | $0.00 | $75.00 | $0.00 | $0.00 | $0.00 |
claude-4-sonnet-20250522 | Anthropic | 200K | $3.00 | $0.00 | $15.00 | $0.00 | $0.00 | $0.00 |
o3 | OpenAI | 200K | $1.65 | $0.00 | $6.60 | $0.00 | $0.00 | $0.00 |
o3-mini | OpenAI | 200K | $0.28 | $0.00 | $1.10 | $0.00 | $0.00 | $0.00 |
o4-mini | OpenAI | 200K | $1.10 | $0.00 | $4.40 | $0.00 | $0.00 | $0.00 |
gemini-2.5-pro-preview-05-06 | 1M | $1.25 | $0.00 | $10.00 | $0.00 | $0.00 | $0.00 | |
mistral-medium-2505 | Mistral AI | 128K | $0.40 | $0.00 | $2.00 | $0.00 | $0.00 | $0.00 |
codestral-2501 | Mistral AI | 256K | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 |
mistral-small-2503 | Mistral AI | 128K | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 |
devstral-small-2505 | Mistral AI | 128K | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 |
mistral-saba-2502 | Mistral AI | 32K | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 |
Qwen3-235B-A22B | Alibaba | 128K | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 |
Qwen3-30B-A3B | Alibaba | 128K | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 |
Qwen3-32B | Alibaba | 128K | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 | $0.00 |
gemini-2.5-flash-preview-05-20 | 1M | $0.15 | $0.00 | $0.60 | $0.00 | $0.00 | $0.00 |
Frequently Asked Questions
Loading FAQs...