Mistral's cutting-edge language model for coding released end of July 2025. Codestral specializes in low-latency, high-frequency tasks such as fill-in-the-middle (FIM), code correction and test generation.
Providers
Different companies host the same model. OpenRouter routes your request to one of them based on the routing mode you pick: Balanced (price + speed), Nitro (fastest), or Floor (cheapest).
| $0.30 | $0.90 | $0.030 | 0.37s | 134 tok/s | ||
Not used in Standard routing:Why these endpoints are not used | ||||||
| $0.33 | $0.99 | $0.033 | -- | -- | ||
Input $0.30 / Output $0.90134 tok/s99.91% uptime- Not used in Standard routing:Why these endpoints are not used
Input $0.33 / Output $0.99-- tok/s100.00% uptime
Pricing
The average price customers actually pay for this model, next to the prices providers post. Caching and discounts mean the price actually paid is often well below the listed one.
Weighted average
Codestral 2508 — Price history
| $0.0676 | $0.897 | 86.0% | 99.8% | ||
Not used in Standard routing:Why these endpoints are not used | |||||
| $0.1741 | $0.960 | 52.3% | 0.2% | ||
- Effective in $0.0676 / Effective out $0.897Token share99.8%
- Not used in Standard routing:Why these endpoints are not used
- Effective in $0.1741 / Effective out $0.960Token share0.2%
Performance
Throughput is how fast the model writes (tokens per second — higher is better). Latency is total round-trip time (lower is better). TTFT is time-to-first-token — how long before you see anything appear (lower is better).
P50, best across providers
P50, best provider
Uptime
Uptime is the percentage of the past 3 days that at least one provider was responding to requests. Availability is the percentage of time that inference was successfully served. OpenRouter continuously monitors and uses the next-best provider when one returns an error.
Availability over the last 3 days
Last 72 hoursAvailability over the last 24 hours
When an error occurs in an upstream provider, we can recover by routing to another healthy provider, if your request filters allow it. You can access per-provider uptime data programmatically through the Endpoints API. Learn more about our load balancing and provider routing options.
Benchmarks
Scores on standardized evaluations and this model’s own outputs on shared benchmark prompts. Higher percentages are better — and each rank shows where this model lands among the models evaluated on that source.
| Source | Benchmark | Score |
|---|---|---|
| Design Arena | Codestral 2508 Models Arena 3D Elo | 999 |
| Design Arena | Codestral 2508 Models Arena Code Categories Elo | 996 |
| Design Arena | Codestral 2508 Models Arena Data Visualization Elo | 1016 |
| Design Arena | Codestral 2508 Models Arena Game Development Elo | 957 |
| Design Arena | Codestral 2508 Models Arena UI Component Elo | 1008 |
| Design Arena | Codestral 2508 Models Arena Website Elo | 1004 |
Apps
Public apps that send the most traffic to this model. Good signal for what real production workloads look like — and a hint at which use cases this model is best suited for.
Activity
Token volume and request traffic to this model over time.
API
Drop-in code to call this model. OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. The only thing that changes between models is the model slug below.
Available through EU in-region routing
Mistral: Codestral 2508 is available through EU in-region routing. Requests sent to eu.openrouter.ai are decrypted in the EU and routed only to shared provider endpoints in Europe (the EU/EEA, the UK, and Switzerland).
- Providers in Europe
- Mistral
- Prices in Europe
- Mistral: $0.33/M tokens input, $0.99/M tokens output
- Base URL
https://eu.openrouter.ai/api/v1- Plan
- Requires Business or Enterprise. Self-serve on Business: no contract, no monthly minimum. OpenRouter Business for EU in-region routing
Fails closed: if no shared provider endpoint in Europe is available, the request errors instead of leaving the region. Requests served by your own BYOK key go to your deployment’s region, which you control. In-region routing docs
Frequently asked questions
Mistral's cutting-edge language model for coding released end of July 2025. Codestral specializes in low-latency, high-frequency tasks such as fill-in-the-middle (FIM), code correction and test generation. Blog Post
Codestral 2508 costs $0.30/M input tokens and $0.90/M output tokens, with separate rates for Cache Read at $0.03/M tokens.
Codestral 2508 has a 256,000 token context window. It supports up to 256,000 completion tokens.
Yes. Codestral 2508 accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.
Codestral 2508 accepts text and files such as PDFs as input and returns text.
Codestral 2508 is served by 1 provider on OpenRouter: Mistral.
Mistral Large 4, Mistral Medium 3.5, Mistral Small 4 and 16 more are other text models from Mistral.
Codestral 2508 was released on August 1, 2025. Its knowledge cutoff is March 31, 2025.