Enter opens the highlighted result. Esc closes.

Devstral 2 2512 vs Gemma 3 4B

Updated October 21, 2026. 2 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

Devstral 2 2512Mistral AI
Coding
No data
Overall
8.6
Output $/M
$2.00
2
Gemma 3 4BGoogle
Coding
No data
Overall
4.8
Output $/M
$0.075
0
vs boards won of 2 shared

Decision reading

Neither model has a coding score yet, so the two cannot be ranked on coding.

Devstral 2 2512 has the edge where the context window is larger, 262K against 131K tokens.

Shared results
2
Devstral 2 2512 only
4
Gemma 3 4B only
37
Like-for-like categories
2 of 9

Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.

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.

At a glance

Coding index
Devstral 2 2512 not benchmarked, Gemma 3 4B not benchmarked.
Widest category
Coding, 28.6 points apart on average over 1 shared benchmark.
Widest single gap
AA Coding Index: Devstral 2 2512 31.3 against Gemma 3 4B 2.7, 28.6 points apart on a 0 to 100 scale.
Output price
Devstral 2 2512 $2.00 against Gemma 3 4B $0.075 per million output tokens, 26.7x apart.
Context window
Devstral 2 2512 takes 262K tokens, Gemma 3 4B 131K.

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.

Boards won, where both have a result
CategoryDevstral 2 2512BarsGemma 3 4BTies
Coding10
Intelligence10
All shared boards20
CodingLike-for-likeSix of these boards feed the Vibe Coding Index10
Coding benchmarks for Devstral 2 2512 and Gemma 3 4B
BenchmarkDevstral 2 2512Gemma 3 4BLeader
SWE-bench Verified53.8%Not measuredOnly Devstral 2 2512 measured
AA Coding Index31.32.7Devstral 2 2512
LiveCodeBench (Vals AI)51.8%Not measuredOnly Devstral 2 2512 measured
SWE-bench Verified (Vals AI)62.8%Not measuredOnly Devstral 2 2512 measured
LiveCodeBench (Artificial Analysis run)Not measured11.2%Only Gemma 3 4B measured
Terminal-Bench Hard (Artificial Analysis run)Not measured0.8%Only Gemma 3 4B measured
LMArena Text: codingNot measured1230Only Gemma 3 4B measured
LMArena Text: software and ITNot measured1269Only Gemma 3 4B measured
Neither model has a result on the other 30 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for Devstral 2 2512 and Gemma 3 4B
BenchmarkDevstral 2 2512Gemma 3 4BLeader
AA Intelligence Index8.64.8Devstral 2 2512
Epoch Capabilities IndexNot measured115.9Only Gemma 3 4B measured
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index2 boards, none shared
Agentic work benchmarks for Devstral 2 2512 and Gemma 3 4B
BenchmarkDevstral 2 2512Gemma 3 4BLeader
AA Agentic Index2.3Not measuredOnly Devstral 2 2512 measured
τ²-Bench TelecomNot measured5.0%Only Gemma 3 4B measured
Neither model has a result on the other 37 boards here
ReasoningDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
Reasoning benchmarks for Devstral 2 2512 and Gemma 3 4B
BenchmarkDevstral 2 2512Gemma 3 4BLeader
GPQA Diamond (Artificial Analysis run)Not measured29.1%Only Gemma 3 4B measured
Humanity's Last Exam (Artificial Analysis run)Not measured5.3%Only Gemma 3 4B measured
GPQA Diamond (Epoch AI run)Not measured23.2%Only Gemma 3 4B measured
LMArena Text: hard promptsNot measured1253Only Gemma 3 4B measured
LMArena Text: expertNot measured1223Only Gemma 3 4B measured
LMArena Text: hard prompts in EnglishNot measured1253Only Gemma 3 4B measured
Neither model has a result on the other 15 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index5 boards, none shared
Math benchmarks for Devstral 2 2512 and Gemma 3 4B
BenchmarkDevstral 2 2512Gemma 3 4BLeader
AA Math IndexNot measured12.7Only Gemma 3 4B measured
AIME 2025 (Artificial Analysis run)Not measured12.7%Only Gemma 3 4B measured
OTIS Mock AIMENot measured7.5%Only Gemma 3 4B measured
LMArena Text: mathNot measured1239Only Gemma 3 4B measured
LMArena Text: mathematical workNot measured1256Only Gemma 3 4B measured
Neither model has a result on the other 8 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index5 boards, none shared
Knowledge benchmarks for Devstral 2 2512 and Gemma 3 4B
BenchmarkDevstral 2 2512Gemma 3 4BLeader
MMLU Pro (Artificial Analysis run)Not measured41.7%Only Gemma 3 4B measured
LMArena Text: scienceNot measured1306Only Gemma 3 4B measured
LMArena Text: medicine and healthcareNot measured1342Only Gemma 3 4B measured
LMArena Text: legal and governmentNot measured1327Only Gemma 3 4B measured
LMArena Text: business and financeNot measured1311Only Gemma 3 4B measured
Neither model has a result on the other 12 boards here
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Web design benchmarks for Devstral 2 2512 and Gemma 3 4B
BenchmarkDevstral 2 2512Gemma 3 4BLeader
Neither model has a result on 9 boards here
GeneralDirectional onlyPublic boards, shown as published, kept out of the index15 boards, none shared
General benchmarks for Devstral 2 2512 and Gemma 3 4B
BenchmarkDevstral 2 2512Gemma 3 4BLeader
IFBenchNot measured28.3%Only Gemma 3 4B measured
Long context reasoning (AA-LCR)Not measured6.7%Only Gemma 3 4B measured
DTBenchNot measured50.9%Only Gemma 3 4B measured
LMCANot measured2.8%Only Gemma 3 4B measured
LMArena TextNot measured1291Only Gemma 3 4B measured
LMArena Text: instruction followingNot measured1239Only Gemma 3 4B measured
LMArena Text: creative writingNot measured1270Only Gemma 3 4B measured
LMArena Text: EnglishNot measured1300Only Gemma 3 4B measured
LMArena Text: non-EnglishNot measured1273Only Gemma 3 4B measured
LMArena Text: GermanNot measured1281Only Gemma 3 4B measured
LMArena Text: RussianNot measured1294Only Gemma 3 4B measured
LMArena Text: multi-turnNot measured1255Only Gemma 3 4B measured
LMArena Text: longer queriesNot measured1273Only Gemma 3 4B measured
LMArena Text: writing and languageNot measured1288Only Gemma 3 4B measured
LMArena Text: entertainment and mediaNot measured1233Only Gemma 3 4B measured
Neither model has a result on the other 31 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Devstral 2 2512 and Gemma 3 4B
BenchmarkDevstral 2 2512Gemma 3 4BLeader
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

