# Codestral

Model tracker · checked 2026-11-26 · https://dbggr.dev/models/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
- Docs: https://docs.mistral.ai/models/codestral-25-08

## 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 | $0.30 | $0.90 | – | $0.45 | 50% off | [2026-11-26](https://docs.mistral.ai/inference/pricing) |

- Mistral AI: Version 25.08. Batch $0.15 in / $0.45 out.

## Models like Codestral

| Model | Input | Output | Context | Weights |
|---|---|---|---|---|
| Codestral | $0.30 | $0.90 | 128K | Closed |
| [Ling 3.1 Flash](https://dbggr.dev/models/ling-3-1-flash/) | $0.30 | $0.90 | 1M | Open |
| [Step 3.7 Flash](https://dbggr.dev/models/step-3-7-flash/) | $0.20 | $1.15 | 256K | Open |
| [Inkling 2 Small](https://dbggr.dev/models/inkling-2-small/) | $0.30 | $1.00 | 262K | Open |
| [DeepSeek V4.1 Flash](https://dbggr.dev/models/deepseek-v4-1-flash/) | $0.30 | $1.20 | 1M | Open |
| [Muse Glimmer 30B](https://dbggr.dev/models/muse-glimmer-30b/) | $0.30 | $1.20 | 131K | Open |

## 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`.
