Token Counters by Provider: All 11 LLM APIs (2026)
Every major LLM provider, one page each. Real per-million-token rates verified against official pricing pages, the tokenizer each provider actually bills on, and the API quirks that quietly change what you pay.
All 11 providers at a glance
Representative flagship and value tiers per provider, in USD per million tokens. Verified against each provider's own pricing page on 2026-11-01. Cached-input rates are shown where the provider publishes one.
| Provider | Flagship model | Input | Output | Cached input | Context |
|---|---|---|---|---|---|
| OpenAI | GPT-6.1 Sol | $2.00 | $10.00 | $0.10 | 1.05M |
| OpenAI | GPT-6 Astra | $10.00 | $50.00 | $1.00 | 1.05M |
| Anthropic | Claude Sonnet 5.5 | $2.00 | $10.00 | $0.10 | 1M |
| Anthropic | Claude Haiku 5.5 | $0.10 | $0.50 | $0.01 | 1M |
| Gemini 4 Argon | $2.00 | $10.00 | $0.10 | 1M | |
| Gemini 3.8 Flash | $0.75 | $3.75 | $0.075 | 1M | |
| Alibaba Qwen | Qwen3.8-Max | $2.00 | $6.00 | — | 1M |
| Alibaba Qwen | Qwen3.7-Flash | $0.03 | $0.13 | — | 1M |
| DeepSeek | DeepSeek Flash (V4.1) | $0.15 | $0.60 | $0.003 | 1M |
| Meta Llama | Llama 4 Maverick | $0.24 | $0.97 | — | 1M |
| Meta Llama | Llama 4 Scout | $0.17 | $0.66 | — | 10M |
| Mistral | Mistral Large 4 | $0.70 | $2.10 | $0.07 | 1M |
| Mistral | Mistral Small 4 | $0.15 | $0.60 | $0.015 | — |
| Zhipu GLM | GLM-4.7 | $0.60 | $2.20 | — | — |
| xAI Grok | grok-4.6 | $2.00 | $6.00 | — | 500K |
| Groq | Llama 4 Maverick | $0.24 | $0.97 | — | 1M |
| Perplexity | Sonar | $1.00 | $1.00 | — | — |
| Perplexity | Sonar Pro | $3.00 | $15.00 | — | — |
Perplexity adds a per-request search fee on top of the token rate — see its page for the breakdown. Groq bills the same LPU inference rates it lists on its public rate card. xAI and Zhipu prices were last verified 2026-08-28; every other row was verified 2026-11-01.
Frontier models
Open-weight & Chinese models
Search & fast inference
How each provider counts tokens
The count method matters more than most people expect. Two providers can quote the same $/MTok and still produce different bills for identical text, because the token counts underneath differ. Every card in the calculator labels which method was used.
| Provider | Tokenizer | Count accuracy |
|---|---|---|
| OpenAI | Tiktoken, o200k_base vocabulary | Exact |
| Anthropic | Private vocabulary via count_tokens() API |
Exact |
| SentencePiece, 256K vocabulary | Exact via countTokens API |
|
| DeepSeek, Qwen, Llama, Mistral | Hugging Face Transformers.js (WASM) | ±3% |
| Grok, GLM, Perplexity | Character estimator with per-provider ratios | ±15–20% |
Why the same text costs more tokens on some providers
Anthropic uses a smaller vocabulary than OpenAI's o200k_base, so the same English sentence splits into 10–20% more tokens — and on Claude 4.7 and newer, the redesigned tokenizer adds roughly 30% more on top of that. Google went the other way: Gemini's 256K SentencePiece vocabulary compresses Chinese and Japanese harder than GPT does, so a CJK-heavy prompt can cost fewer tokens on Gemini than on GPT for the same content. Token count and per-token rate multiply, which is why sticker-price comparisons so often miss.
For the method behind every count, see how to count tokens. For a side-by-side price ranking of everything, see the AI API pricing comparison.
Compare every provider on your own text
Paste any prompt and see the real token count and cost across all 11 providers in one place.
Open the Token Calculator →