Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Gemma 4 31B vs GLM-5.2

Google · released

Wins 1 of 7 areas

Following instructions

Z.ai · released

Wins 6 of 7 areas

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

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

Scores updated · 30 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
GLM-5.2$1.40 to read · $4.40 to write$5.80Price from Z.ai's own price page

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

  • Avoids making up answers it doesn't knowAA-Omniscience · Non-hallucination+58.7points aheadGLM-5.273.7Gemma 4 31B15
  • Real work tasks from 44 professionsGDPVal+37.6points aheadGLM-5.243.7Gemma 4 31B6.1
  • Command-line tasks in a real terminalTerminal-Bench 2.1+34.5points aheadGLM-5.277.9Gemma 4 31B43.4

Where Gemma 4 31B pulls ahead

  • Follows unfamiliar, precisely checkable instructionsIFBench+2.3points aheadGemma 4 31B75.6GLM-5.273.3

Every test, side by side

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

CodingGLM-5.2

Full coding ranking

AgentsGLM-5.2

Full agents ranking

ReasoningGLM-5.2

Full reasoning ranking

FactsGLM-5.2

Full facts ranking

MathGLM-5.2

Full math ranking

Long documentsGLM-5.2
  • AA-LCRGLM-5.2 by 8.669.778.3+8.6

Full long documents ranking

Following instructionsGemma 4 31B
  • IFBenchGemma 4 31B by 2.375.673.3+2.3

Full following instructions ranking

Other results9 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 GLM-5.2?

GLM-5.2 wins six of the seven areas where both have results: coding, agents, reasoning, facts, math and long documents. Gemma 4 31B wins following instructions, and costs 90% less.

Which is better for coding?

GLM-5.2. It wins 5 of the 5 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; GLM-5.2 costs $1.40 and $4.40. That makes Gemma 4 31B about 90% cheaper for the same work.

How do you compare the two?

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