Model tracker / Mistral AI
Codestral
Mistral code model for fill-in-the-middle completion and code generation
Codestral is a fast model from Mistral AI, released 30 July 2025. At Mistral AI it costs $0.30 per million input tokens and $0.90 per million output tokens, with a 128K-token context window.
- Made by
- Mistral AI
- Released
- 2025-07-30
- Status
- Generally available
- Tier
- Fast
- Weights
- Closed
- Context window
- 128,000 tokens
- Input
- text
- API id
codestral-2508
Codestral price at Mistral AI
US dollars per million tokens. Blended is 3 input tokens for every output token, one number to compare on.
| Provider | Input | Output | Cached input | Blended | Batch | Checked |
|---|---|---|---|---|---|---|
| Mistral AI · maker | $0.30 | $0.90 | – | $0.45 | 50% off | 2026-11-26 |
- Mistral AI: Version 25.08. Batch $0.15 in / $0.45 out.
Models like Codestral
Other fast models closest in price, at each maker's own price or the cheapest provider.
| Model | Input | Output | Context | Weights |
|---|---|---|---|---|
| Codestral | $0.30 | $0.90 | 128K | Closed |
| Ling 3.1 Flash Ant Group | $0.30 | $0.90 | 1M | Open |
| Step 3.7 Flash StepFun | $0.20 | $1.15 | 256K | Open |
| Inkling 2 Small Thinking Machines Lab | $0.30 | $1.00 | 262K | Open |
| DeepSeek V4.1 Flash DeepSeek | $0.30 | $1.20 | 1M | Open |
| Muse Glimmer 30B Meta | $0.30 | $1.20 | 131K | Open |
Compare them all in the model tracker →
Codestral FAQ
How much does Codestral cost?
Codestral costs $0.30 per million input tokens and $0.90 per million output tokens at Mistral AI, with 50% off for batch requests. Prices are list prices in US dollars, last checked 26 November 2026.
What is Codestral's context window?
Codestral takes up to 128,000 tokens in one request.
Is Codestral open weight?
No. Codestral is only available through Mistral AI's API; Mistral AI doesn't publish the weights.
Where can I use Codestral?
Codestral is available from Mistral AI. At Mistral AI, call it as codestral-2508.