Devstral 2 2512$0.0014Fits in one request
Gemma 3 4B$0.0001Fits in one request

Gemma 3 4B costs less

Repository review

50K input + 3K output tokens

Devstral 2 2512$0.026Fits in one request
Gemma 3 4B$0.0025Fits in one request

Gemma 3 4B costs less

Agent loop

200K input + 10K output tokens

Devstral 2 2512$0.100Fits in one request
Gemma 3 4B$0.0097Exceeds the context window

Gemma 3 4B 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.

Specifications of Devstral 2 2512 and Gemma 3 4B
SpecificationMistral Devstral 2 2512Google Gemma 3 4B
MakerMistral AIGoogle
WeightsOpen weightsOpen weights
ReleasedDecember 9, 2025March 13, 2025
Context window262K131K
Input $/Mtok$0.40$0.045
Output $/Mtok$2.00$0.075
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it10
Cost per solved task$1.19Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Devstral 2 2512 better than Gemma 3 4B for coding?

Neither model has a coding score yet, so the two cannot be ranked on coding. Devstral 2 2512 has the edge where the context window is larger, 262K against 131K tokens.

Which is cheaper, Devstral 2 2512 or Gemma 3 4B?

Devstral 2 2512 costs $0.40 per million input tokens and $2.00 per million output tokens; Gemma 3 4B costs $0.045 and $0.075. Cost per solved task is known for Devstral 2 2512 only.

Which has the bigger context window, Devstral 2 2512 or Gemma 3 4B?

Devstral 2 2512, with 262K tokens against 131K.

How many benchmarks is the Devstral 2 2512 vs Gemma 3 4B comparison based on?

2 benchmarks have a result for both models as of October 21, 2026. Devstral 2 2512's coding index rests on 1 independent benchmark and Gemma 3 4B's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next