Gemma 4 31B vs Qwen3.7 Max
Qwen3.7 Max leads Gemma 4 31B on coding, 54.1 to 39.0 on the Vibe Coding Index, and Gemma 4 31B costs 11.1x less per output token ($0.40 vs $4.425 per million). Updated October 22, 2026; 20 benchmarks have a result for both.
Gemma 4 31B or Qwen3.7 Max: which to pick
Pick Qwen3.7 Max for coding: it scores 54.1 on the Vibe Coding Index against 39.0 for Gemma 4 31B.
Pick Gemma 4 31B for output tokens 11.1x cheaper ($0.40 vs $4.425 per million).
- Shared results
- 20
- Gemma 4 31B only
- 51
- Qwen3.7 Max only
- 39
- Like-for-like categories
- 7 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
Qwen3.7 Max
Qwen3.7 Max scores 54.1 against 39.0.
2 and 3 benchmarks behind the scores
Intelligence
AA Intelligence Index
Qwen3.7 Max
Qwen3.7 Max leads, 29.5 against 14.7.
Same board, both measured
Agentic work
AA Agentic Index
Qwen3.7 Max
Qwen3.7 Max leads, 22.5 against 4.2.
Same board, both measured
Reasoning
GPQA Diamond
No call
Only Qwen3.7 Max has a GPQA Diamond result, 90.2%.
Directional only
Knowledge
MMLU Pro
No call
Only Qwen3.7 Max has a MMLU Pro result, 89.3%.
Directional only
Web design
Design Arena: websites
No call
Only Qwen3.7 Max has a Design Arena: websites result, 1274.
Directional only
Long documents
Listed context window
Qwen3.7 Max
Qwen3.7 Max takes 1M tokens against 262K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemma 4 31B
Gemma 4 31B $0.0003, Qwen3.7 Max $0.0037 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only Qwen3.7 Max has the number, $4.69.
Directional only
At a glance
- Coding index
- Gemma 4 31B 39.0 from 2 benchmarks, Qwen3.7 Max 54.1 from 3 benchmarks.
- Widest category
- Knowledge, 45.4 points apart on average over 1 shared benchmark.
- Widest single gap
- SimpleQA Verified: Gemma 4 31B 10.4% against Qwen3.7 Max 55.8%, 45.4 points apart on a 0 to 100 scale.
- Output price
- Gemma 4 31B $0.40 against Qwen3.7 Max $4.425 per million output tokens, 11.1x apart.
- Context window
- Gemma 4 31B takes 262K tokens, Qwen3.7 Max 1M.
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 | Gemma 4 31B | Bars | Qwen3.7 Max | Ties |
|---|---|---|---|---|
| Coding | 0 | 7 | ||
| Intelligence | 0 | 2 | ||
| Agentic work | 0 | 2 | ||
| Reasoning | 0 | 3 | ||
| Math | 0 | 1 | ||
| Knowledge | 0 | 1 | ||
| General | 0 | 4 | ||
| All shared boards | 0 | 20 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index07
| Benchmark | Gemma 4 31B | Qwen3.7 Max | Leader |
|---|---|---|---|
| LiveBench coding | 49.0% | Not measured | Only Gemma 4 31B measured |
| LMArena WebDev | 1367 | 1515 | Qwen3.7 Max |
| AA Coding Index | 43.4 | 66.0 | Qwen3.7 Max |
| LiveCodeBench (Vals AI) | Not measured | 87.1% | Only Qwen3.7 Max measured |
| SWE-bench Verified (Vals AI) | Not measured | 68.8% | Only Qwen3.7 Max measured |
| Vibe Code Bench (Vals AI) | Not measured | 47.7% | Only Qwen3.7 Max measured |
| Code migration (Vals AI) | Not measured | 13.1% | Only Qwen3.7 Max measured |
| Terminal-Bench 2.1 (Vals AI) | Not measured | 61.0% | Only Qwen3.7 Max measured |
| SciCode | 45.5% | 49.5% | Qwen3.7 Max |
| Terminal-Bench Hard (Artificial Analysis run) | 36.4% | 50.8% | Qwen3.7 Max |
| WeirdML | 52.3% | Not measured | Only Gemma 4 31B measured |
| ALE-Bench | 925.5 | 1189.4 | Qwen3.7 Max |
| LMArena Text: coding | 1459 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: software and IT | 1463 | Not measured | Only Gemma 4 31B measured |
| LMArena WebDev: React | 1359 | 1514 | Qwen3.7 Max |
| LMArena WebDev: HTML | 1380 | 1512 | Qwen3.7 Max |
| SciCode | 8.9% | Not measured | Only Gemma 4 31B measured |
| Neither model has a result on the other 22 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | Gemma 4 31B | Qwen3.7 Max | Leader |
|---|---|---|---|
| AA Intelligence Index | 14.7 | 29.5 | Qwen3.7 Max |
| Epoch Capabilities Index | 143.0 | 154.0 | Qwen3.7 Max |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | Gemma 4 31B | Qwen3.7 Max | Leader |
|---|---|---|---|
| AA Agentic Index | 4.2 | 22.5 | Qwen3.7 Max |
| Design Arena: agents building web apps | Not measured | 1208 | Only Qwen3.7 Max measured |
| Design Arena: agents building full-stack apps | Not measured | 1191 | Only Qwen3.7 Max measured |
| Design Arena: agents building mobile apps | Not measured | 1155 | Only Qwen3.7 Max measured |
| Design Arena: agents building Android apps | Not measured | 1159 | Only Qwen3.7 Max measured |
| Design Arena: agents building Godot games | Not measured | 1187 | Only Qwen3.7 Max measured |
| Design Arena: agents building games | Not measured | 1161 | Only Qwen3.7 Max measured |
| Design Arena: HTML slides | Not measured | 1108 | Only Qwen3.7 Max measured |
| Design Arena: PowerPoint slides | Not measured | 1171 | Only Qwen3.7 Max measured |
| LiveBench research | 44.4% | Not measured | Only Gemma 4 31B measured |
| LiveBench browser | 4.0% | Not measured | Only Gemma 4 31B measured |
| LiveBench long agentic | 13.3% | Not measured | Only Gemma 4 31B measured |
| Finance Agent (Vals AI) | Not measured | 47.8% | Only Qwen3.7 Max measured |
| Tax Agent Bench (Vals AI) | Not measured | 15.8% | Only Qwen3.7 Max measured |
| Legal Research Bench (Vals AI) | Not measured | 25.5% | Only Qwen3.7 Max measured |
| Excel Modeling Benchmark (Vals AI) | Not measured | 57.0% | Only Qwen3.7 Max measured |
| τ²-Bench Telecom | 65.5% | 94.7% | Qwen3.7 Max |
| Neither model has a result on the other 24 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index03
| Benchmark | Gemma 4 31B | Qwen3.7 Max | Leader |
|---|---|---|---|
| GPQA Diamond | Not measured | 90.2% | Only Qwen3.7 Max measured |
| LiveBench reasoning | 68.3% | Not measured | Only Gemma 4 31B measured |
| GPQA Diamond (Artificial Analysis run) | 85.7% | 92.3% | Qwen3.7 Max |
| Humanity's Last Exam (Artificial Analysis run) | 23.6% | 40.5% | Qwen3.7 Max |
| GPQA Diamond (Epoch AI run) | 75.8% | 90.9% | Qwen3.7 Max |
| SimpleBench | Not measured | 70.4% | Only Qwen3.7 Max measured |
| Chess puzzles | Not measured | 26.0% | Only Qwen3.7 Max measured |
| Mystery game puzzles | Not measured | 32.0% | Only Qwen3.7 Max measured |
| EBR-bench | Not measured | 9.5% | Only Qwen3.7 Max measured |
| LMArena Text: hard prompts | 1448 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: expert | 1464 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: hard prompts in English | 1456 | Not measured | Only Gemma 4 31B measured |
| LMArena Vision: diagrams | 1283 | Not measured | Only Gemma 4 31B measured |
| LMArena Vision: homework | 1310 | Not measured | Only Gemma 4 31B measured |
| Kagi LLM Benchmark | 63.5% | Not measured | Only Gemma 4 31B measured |
| Neither model has a result on the other 7 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index01
| Benchmark | Gemma 4 31B | Qwen3.7 Max | Leader |
|---|---|---|---|
| OTIS Mock AIME | 73.3% | 95.6% | Qwen3.7 Max |
| FrontierMath, tiers 1 to 3 | Not measured | 64.6% | Only Qwen3.7 Max measured |
| FrontierMath, tier 4 | Not measured | 34.1% | Only Qwen3.7 Max measured |
| ProofBench | Not measured | 26.0% | Only Qwen3.7 Max measured |
| LMArena Text: math | 1463 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: mathematical work | 1465 | Not measured | Only Gemma 4 31B measured |
| Neither model has a result on the other 7 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index01
| Benchmark | Gemma 4 31B | Qwen3.7 Max | Leader |
|---|---|---|---|
| MMLU Pro | Not measured | 89.3% | Only Qwen3.7 Max measured |
| LegalBench (Vals AI) | Not measured | 84.9% | Only Qwen3.7 Max measured |
| CaseLaw (Vals AI) | 52.6% | Not measured | Only Gemma 4 31B measured |
| CorpFin (Vals AI) | Not measured | 63.7% | Only Qwen3.7 Max measured |
| TaxEval (Vals AI) | Not measured | 75.3% | Only Qwen3.7 Max measured |
| MortgageTax (Vals AI) | 61.4% | Not measured | Only Gemma 4 31B measured |
| MedCode (Vals AI) | Not measured | 38.8% | Only Qwen3.7 Max measured |
| SimpleQA Verified | 10.4% | 55.8% | Qwen3.7 Max |
| LMArena Text: science | 1457 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: medicine and healthcare | 1451 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: legal and government | 1438 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: business and finance | 1430 | Not measured | Only Gemma 4 31B measured |
| FACTS Benchmark Suite | 45.3% | Not measured | Only Gemma 4 31B measured |
| Neither model has a result on the other 5 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
| Benchmark | Gemma 4 31B | Qwen3.7 Max | Leader |
|---|---|---|---|
| Design Arena: websites | Not measured | 1274 | Only Qwen3.7 Max measured |
| Design Arena: UI components | Not measured | 1267 | Only Qwen3.7 Max measured |
| Design Arena: game dev | Not measured | 1264 | Only Qwen3.7 Max measured |
| Design Arena: data viz | Not measured | 1275 | Only Qwen3.7 Max measured |
| Design Arena: 3D | Not measured | 1265 | Only Qwen3.7 Max measured |
| Design Arena: all code categories | Not measured | 1275 | Only Qwen3.7 Max measured |
| Design Arena: SVG | Not measured | 1216 | Only Qwen3.7 Max measured |
| Design Arena: ASCII art | Not measured | 1211 | Only Qwen3.7 Max measured |
| LiveBench design | 58.4% | Not measured | Only Gemma 4 31B measured |
GeneralLike-for-likePublic boards, shown as published, kept out of the index04
| Benchmark | Gemma 4 31B | Qwen3.7 Max | Leader |
|---|---|---|---|
| LiveBench data analysis | 53.3% | Not measured | Only Gemma 4 31B measured |
| SAGE (Vals AI) | 55.0% | Not measured | Only Gemma 4 31B measured |
| MedScribe (Vals AI) | Not measured | 79.4% | Only Qwen3.7 Max measured |
| IFBench | 75.6% | 80.5% | Qwen3.7 Max |
| Long context reasoning (AA-LCR) | 69.7% | 79.0% | Qwen3.7 Max |
| DTBench | 82.7% | 92.3% | Qwen3.7 Max |
| LMCA | 39.3% | 44.0% | Qwen3.7 Max |
| Surface Evolver Bench | 30.6% | Not measured | Only Gemma 4 31B measured |
| LMArena Text | 1443 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: instruction following | 1433 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: creative writing | 1417 | Not measured | Only Gemma 4 31B measured |
| LMArena Vision | 1276 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: English | 1451 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: non-English | 1430 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: Chinese | 1475 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: French | 1436 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: Spanish | 1442 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: Russian | 1460 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: Polish | 1433 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: multi-turn | 1452 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: longer queries | 1446 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: writing and language | 1432 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: entertainment and media | 1405 | Not measured | Only Gemma 4 31B measured |
| LMArena Vision: English | 1271 | Not measured | Only Gemma 4 31B measured |
| LMArena Vision: Chinese | 1326 | Not measured | Only Gemma 4 31B measured |
| LMArena Vision: reading text | 1282 | Not measured | Only Gemma 4 31B measured |
| LMArena Vision: humor | 1280 | Not measured | Only Gemma 4 31B measured |
| LMArena Vision: captioning | 1218 | Not measured | Only Gemma 4 31B measured |
| LMArena Vision: recognizing things | 1226 | Not measured | Only Gemma 4 31B measured |
| LMArena Vision: creative writing | 1285 | Not measured | Only Gemma 4 31B measured |
| LMArena Document | 1425 | Not measured | Only Gemma 4 31B measured |
| Neither model has a result on the other 15 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Gemma 4 31B | Qwen3.7 Max | 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 | Google Gemma 4 31B | Qwen3.7 Max |
|---|---|---|
| Maker | Qwen | |
| Weights | Open weights | No public weights listed |
| Released | April 2, 2026 | May 21, 2026 |
| Context window | 262K | 1M |
| Input $/Mtok | $0.14 | $1.475 |
| Output $/Mtok | $0.40 | $4.425 |
| Coding index | 39.0 | 54.1 |
| Independent measurements behind it | 2 | 3 |
| Cost per solved task | Not computable | $4.69 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Gemma 4 31B better than Qwen3.7 Max for coding?
Pick Qwen3.7 Max for coding: it scores 54.1 on the Vibe Coding Index against 39.0 for Gemma 4 31B. Pick Gemma 4 31B for output tokens 11.1x cheaper ($0.40 vs $4.425 per million).
Which is cheaper, Gemma 4 31B or Qwen3.7 Max?
Gemma 4 31B costs $0.14 per million input tokens and $0.40 per million output tokens; Qwen3.7 Max costs $1.475 and $4.425. Cost per solved task is known for Qwen3.7 Max only.
Which has the bigger context window, Gemma 4 31B or Qwen3.7 Max?
Qwen3.7 Max, with 1M tokens against 262K.
How many benchmarks is the Gemma 4 31B vs Qwen3.7 Max comparison based on?
20 benchmarks have a result for both models as of October 22, 2026. Gemma 4 31B's coding index rests on 2 independent benchmarks and Qwen3.7 Max's on 3. Where only one model has a result, the page says so instead of naming a winner.