
Mistral: Devstral 2 2512
mistralai/devstral-2512
Model weightsDevstral 2 is a state-of-the-art open-source model by Mistral AI specializing in agentic coding. It is a 123B-parameter dense transformer model supporting a 256K context window.
Devstral 2 supports exploring codebases and orchestrating changes across multiple files while maintaining architecture-level context. It tracks framework dependencies, detects failures, and retries with corrections—solving challenges like bug fixing and modernizing legacy systems. The model can be fine-tuned to prioritize specific languages or optimize for large enterprise codebases. It is available under a modified MIT license.
Providers
This model is hosted by one provider. OpenRouter forwards every request without routing.
| $0.40 | $2.00 | $0.04 | 1.09s | 85 tok/s |
Input $0.40 / Output $2.0085 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
Devstral 2 2512 — Price history
| $0.0657 | $2.00 | 92.9% | 100.0% |
- Effective in $0.0657 / Effective out $2.00Token share100.0%
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 |
|---|---|---|
| Artificial Analysis | Devstral 2 Coding Index | 31.3 |
| Artificial Analysis | Devstral 2 Agentic Index | 2.3 |
| Artificial Analysis | Devstral 2 GPQA Diamond | 59.4% |
| Artificial Analysis | Devstral 2 HLE | 3.6% |
| Artificial Analysis | Devstral 2 IFBench | 38.1% |
| Artificial Analysis | Devstral 2 τ²-Bench Telecom | 24.9% |
| Artificial Analysis | Devstral 2 AA-LCR | 32.3% |
| Artificial Analysis | Devstral 2 τ-Bench Banking | 10.5% |
| Artificial Analysis | Devstral 2 GDPval-AA | 2.6% |
| Artificial Analysis | Devstral 2 CritPt | 0.0% |
| Artificial Analysis | Devstral 2 LiveCodeBench | 44.8% |
| Artificial Analysis | Devstral 2 SciCode | 32.8% |
| Artificial Analysis | Devstral 2 Terminal-Bench Hard | 18.9% |
| Artificial Analysis | Devstral 2 Terminal-Bench 4.0 | 0.0% |
| Artificial Analysis | Devstral 2 Terminal-Bench 2.1 | 30.3% |
| Artificial Analysis | Devstral 2 MMLU-Pro | 76.2% |
| Artificial Analysis | Devstral 2 AIME 2025 | 36.7% |
| Vals AI | Devstral 2 IOI v1 | 0.7% |
| Vals AI | Devstral 2 LiveCodeBench | 51.8% |
| Vals AI | Devstral 2 SWE-bench | 62.8% |
| Vals AI | Devstral 2 Terminal-Bench 1.0 | 43.8% |
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: Devstral 2 2512 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
- 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
Devstral 2 is a state-of-the-art open-source model by Mistral AI specializing in agentic coding. It is a 123B-parameter dense transformer model supporting a 256K context window. Devstral 2 supports exploring codebases and orchestrating changes across multiple files while maintaining architecture-level context.
Devstral 2 2512 costs $0.40/M input tokens and $2.00/M output tokens, with separate rates for Cache Read at $0.04/M tokens.
Devstral 2 2512 has a 262,144 token context window. It supports up to 262,144 completion tokens.
Yes. Devstral 2 2512 accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.
Devstral 2 2512 accepts text and files such as PDFs as input and returns text.
Devstral 2 2512 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.
Devstral 2 2512 was released on December 9, 2025.