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.
Modalities
In / Out Price
$0.30 / $0.90per 1M
Context
256K
Released
Aug 1, 2025
Knowledge Cutoff
Mar 2025
This model is hosted by one provider. OpenRouter forwards every request to it directly — no routing decisions to make.
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.
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).
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.
Scores on standardized evaluations. Higher percentages are better — and rank percentile shows where this model lands among all models on OpenRouter.
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.
Token volume and request traffic to this model over time.
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.
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.
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.
Mistral Medium 3.5, Mistral Small 4, Ministral 3 14B 2512 and 14 more are other text models from Mistral AI.
Codestral 2508 was released on August 1, 2025. Its knowledge cutoff is March 31, 2025.
| $0.30 | $0.90 | $0.03 | 0.41s | 37 tps |
Throughput
37tok/s
P50, best across providers
Latency
0.41s
P50, best provider
100.00%
99.96%
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 customization options.