Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Gemma 4 31B vs GPT-5.2

Google · released

Wins 0 of 8 areas

—

OpenAI · released

Wins 7 of 8 areas

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

GPT-5.2 is the stronger all-rounder.Gemma 4 31B is cheaper.

Scores updated · 45 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
GPT-5.2$1.75 to read · $14.00 to write$16Price from Artificial Analysis

Gemma 4 31B costs 96% 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 GPT-5.2 pulls ahead

  • Real work tasks from 44 professionsGDPVal+42.2points aheadGPT-5.248.3Gemma 4 31B6.1
  • Fixes real GitHub issues in Python projectsSWE-bench Verified+28points aheadGPT-5.280Gemma 4 31B52
  • Short factual questions, answered correctlySimpleQA Verified+26.7points aheadGPT-5.237.1Gemma 4 31B10.4

Where Gemma 4 31B pulls ahead

  • Long, multi-file coding tasks in real codebasesSWE-bench Pro+5.8points aheadGemma 4 31B35.7GPT-5.229.9
  • Customer-service tasks in a simulated bankτ-Bench V3 · Banking+3.7points aheadGemma 4 31B14.8GPT-5.211.1

Every test, side by side

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

CodingGPT-5.2

Full coding ranking

AgentsGPT-5.2

Full agents ranking

ReasoningGPT-5.2

Full reasoning ranking

FactsGPT-5.2

Full facts ranking

Images and chartsGPT-5.2

Full images and charts ranking

MathGPT-5.2

Full math ranking

Long documentsGPT-5.2

Full long documents ranking

Following instructionsEven

Full following instructions ranking

Other results19 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 GPT-5.2?

GPT-5.2 wins seven of the eight areas we test: coding, agents, reasoning, facts, images and charts, math and long documents. Gemma 4 31B wins none, but costs 96% less. They are level on following instructions.

Which is better for coding?

GPT-5.2. It wins 5 of the 6 coding tests both models report; Gemma 4 31B wins 1.

Which is cheaper?

Gemma 4 31B costs $0.17 per million input tokens and $0.40 per million output tokens; GPT-5.2 costs $1.75 and $14.00. That makes Gemma 4 31B about 96% cheaper for the same work.

How do you compare the two?

We use the 45 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 19 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.