Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Claude Opus 4.5 vs Gemma 4 31B

Anthropic · released

Wins 6 of 8 areas

Coding · Agents · Reasoning · Facts · Math · Long documents

Google · released

Wins 1 of 8 areas

Following instructions

Claude Opus 4.5 is the stronger all-rounder.Gemma 4 31B is cheaper and better at following instructions.

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.

Claude Opus 4.5$5.00 to read · $25.00 to write$30Price from Anthropic's own price page
Gemma 4 31B$0.17 to read · $0.40 to write$0.57Price from Artificial Analysis

Gemma 4 31B costs 98% 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 Claude Opus 4.5 pulls ahead

  • Real work tasks from 44 professionsGDPVal+41.2points aheadClaude Opus 4.547.3Gemma 4 31B6.1
  • Short factual questions, answered correctlySimpleQA Verified+35.3points aheadClaude Opus 4.545.7Gemma 4 31B10.4
  • Fixes real GitHub issues in Python projectsSWE-bench Verified+28.9points aheadClaude Opus 4.580.9Gemma 4 31B52

Where Gemma 4 31B pulls ahead

  • Fixes real GitHub issues in many programming languagesSWE-bench Multilingual+44.7points aheadGemma 4 31B51.7Claude Opus 4.57
  • Follows unfamiliar, precisely checkable instructionsIFBench+17.6points aheadGemma 4 31B75.6Claude Opus 4.558

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.

CodingClaude Opus 4.5

Full coding ranking

AgentsClaude Opus 4.5
  • GDPValClaude Opus 4.5 by 41.247.36.1+41.2
  • MCP AtlasClaude Opus 4.5 by 5.162.357.2+5.1

Full agents ranking

ReasoningClaude Opus 4.5

Full reasoning ranking

FactsClaude Opus 4.5

Full facts ranking

Images and chartsEven

Full images and charts ranking

MathClaude Opus 4.5

Full math ranking

Long documentsClaude Opus 4.5
  • AA-LCRClaude Opus 4.5 by 7.677.369.7+7.6

Full long documents ranking

Following instructionsGemma 4 31B
  • IFBenchGemma 4 31B by 17.65875.6+17.6

Full following instructions ranking

Other results26 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, Claude Opus 4.5 or Gemma 4 31B?

Claude Opus 4.5 wins six of the eight areas we test: coding, agents, reasoning, facts, math and long documents. Gemma 4 31B wins following instructions, and costs 98% less. They are level on images and charts.

Which is better for coding?

Claude Opus 4.5. It wins 6 of the 7 coding tests both models report; Gemma 4 31B wins 1.

Which is cheaper?

Claude Opus 4.5 costs $5.00 per million input tokens and $25.00 per million output tokens; Gemma 4 31B costs $0.17 and $0.40. That makes Gemma 4 31B about 98% 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 25 tests in the eight capability areas, and a gap under one point (ten on rating-style scales) counts as a tie. The other 26 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.