Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Devstral 2 vs Gemma 4 31B

Mistral · released

Wins 0 of 6 areas

—

Google · released

Wins 5 of 6 areas

Coding · Agents · Reasoning · Long documents · Following instructions

Gemma 4 31B is the stronger all-rounder.

Scores updated · 22 tests both models report · How we compare

Where each one wins

Tests won in each of the six areas where both have results. Each piece is one test, so a longer bar means more evidence; grey means the two scored within a point of each other.

Long documents and following instructions rest on a single test each.

What it costs

Prices per million tokens, roughly 750,000 words. The bars show the cost of a million tokens read plus a million written.

Devstral 2$0.40 to read · $2.00 to write$2.40Price from mistralai
Gemma 4 31B$0.17 to read · $0.40 to write$0.57Price from Artificial Analysis

Gemma 4 31B costs 76% less for the same work.

The biggest differences

The tests each model wins by the widest margin, up to three each. Scores are out of 100.

Where Gemma 4 31B pulls ahead

  • Follows unfamiliar, precisely checkable instructionsIFBench+37.5points aheadGemma 4 31B75.6Devstral 238.1
  • Reasons across sets of long documentsAA-LCR+37.4points aheadGemma 4 31B69.7Devstral 232.3
  • Graduate-level biology, physics and chemistry questionsGPQA Diamond+26.3points aheadGemma 4 31B85.7Devstral 259.4

Where Devstral 2 pulls ahead

  • Fixes real GitHub issues in many programming languagesSWE-bench Multilingual+9.6points aheadDevstral 261.3Gemma 4 31B51.7
  • Fixes real GitHub issues in Python projectsSWE-bench Verified+1.8points aheadDevstral 253.8Gemma 4 31B52

Every test, side by side

All 22 tests both models report. The winning score is in its model's colour; marks a score checked independently.

CodingGemma 4 31B

Full coding ranking

AgentsGemma 4 31B

Full agents ranking

ReasoningGemma 4 31B

Full reasoning ranking

FactsEven

Full facts ranking

Long documentsGemma 4 31B
  • AA-LCRGemma 4 31B by 37.432.369.7+37.4

Full long documents ranking

Following instructionsGemma 4 31B
  • IFBenchGemma 4 31B by 37.538.175.6+37.5

Full following instructions ranking

Other results6 tests, not counted

Tests outside the eight areas. They are not counted above: several are summary scores built from other tests, or the same test under another name.

Questions people ask

Which is better, Devstral 2 or Gemma 4 31B?

Gemma 4 31B wins five of the six areas where both have results: coding, agents, reasoning, long documents and following instructions. Devstral 2 wins none. They are level on facts.

Which is better for coding?

Gemma 4 31B. It wins 4 of the 6 coding tests both models report; Devstral 2 wins 2.

Which is cheaper?

Devstral 2 costs $0.40 per million input tokens and $2.00 per million output tokens; Gemma 4 31B costs $0.17 and $0.40. That makes Gemma 4 31B about 76% cheaper for the same work.

How do you compare the two?

We use the 22 benchmark tests both models have published scores on. The verdict counts the 16 tests in the eight capability areas, and a gap under one point (ten on rating-style scales) counts as a tie. The other 6 are listed but not counted, because several are summary scores or repeat a test. Each score is the one shown on the model's own page.