Code-focused Mistral model for completion and repo assistance. Estimate with real code prompts: token density differs from prose.
Privacy first counting
TokenCALC counts tokens in your browser when an Exact encoding is available. Prompt text does not need to leave your device for local counting.
Pricing snapshot
USD per 1 million tokens. Verify against the provider source before you lock budget.
| Rate | USD |
|---|---|
| Input / 1M | $1.00 |
| Output / 1M | $3.00 |
Model details
| Detail | Value |
|---|---|
| Provider | Mistral |
| Context window | 256K |
| Tokenizer | Approx |
| Last verified | 2026-08-02 |
| API model id | codestral-latest |