Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Gemma 4 31B vs GPT-5.4

Google · released

Wins 1 of 8 areas

Following instructions

OpenAI · released

Wins 7 of 8 areas

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

GPT-5.4 is the stronger all-rounder.Gemma 4 31B is cheaper and better at following instructions.

Scores updated · 43 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.4$2.50 to read · $15.00 to write$18Price from Artificial Analysis

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

The biggest differences

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

Where GPT-5.4 pulls ahead

  • Command-line tasks in a real terminalTerminal-Bench 2.1+34.9points aheadGPT-5.478.3Gemma 4 31B43.4
  • Short factual questions, answered correctlySimpleQA Verified+34.7points aheadGPT-5.445.1Gemma 4 31B10.4
  • Real work tasks from 44 professionsGDPVal+31.3points aheadGPT-5.437.4Gemma 4 31B6.1

Where Gemma 4 31B pulls ahead

  • Avoids making up answers it doesn't knowAA-Omniscience · Non-hallucination+6.7points aheadGemma 4 31B15GPT-5.48.3
  • Finds the root cause of IT system incidentsAA IT-Bench SRE+2.8points aheadGemma 4 31B37.3GPT-5.434.5
  • Follows unfamiliar, precisely checkable instructionsIFBench+1.7points aheadGemma 4 31B75.6GPT-5.473.9

Every test, side by side

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

CodingGPT-5.4

Full coding ranking

AgentsGPT-5.4

Full agents ranking

ReasoningGPT-5.4

Full reasoning ranking

FactsGPT-5.4

Full facts ranking

Images and chartsGPT-5.4

Full images and charts ranking

MathGPT-5.4

Full math ranking

Long documentsGPT-5.4
  • AA-LCRGPT-5.4 by 12.369.782+12.3

Full long documents ranking

Following instructionsGemma 4 31B
  • IFBenchGemma 4 31B by 1.775.673.9+1.7

Full following instructions ranking

Other results18 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.4?

GPT-5.4 wins seven of the eight areas we test: coding, agents, reasoning, facts, images and charts, math and long documents. Gemma 4 31B wins following instructions, and costs 97% less.

Which is better for coding?

GPT-5.4. It wins 6 of the 6 coding tests both models report; Gemma 4 31B wins none.

Which is cheaper?

Gemma 4 31B costs $0.17 per million input tokens and $0.40 per million output tokens; GPT-5.4 costs $2.50 and $15.00. That makes Gemma 4 31B about 97% cheaper for the same work.

How do you compare the two?

We use the 43 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 18 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.