★ Mistral · token counter
Mistral Token Counter
Mistral publishes its tokenizers through the mistral-common library, but they aren't available as a small browser package. This page gives a labelled estimate with cost per call and context use.
- Runs in your browser
- No signup
- 306
- Characters
- 54
- Words
- —
- Tokens / word
Tokens per word uses the o200k_base count. Characters count emoji and accented letters as one each.
Tokens
…
Estimated with o200k_base as a stand-in. Mistral's own tokenizer isn't available in the browser.
Context window used
—
1M tokens window on Mistral Large 4.
Input cost per call
—
Per 1,000 calls
—
Every model, same text
| Model | Tokens | Accuracy | Input / call |
|---|---|---|---|
| Claude Fable 5.1Anthropic | … | ≈ Estimate | — |
| Claude Opus 5.5Anthropic | … | ≈ Estimate | — |
| Claude Sonnet 5.5Anthropic | … | ≈ Estimate | — |
| Claude Haiku 5.5Anthropic | … | ≈ Estimate | — |
| GPT-6 AstraOpenAI | … | ✓ Exact | — |
| GPT-6.1 SolOpenAI | … | ✓ Exact | — |
| GPT-6 LunaOpenAI | … | ✓ Exact | — |
| Gemini 4 ArgonGoogle | 77 | ≈ Estimate | $0.00015 |
| Gemini 3.8 FlashGoogle | 77 | ≈ Estimate | $0.00006 |
| Gemini 3.1 Flash-LiteGoogle | 77 | ≈ Estimate | $0.00002 |
| Mistral Large 4Mistral | … | ≈ Estimate | — |
| Mistral Small 4Mistral | … | ≈ Estimate | — |
| DeepSeek V4.1 FlashDeepSeek | 92 | ≈ Estimate | $0.00003 |
| DeepSeek V4 ProDeepSeek | 92 | ≈ Estimate | $0.00012 |
| Llama (open weights)Meta | … | ≈ Estimate | — |
OpenAI rows use o200k_base, exact for that tokenizer. tiktoken hasn't mapped GPT-6 model names yet, so OpenAI hasn't confirmed GPT-6 uses it. Input cost is list price for your text alone, before system prompts, caching or output.
See the tokens
o200k_base
Loading the tokenizer…
Your tokens on Mistral Large 4.
Prompts eating your context window? I build RAG and prompt pipelines that use a fraction of the tokens.
How Mistral tokenizes
Newer Mistral models use Tekken, a byte-pair-encoding tokenizer built on tiktoken that Mistral introduced with Mistral NeMo. Mistral says it was trained on more than 100 languages and compresses source code and several languages more efficiently than its older SentencePiece tokenizer.
The tokenizers ship in the mistral-common library, which also handles chat templates and tool calls.
Exact or estimate?
Estimate. We count with o200k_base as a stand-in for Tekken. Both are large BPE vocabularies, but the counts will not match exactly.
For an exact number, use Mistral's own tokenizer from mistral-common.
Current Mistral models
Context windows and input prices from the pricing data used across these tools.
| Model | Context window | Input / 1M |
|---|---|---|
| Mistral Large 4 | 1M tokens | $0.70 |
| Mistral Small 4 | 256K tokens | $0.15 |
Quirks worth knowing
- Chat templates and tool definitions add tokens beyond your text.
- Older Mistral models use older tokenizers, so counts differ between generations.
- Mistral Large 4 is listed as Public Preview in the pricing data, so its pricing may change.
Sources: Mistral docs: Tokenization · Mistral AI: Mistral NeMo (Tekken tokenizer)
Questions people actually ask
Which tokenizer does Mistral use?
Is the Mistral count exact here?
Does Tekken use fewer tokens for code?
Which counts on this page are exact?
Is my text sent anywhere?
Count by model family
- Claude token counter
- GPT token counter
- Gemini token counter
- Llama token counter
- DeepSeek token counter
Or compare every family at once on the main token counter.
More from the workbench
Fine print
Tools: on the house.
Engineer: by the hour.
Counting tokens was free. Spending fewer of them is a project.
I'm Himanshu, an AI and full-stack engineer. I build MVPs, AI agents and the growth plumbing around them for early-stage startups.
