Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Claude Opus 4.7 vs Gemma 4 31B

Anthropic · released

Wins 6 of 8 areas

Coding · Agents · Reasoning · Facts · Images and charts · Math

Google · released

Wins 1 of 8 areas

Following instructions

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

Scores updated · 40 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.7$5.00 to read · $25.00 to write$30Price from Artificial Analysis
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.7 pulls ahead

Where Gemma 4 31B pulls ahead

  • Follows unfamiliar, precisely checkable instructionsIFBench+17points aheadGemma 4 31B75.6Claude Opus 4.758.6
  • Finds one of eight look-alike replies in a long chatMRCR v2 8 needle 128k (average)+7.1points aheadGemma 4 31B66.4Claude Opus 4.759.3

Every test, side by side

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

CodingClaude Opus 4.7

Full coding ranking

AgentsClaude Opus 4.7

Full agents ranking

ReasoningClaude Opus 4.7

Full reasoning ranking

FactsClaude Opus 4.7

Full facts ranking

Images and chartsClaude Opus 4.7

Full images and charts ranking

MathClaude Opus 4.7

Full math ranking

Long documentsEven

Full long documents ranking

Following instructionsGemma 4 31B
  • IFBenchGemma 4 31B by 1758.675.6+17

Full following instructions ranking

Other results13 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.7 or Gemma 4 31B?

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

Which is better for coding?

Claude Opus 4.7. It wins 7 of the 7 coding tests both models report; Gemma 4 31B wins none.

Which is cheaper?

Claude Opus 4.7 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 40 benchmark tests both models have published scores on. The verdict counts the 27 tests in the eight capability areas, and a gap under one point (ten on rating-style scales) counts as a tie. The other 13 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.