Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Gemma 4 31B vs GLM-4.7-Flash

Google · released

Wins 5 of 6 areas

Coding · Reasoning · Facts · Long documents · Following instructions

Z.ai · released

Wins 1 of 6 areas

Agents

Gemma 4 31B is the stronger all-rounder.GLM-4.7-Flash is cheaper and better at agents.

Scores updated · 24 tests both models report · How we compare

Where each one wins

Tests won in each of the six areas where both have results. Each piece is one test, so a longer bar means more evidence; grey means the two scored within a point of each other.

Long documents and following instructions rest on a single test each.

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.15 to read · $0.40 to write$0.55Price from Artificial Analysis
GLM-4.7-Flash$0.07 to read · $0.40 to write$0.47Price from Artificial Analysis

GLM-4.7-Flash costs 15% less for the same work.

The biggest differences

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

Where Gemma 4 31B pulls ahead

  • Reasons across sets of long documentsAA-LCR+28points aheadGemma 4 31B69.7GLM-4.7-Flash41.7
  • Graduate-level biology, physics and chemistry questionsGPQA Diamond+27.6points aheadGemma 4 31B85.7GLM-4.7-Flash58.1
  • Recent programming contest problemsLiveCodeBench v6+16points aheadGemma 4 31B80GLM-4.7-Flash64

Where GLM-4.7-Flash pulls ahead

  • Fixes real GitHub issues in Python projectsSWE-bench Verified+13.1points aheadGLM-4.7-Flash59.2Gemma 4 31B46.1
  • Real work tasks from 44 professionsGDPVal+10.9points aheadGLM-4.7-Flash16.9Gemma 4 31B6
  • Finds hard-to-locate facts by browsing the webBrowseComp+5.8points aheadGLM-4.7-Flash42.8Gemma 4 31B37

Every test, side by side

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

CodingGemma 4 31B

Full coding ranking

AgentsGLM-4.7-Flash

Full agents ranking

ReasoningGemma 4 31B

Full reasoning ranking

FactsGemma 4 31B

Full facts ranking

Long documentsGemma 4 31B
  • AA-LCRGemma 4 31B by 2869.741.7+28

Full long documents ranking

Following instructionsGemma 4 31B
  • IFBenchGemma 4 31B by 14.875.660.8+14.8

Full following instructions ranking

Other results10 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-4.7-Flash?

Gemma 4 31B wins five of the six areas where both have results: coding, reasoning, facts, long documents and following instructions. GLM-4.7-Flash wins agents, and costs 15% less.

Which is better for coding?

Gemma 4 31B. It wins 3 of the 4 coding tests both models report; GLM-4.7-Flash wins 1.

Which is cheaper?

Gemma 4 31B costs $0.15 per million input tokens and $0.40 per million output tokens; GLM-4.7-Flash costs $0.07 and $0.40. That makes GLM-4.7-Flash about 15% cheaper for the same work.

How do you compare the two?

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