Devstral 2 2512 vs Gemma 4 31B
Gemma 4 31B leads Devstral 2 2512 on the Artificial Analysis Intelligence Index, 14.7 to 8.6, and Gemma 4 31B costs 5.0x less per output token ($0.40 vs $2.00 per million). Updated October 22, 2026; 3 benchmarks have a result for both.
Devstral 2 2512 or Gemma 4 31B: which to pick
Only Gemma 4 31B has a coding score, 39.0 on the Vibe Coding Index; Devstral 2 2512 has none, so the two cannot be ranked on coding.
Compare them on price, context and the boards below.
- Shared results
- 3
- Devstral 2 2512 only
- 3
- Gemma 4 31B only
- 68
- Like-for-like categories
- 3 of 9
Only benchmarks that tested both models count toward a pick; a result only one model has is shown but not compared.
Which one for your work
Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.
Coding
Vibe Coding Index, six public coding benchmarks
No call
Only Gemma 4 31B has a coding score, so no call is made.
One side not measured
Intelligence
AA Intelligence Index
Gemma 4 31B
Gemma 4 31B leads, 14.7 against 8.6.
Same board, both measured
Agentic work
AA Agentic Index
Gemma 4 31B
Gemma 4 31B leads, 4.2 against 2.3.
Same board, both measured
Long documents
Listed context window
No call
Both take 262K tokens.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemma 4 31B
Devstral 2 2512 $0.0014, Gemma 4 31B $0.0003 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only Devstral 2 2512 has the number, $1.19.
Directional only
At a glance
- Coding index
- Devstral 2 2512 not benchmarked, Gemma 4 31B 39.0 from 2 benchmarks.
- Widest category
- Coding, 12.1 points apart on average over 1 shared benchmark.
- Widest single gap
- AA Coding Index: Devstral 2 2512 31.3 against Gemma 4 31B 43.4, 12.1 points apart on a 0 to 100 scale.
- Output price
- Devstral 2 2512 $2.00 against Gemma 4 31B $0.40 per million output tokens, 5.0x apart.
- Context window
- Both take 262K tokens.
Benchmark by benchmark
First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.
| Category | Devstral 2 2512 | Bars | Gemma 4 31B | Ties |
|---|---|---|---|---|
| Coding | 0 | 1 | ||
| Intelligence | 0 | 1 | ||
| Agentic work | 0 | 1 | ||
| All shared boards | 0 | 3 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index01
| Benchmark | Devstral 2 2512 | Gemma 4 31B | Leader |
|---|---|---|---|
| SWE-bench Verified | 53.8% | Not measured | Only Devstral 2 2512 measured |
| LiveBench coding | Not measured | 49.0% | Only Gemma 4 31B measured |
| LMArena WebDev | Not measured | 1367 | Only Gemma 4 31B measured |
| AA Coding Index | 31.3 | 43.4 | Gemma 4 31B |
| LiveCodeBench (Vals AI) | 51.8% | Not measured | Only Devstral 2 2512 measured |
| SWE-bench Verified (Vals AI) | 62.8% | Not measured | Only Devstral 2 2512 measured |
| SciCode | Not measured | 45.5% | Only Gemma 4 31B measured |
| Terminal-Bench Hard (Artificial Analysis run) | Not measured | 36.4% | Only Gemma 4 31B measured |
| WeirdML | Not measured | 52.3% | Only Gemma 4 31B measured |
| ALE-Bench | Not measured | 925.5 | Only Gemma 4 31B measured |
| LMArena Text: coding | Not measured | 1459 | Only Gemma 4 31B measured |
| LMArena Text: software and IT | Not measured | 1463 | Only Gemma 4 31B measured |
| LMArena WebDev: React | Not measured | 1359 | Only Gemma 4 31B measured |
| LMArena WebDev: HTML | Not measured | 1380 | Only Gemma 4 31B measured |
| SciCode | Not measured | 8.9% | Only Gemma 4 31B measured |
| Neither model has a result on the other 24 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
| Benchmark | Devstral 2 2512 | Gemma 4 31B | Leader |
|---|---|---|---|
| AA Intelligence Index | 8.6 | 14.7 | Gemma 4 31B |
| Epoch Capabilities Index | Not measured | 143.0 | Only Gemma 4 31B measured |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index01
| Benchmark | Devstral 2 2512 | Gemma 4 31B | Leader |
|---|---|---|---|
| AA Agentic Index | 2.3 | 4.2 | Gemma 4 31B |
| LiveBench research | Not measured | 44.4% | Only Gemma 4 31B measured |
| LiveBench browser | Not measured | 4.0% | Only Gemma 4 31B measured |
| LiveBench long agentic | Not measured | 13.3% | Only Gemma 4 31B measured |
| τ²-Bench Telecom | Not measured | 65.5% | Only Gemma 4 31B measured |
| Neither model has a result on the other 36 boards here | |||
ReasoningDirectional onlyPublic boards, shown as published, kept out of the index10 boards, none shared
| Benchmark | Devstral 2 2512 | Gemma 4 31B | Leader |
|---|---|---|---|
| LiveBench reasoning | Not measured | 68.3% | Only Gemma 4 31B measured |
| GPQA Diamond (Artificial Analysis run) | Not measured | 85.7% | Only Gemma 4 31B measured |
| Humanity's Last Exam (Artificial Analysis run) | Not measured | 23.6% | Only Gemma 4 31B measured |
| GPQA Diamond (Epoch AI run) | Not measured | 75.8% | Only Gemma 4 31B measured |
| LMArena Text: hard prompts | Not measured | 1448 | Only Gemma 4 31B measured |
| LMArena Text: expert | Not measured | 1464 | Only Gemma 4 31B measured |
| LMArena Text: hard prompts in English | Not measured | 1456 | Only Gemma 4 31B measured |
| LMArena Vision: diagrams | Not measured | 1283 | Only Gemma 4 31B measured |
| LMArena Vision: homework | Not measured | 1310 | Only Gemma 4 31B measured |
| Kagi LLM Benchmark | Not measured | 63.5% | Only Gemma 4 31B measured |
| Neither model has a result on the other 12 boards here | |||
MathDirectional onlyPublic boards, shown as published, kept out of the index3 boards, none shared
| Benchmark | Devstral 2 2512 | Gemma 4 31B | Leader |
|---|---|---|---|
| OTIS Mock AIME | Not measured | 73.3% | Only Gemma 4 31B measured |
| LMArena Text: math | Not measured | 1463 | Only Gemma 4 31B measured |
| LMArena Text: mathematical work | Not measured | 1465 | Only Gemma 4 31B measured |
| Neither model has a result on the other 10 boards here | |||
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
| Benchmark | Devstral 2 2512 | Gemma 4 31B | Leader |
|---|---|---|---|
| CaseLaw (Vals AI) | Not measured | 52.6% | Only Gemma 4 31B measured |
| MortgageTax (Vals AI) | Not measured | 61.4% | Only Gemma 4 31B measured |
| SimpleQA Verified | Not measured | 10.4% | Only Gemma 4 31B measured |
| LMArena Text: science | Not measured | 1457 | Only Gemma 4 31B measured |
| LMArena Text: medicine and healthcare | Not measured | 1451 | Only Gemma 4 31B measured |
| LMArena Text: legal and government | Not measured | 1438 | Only Gemma 4 31B measured |
| LMArena Text: business and finance | Not measured | 1430 | Only Gemma 4 31B measured |
| FACTS Benchmark Suite | Not measured | 45.3% | Only Gemma 4 31B measured |
| Neither model has a result on the other 10 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index1 board, none shared
| Benchmark | Devstral 2 2512 | Gemma 4 31B | Leader |
|---|---|---|---|
| LiveBench design | Not measured | 58.4% | Only Gemma 4 31B measured |
| Neither model has a result on the other 8 boards here | |||
GeneralDirectional onlyPublic boards, shown as published, kept out of the index30 boards, none shared
| Benchmark | Devstral 2 2512 | Gemma 4 31B | Leader |
|---|---|---|---|
| LiveBench data analysis | Not measured | 53.3% | Only Gemma 4 31B measured |
| SAGE (Vals AI) | Not measured | 55.0% | Only Gemma 4 31B measured |
| IFBench | Not measured | 75.6% | Only Gemma 4 31B measured |
| Long context reasoning (AA-LCR) | Not measured | 69.7% | Only Gemma 4 31B measured |
| DTBench | Not measured | 82.7% | Only Gemma 4 31B measured |
| LMCA | Not measured | 39.3% | Only Gemma 4 31B measured |
| Surface Evolver Bench | Not measured | 30.6% | Only Gemma 4 31B measured |
| LMArena Text | Not measured | 1443 | Only Gemma 4 31B measured |
| LMArena Text: instruction following | Not measured | 1433 | Only Gemma 4 31B measured |
| LMArena Text: creative writing | Not measured | 1417 | Only Gemma 4 31B measured |
| LMArena Vision | Not measured | 1276 | Only Gemma 4 31B measured |
| LMArena Text: English | Not measured | 1451 | Only Gemma 4 31B measured |
| LMArena Text: non-English | Not measured | 1430 | Only Gemma 4 31B measured |
| LMArena Text: Chinese | Not measured | 1475 | Only Gemma 4 31B measured |
| LMArena Text: French | Not measured | 1436 | Only Gemma 4 31B measured |
| LMArena Text: Spanish | Not measured | 1442 | Only Gemma 4 31B measured |
| LMArena Text: Russian | Not measured | 1460 | Only Gemma 4 31B measured |
| LMArena Text: Polish | Not measured | 1433 | Only Gemma 4 31B measured |
| LMArena Text: multi-turn | Not measured | 1452 | Only Gemma 4 31B measured |
| LMArena Text: longer queries | Not measured | 1446 | Only Gemma 4 31B measured |
| LMArena Text: writing and language | Not measured | 1432 | Only Gemma 4 31B measured |
| LMArena Text: entertainment and media | Not measured | 1405 | Only Gemma 4 31B measured |
| LMArena Vision: English | Not measured | 1271 | Only Gemma 4 31B measured |
| LMArena Vision: Chinese | Not measured | 1326 | Only Gemma 4 31B measured |
| LMArena Vision: reading text | Not measured | 1282 | Only Gemma 4 31B measured |
| LMArena Vision: humor | Not measured | 1280 | Only Gemma 4 31B measured |
| LMArena Vision: captioning | Not measured | 1218 | Only Gemma 4 31B measured |
| LMArena Vision: recognizing things | Not measured | 1226 | Only Gemma 4 31B measured |
| LMArena Vision: creative writing | Not measured | 1285 | Only Gemma 4 31B measured |
| LMArena Document | Not measured | 1425 | Only Gemma 4 31B measured |
| Neither model has a result on the other 16 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Devstral 2 2512 | Gemma 4 31B | Leader |
|---|---|---|---|
| Neither model has a result on 5 boards here | |||
What each workload costs
Three fixed token mixes at each model's listed price, so per-token rates become a bill.
Chat turn
1K input + 500 output tokens
Gemma 4 31B costs less
Repository review
50K input + 3K output tokens
Gemma 4 31B costs less
Agent loop
200K input + 10K output tokens
Gemma 4 31B costs less
Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.
Specification differences
The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.
| Specification | Mistral Devstral 2 2512 | Google Gemma 4 31B |
|---|---|---|
| Maker | Mistral AI | |
| Weights | Open weights | Open weights |
| Released | December 9, 2025 | April 2, 2026 |
| Context window | 262K | 262K |
| Input $/Mtok | $0.40 | $0.14 |
| Output $/Mtok | $2.00 | $0.40 |
| Coding index | Not benchmarked | 39.0 |
| Independent measurements behind it | 1 | 2 |
| Cost per solved task | $1.19 | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Devstral 2 2512 better than Gemma 4 31B for coding?
Only Gemma 4 31B has a coding score, 39.0 on the Vibe Coding Index; Devstral 2 2512 has none, so the two cannot be ranked on coding. Compare them on price, context and the boards below.
Which is cheaper, Devstral 2 2512 or Gemma 4 31B?
Devstral 2 2512 costs $0.40 per million input tokens and $2.00 per million output tokens; Gemma 4 31B costs $0.14 and $0.40. Cost per solved task is known for Devstral 2 2512 only.
Which has the bigger context window, Devstral 2 2512 or Gemma 4 31B?
Neither: both take 262K tokens.
How many benchmarks is the Devstral 2 2512 vs Gemma 4 31B comparison based on?
3 benchmarks have a result for both models as of October 22, 2026. Devstral 2 2512's coding index rests on 1 independent benchmark and Gemma 4 31B's on 2. Where only one model has a result, the page says so instead of naming a winner.