Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Gemma 4 31B vs Qwen3.5 397B A17B

Google · released

Wins 1 of 8 areas

Agents

Alibaba · released

Wins 7 of 8 areas

Coding · Reasoning · Facts · Images and charts · Math · Long documents · Following instructions

Qwen3.5 397B A17B is the stronger all-rounder.Gemma 4 31B is cheaper and better at agents.

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

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.

Gemma 4 31B$0.17 to read · $0.40 to write$0.57Price from Artificial Analysis
Qwen3.5 397B A17B$0.60 to read · $3.60 to write$4.20Price from Artificial Analysis

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

The biggest differences

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

Where Qwen3.5 397B A17B pulls ahead

  • Fixes real GitHub issues in Python projectsSWE-bench Verified+24.4points aheadQwen3.5 397B A17B76.4Gemma 4 31B52
  • Fixes real GitHub issues in many programming languagesSWE-bench Multilingual+17.6points aheadQwen3.5 397B A17B69.3Gemma 4 31B51.7
  • Short factual questions, answered correctlySimpleQA Verified+15.6points aheadQwen3.5 397B A17B26Gemma 4 31B10.4

Where Gemma 4 31B pulls ahead

Every test, side by side

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

CodingQwen3.5 397B A17B

Full coding ranking

AgentsGemma 4 31B

Full agents ranking

ReasoningQwen3.5 397B A17B

Full reasoning ranking

FactsQwen3.5 397B A17B

Full facts ranking

Images and chartsQwen3.5 397B A17B
  • MMMUQwen3.5 397B A17B by 4.680.485+4.6
  • MMMU-ProQwen3.5 397B A17B by 3.973.477.3+3.9
  • LMArena · VisionGemma 4 31B by 13 rating points12771264+13 rating

Full images and charts ranking

MathQwen3.5 397B A17B

Full math ranking

Long documentsQwen3.5 397B A17B
  • AA-LCRQwen3.5 397B A17B by 7.669.777.3+7.6

Full long documents ranking

Following instructionsQwen3.5 397B A17B
  • IFBenchQwen3.5 397B A17B by 3.275.678.8+3.2

Full following instructions ranking

Other results25 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, Gemma 4 31B or Qwen3.5 397B A17B?

Qwen3.5 397B A17B wins seven of the eight areas we test: coding, reasoning, facts, images and charts, math, long documents and following instructions. Gemma 4 31B wins agents, and costs 87% less.

Which is better for coding?

Qwen3.5 397B A17B. It wins 7 of the 8 coding tests both models report; Gemma 4 31B wins none, and 1 is a tie.

Which is cheaper?

Gemma 4 31B costs $0.17 per million input tokens and $0.40 per million output tokens; Qwen3.5 397B A17B costs $0.60 and $3.60. That makes Gemma 4 31B about 87% cheaper for the same work.

How do you compare the two?

We use the 51 benchmark tests both models have published scores on. The verdict counts the 26 tests in the eight capability areas, and a gap under one point (ten on rating-style scales) counts as a tie. The other 25 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.