Codestral
API ID codestral-2508
Codestral is a Mistral model, released August 2025. It has a 128,000-token context window. It takes PDF input and supports function calling and structured outputs. Standard price: $0.30 input and $0.90 output per 1M tokens.
Our cutting-edge language model for code completion released end of July 2025, Codestral specializes in low-latency, high-frequency tasks such as fill-in-the-middle (FIM) and code generation.
- Status
- Active
- Released
- August 2025
- Shutdown
- none announced
- Replacement
- —
No deprecation or shutdown date has been announced as of October 15, 2026.
Aliases pointing here: codestral-latest (in place when tracking began (October 6, 2026))
Features
Compare models| Feature | Value | Since | Source |
|---|---|---|---|
| Structured outputsThe model can be held to a JSON schema you supply, so every reply parses without retries or cleanup. | Supported | in place when tracking began (October 6, 2026) | source |
| Function callingAlso called tool use. You describe functions; the model replies with a function name and arguments for your code to run, then uses the result. | Supported | in place when tracking began (October 6, 2026) | source |
| Batch APISend many requests as one job that runs in the background, usually finished within 24 hours, at a lower price than live requests. | Supported | in place when tracking began (October 6, 2026) | source |
| PDF inputPDF files can go in the prompt directly, without converting them to text first. | Supported | in place when tracking began (October 6, 2026) | source |
| Context windowThe most the model can work with in one request, in tokens: your prompt, conversation history and files. A token is about three-quarters of an English word. | 128,000 tokens | in place when tracking began (October 6, 2026) | source |
Not published by Mistral: Prompt caching, Image input, Reasoning / thinking, Fine-tuning, Built-in web search, temperature parameter, top_p parameter, logprobs, Max output tokens.
Price history
USD per 1M tokens, standard tierWe started recording this model's prices on Oct 5, 2026. The history grows with each daily check.
Show as a table
| From | Type | Price |
|---|---|---|
| Oct 5, 2026 | Input | $0.30 |
| Oct 5, 2026 | Output | $0.90 |
Prices
USD per 1M tokens, every type and band, by tier| Type | Price $/1M | In effect |
|---|---|---|
| Standard | ||
| input | $0.30 | |
| output | $0.90 | |
Changelog
Changes we detected on Mistral's pagesNo changes recorded yet.
Email alerts
Get an email if codestral-2508 changes
We'll email you the same morning we spot a deprecation notice, a new or moved shutdown date, a price change, or the model leaving Mistral's model list.
No password: one email to confirm, and you can unsubscribe any time. Privacy
Last checked · Sources: Mistral models