by Mistral AI · Devstral family · best for budget open-weight agentic coding
Mistral deprecated Devstral 2 on 2026-05-22 with a retirement date of 2026-07-31 and names Mistral Medium 3.5 as its replacement; it is gone from Mistral's API pricing page, and the open weights remain downloadable from Hugging Face. Devstral 2 (model ID devstral-2-2512, shipped 9 December 2025) is Mistral's open-weight agentic-coding model, launched alongside the Mistral Vibe CLI. It is a 125B-parameter dense transformer with 256K context, built for multi-file edits, repo planning, PR generation, and test running, scoring 72.2% on SWE-bench Verified. Its API list price was $0.40/$2.00 until retirement — meaningfully cheaper on output than Medium 3.5 ($7.50). The license is modified-MIT on the 123B (open with a large-revenue carve-out), and a companion Devstral Small 2 (24B) is clean Apache 2.0. The buyer's sentence: it was the budget open-weight agentic coder in Mistral's lineup, still in the 70%-SWE-bench tier after Medium 3.5 took the crown, and after the API retirement it lives on as self-hosted weights.
| Benchmark | Score | Source |
|---|---|---|
| Terminal-Bench | 32.6% | huggingface.co 2025-12-09T00:00:00.000Z |
| SWE-bench Verified | 72.2% | huggingface.co 2025-12-09T00:00:00.000Z |
Six personas, six verdicts — the same panel that reviews every product on TopReviewed.
“At launch it was our open-weight agentic coder; Mistral retired its API on 2026-07-31, so only self-hosted weights keep it on the roster.”
In December 2025 Devstral 2 was strategically significant: a credible open-weight agentic coder with a first-party CLI. By mid-2026 Mistral's own Medium 3.5 beat it on the headline benchmark and took over the Vibe CLI default. Mistral then deprecated it on 2026-05-22 and retired it from the API on 2026-07-31, naming Medium 3.5 as the replacement, so its remaining relevance is as self-hosted open weights. For new architecture decisions I would default to Medium 3.5. The modified-MIT license on the 125B carries the same enterprise carve-out as Medium 3.5; for clean licensing I'd reach for Devstral Small 2.
“Mistral's open agentic-coder play — repositioned as the value tier beneath its own merged flagship, then retired from the API.”
Devstral 2 established Mistral's open agentic-coding credibility and seeded the Vibe CLI ecosystem. Strategically it has been repositioned from "frontier coder" to "value coder" beneath Medium 3.5, which is a coherent ladder but blunts its standalone narrative. Against Qwen 3 Coder and DeepSeek Coder it competes on tool-use quality and the Vibe CLI; against closed coders it competes on price and openness. The durable asset is the open weights; the EU-hosted, cheap-output API ended with the 2026-07-31 retirement. The 24B Apache-2.0 sibling broadens the strategic surface to laptops and unrestricted fine-tuning.
“$2.00 output vs Medium 3.5's $7.50 for a model within ~5pp on SWE-bench was the whole case — since the 2026-07-31 retirement it runs on your own GPUs.”
The financial case was sharp. Devstral 2's $0.40/$2.00 was 3.75x cheaper on output than Medium 3.5 for a model within ~5pp on SWE-bench, until Mistral retired the API on 2026-07-31. For high-volume batch agentic workloads — automated refactoring, test generation across thousands of files — the cost delta dominated, and the same logic now applies only to self-hosting the open weights. Devstral Small 2 self-hosted on a laptop has effectively zero marginal cost. The caveat is the modified-MIT carve-out at the 125B tier for large enterprises; the clean-license, fixed-cost route is Devstral Small 2. Excellent unit economics for budget-sensitive coding.
“The SWE-bench numbers translate to real productivity via Vibe CLI — multi-file edits and sensible PR scaffolding — and Devstral Small 2 on a laptop is genuinely useful.”
Through Q1 2026 Devstral 2 was my agentic-coding workhorse via Vibe CLI: 72.2% SWE-bench translates to real multi-file edits, sensible PR scaffolding, and decent test generation, and 256K context handles realistic repos. Tool-calling (git/terminal/Python) is reliable. After Medium 3.5 I migrated most new work, and the 2026-07-31 API retirement moves my batch refactoring jobs to self-hosted weights or Medium 3.5. Devstral Small 2 (Apache 2.0) on a laptop is a genuinely useful local agent. The lack of vision is the main felt gap when I want to paste a stack-trace screenshot.
“I see Devstral 2's output — PRs, refactors, generated tests — more than the model itself, and the results are useful more often than not.”
End users meet Devstral 2 through the artifacts its agents produce: PRs, refactors, generated tests via Vibe CLI. Indirectly the experience is good — useful PRs more often than not, with reasonable latency for agent loops. There is no chat or vision dimension to evaluate; it is a coding engine, not a conversational partner. The absence of vision is a felt limitation when a stack-trace screenshot would help. For developers living in an agentic CLI, a dependable engine; for anyone expecting a chatbot, the wrong tool.
“A solid coder whose own maker beat it four months later — and the '7x cheaper than Sonnet' line needs the SWE-bench gap printed next to it.”
Devstral 2 is genuinely capable, so the skepticism is about positioning and license. The "7x more cost-efficient than Claude Sonnet" claim is true on price but elides the ~5-7pp SWE-bench gap — it's cheaper and slightly weaker, not cheaper and equal. The "open weights" framing again carries an asterisk: the 125B is modified-MIT with a large-revenue carve-out, only the 24B is clean Apache 2.0. And Mistral itself superseded it with Medium 3.5 within four months, migrating the CLI default away, then retired the API on 2026-07-31. The honest claim is "good budget open-weight agentic coder with a license caveat at the large size." Buy the 24B for clean self-host, the 125B for self-hosting if you read the license.
The full research notes behind this review — verified against primary sources.
Devstral 2 is a 125B-parameter dense transformer (the HF card states 125B; informally "123B"), purpose-built and fine-tuned for software-engineering agent loops. It is text-only with no vision. Context is 256K. The companion Devstral Small 2 is a 24B dense model under Apache 2.0, designed for local/laptop agentic work. Devstral 2 ships in FP8 with BF16/GGUF variants. Tokenizer is mistral_common. Layer count, attention type, and training scale are undisclosed. The model emphasises tool-calling (git, terminal, Python execution) and multi-file editing over reasoning depth.
Devstral 2 is built for agentic software engineering: multi-file edits, repo planning, PR generation, test running (cap_agentic 8.5, cap_coding 8.0, cap_function_calling 8.5). SWE-bench Verified 72.2% makes it competitive with closed-weight leaders at a fraction of the price, and SWE-bench Multilingual 61.3% shows broad cross-language coding. It pairs naturally with the Mistral Vibe CLI, a terminal-native agent that reads repos, plans edits, and proposes changes. 256K context fits full small-repo loading (cap_long_context 8.0). It is text-only (cap_vision 0.0) and not tuned for chat or creative work (cap_creative_writing 4.0); reasoning is solid but not its headline (cap_reasoning 6.5). Mistral has since retired it from the API in favor of Medium 3.5; as self-hosted weights it remains a strong dedicated coding agent. No native real-time retrieval (cap_realtime_data 0.0).
| Benchmark | Score | vs Predecessor | vs Top Competitor | Source |
|---|---|---|---|---|
| SWE-bench Verified | 72.2% | substantial gain vs Devstral 1 | trails Claude Sonnet 4.5 (~77-79%) and Medium 3.5 (77.6%) by ~5pp | HF card |
| SWE-bench Multilingual | 61.3% | new | strong cross-language coding | HF card |
| Terminal-Bench 2 | 32.6% | new | mid-tier agentic terminal | HF card |
| Devstral Small 2 SWE-bench Verified | ~68% | n/a | best in 24B class | HF card |
Devstral 2 published its core coding benchmarks (SWE-bench Verified/Multilingual, Terminal-Bench 2), so coverage is good for the metrics that matter to a coding agent. General reasoning/math benchmarks are not the focus and are null.
Mistral has not published official tps/TTFT for Devstral 2 (null). As a 125B dense agentic coder it sits in the medium latency tier — latency-per-step is reasonable for agent loops, and the model is typically run in a multi-step harness (Vibe CLI) where total task time, not single-token latency, is what matters. Devstral Small 2 (24B) is faster and laptop-viable for local loops.
| Surface | Cost | Notes |
|---|---|---|
| API input | $0.40 / 1M tok | La Plateforme list price until retirement (2026-07-31) |
| API output | $2.00 / 1M tok | La Plateforme list price until retirement |
| Cached input | $0.04 / 1M tok | cache read |
| Batch (in/out) | $0.20 / $1.00 | ~50% async discount |
| Devstral Small 2 (in/out) | $0.10 / $0.30 | smaller sibling's list price; its API retired 2026-03-31, weights remain (Apache 2.0) |
| Self-host (125B) | modified-MIT | weights on Hugging Face |
| Self-host (24B Small 2) | Apache 2.0 | laptop-viable |
| Vibe CLI | open source | defaults to Medium 3.5, configurable to a self-hosted Devstral 2 |
| Cloud | Bedrock, Azure AI Foundry | managed |
Weights remain on Hugging Face (public, not gated) after the API retirement. LICENSE NOTE: the 125B Devstral 2 is under a modified-MIT license (HF tags it "other") — open for most parties but with a large-revenue commercial carve-out, the same structure as Medium 3.5. The companion Devstral Small 2 (24B) is clean Apache 2.0 with no carve-out, making it the right choice for unrestricted self-host/fine-tune at the small tier. The 125B self-hosts on ~80GB+ VRAM (FP8); Small 2 runs on a laptop. Managed on Bedrock and Azure AI Foundry; La Plateforme served it EU-hosted by default until its 2026-07-31 retirement. Pairs with the open-source Vibe CLI (configurable to a self-hosted Devstral 2; it defaults to Medium 3.5).
Standard Mistral posture: GDPR-native, SOC 2 Type II, ISO 27001/27701, EU AI Act aligned, EU residency by default, 30-day abuse retention, no training on inputs unless opt-in, ZDR available. No built-in moderation. As a coding agent it rarely encounters refusal-sensitive content; practical refusal rate is low.
SDKs in Python and TypeScript/JavaScript; integrates with the Mistral Vibe CLI, Cline, OpenHands, and Continue.dev. Open weights (modified-MIT 125B, Apache-2.0 24B) drive a growing self-host community with FP8/BF16/GGUF derivatives. Popularity is growing, strongest among developers building open-weight agentic coding tools and those running local agents on the 24B.
$2.00. Mistral's launch post and model card list $0.40 input / $2.00 output per 1M tokens, the API price until the 2026-07-31 retirement.
The 125B is modified-MIT (open with a large-revenue carve-out, same as Medium 3.5). For clean Apache 2.0, use Devstral Small 2 (24B).
SWE-bench Verified 72.2% and Multilingual 61.3% — competitive agentic coding, ~5pp behind Medium 3.5 and Claude Sonnet 4.5.
Medium 3.5 on the API: Mistral retired Devstral 2 on 2026-07-31 and names Medium 3.5 as the replacement. Devstral 2 remains an option only as self-hosted weights.
The 125B needs ~80GB+ VRAM; Devstral Small 2 (24B, Apache 2.0) runs on a laptop.
No — text-only. No screenshot-to-code.
An open-source terminal coding agent; it defaults to Medium 3.5 and is configurable to a self-hosted Devstral 2.
Its successor and Mistral's named replacement — +5.4pp SWE-bench but 3.75x the output price ($7.50 vs $2.00), same modified-MIT license.
+5-7pp SWE-bench, several times the price, closed weights — the premium agentic coder.
The clean Apache-2.0 24B sibling for laptop/local agents and unrestricted fine-tuning.
Competitive open-weight coder; weaker tool-use and no first-party CLI.
Primary references used to verify this review.
Does not train on API inputs by default
Last verified 2026-09-21