Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Claude Sonnet 4 vs GLM-4.7-Flash

Anthropic · released

Wins 4 of 6 areas

Coding · Reasoning · Facts · Long documents

Z.ai · released

Wins 2 of 6 areas

Agents · Following instructions

Claude Sonnet 4 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.

Claude Sonnet 4$3.00 to read · $15.00 to write$18Price from anthropic
GLM-4.7-Flash$0.07 to read · $0.40 to write$0.47Price from Artificial Analysis

GLM-4.7-Flash 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 Claude Sonnet 4 pulls ahead

  • Avoids making up answers it doesn't knowAA-Omniscience · Non-hallucination+64.8points aheadClaude Sonnet 470.9GLM-4.7-Flash6.1
  • Reasons across sets of long documentsAA-LCR+28.6points aheadClaude Sonnet 470.3GLM-4.7-Flash41.7
  • Graduate-level biology, physics and chemistry questionsGPQA Diamond+19.6points aheadClaude Sonnet 477.7GLM-4.7-Flash58.1

Where GLM-4.7-Flash pulls ahead

  • Finds hard-to-locate facts by browsing the webBrowseComp+30.6points aheadGLM-4.7-Flash42.8Claude Sonnet 412.2
  • Recent programming contest problemsLiveCodeBench v6+15.5points aheadGLM-4.7-Flash64Claude Sonnet 448.5
  • Real work tasks from 44 professionsGDPVal+7.2points aheadGLM-4.7-Flash16.9Claude Sonnet 49.7

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.

CodingClaude Sonnet 4

Full coding ranking

AgentsGLM-4.7-Flash
  • BrowseCompGLM-4.7-Flash by 30.612.242.8+30.6
  • GDPValGLM-4.7-Flash by 7.29.716.9+7.2

Full agents ranking

ReasoningClaude Sonnet 4

Full reasoning ranking

FactsClaude Sonnet 4

Full facts ranking

Long documentsClaude Sonnet 4
  • AA-LCRClaude Sonnet 4 by 28.670.341.7+28.6

Full long documents ranking

Following instructionsGLM-4.7-Flash
  • IFBenchGLM-4.7-Flash by 6.154.760.8+6.1

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, Claude Sonnet 4 or GLM-4.7-Flash?

Claude Sonnet 4 wins four of the six areas where both have results: coding, reasoning, facts and long documents. GLM-4.7-Flash wins agents and following instructions, and costs 97% less.

Which is better for coding?

Claude Sonnet 4. It wins 3 of the 4 coding tests both models report; GLM-4.7-Flash wins 1.

Which is cheaper?

Claude Sonnet 4 costs $3.00 per million input tokens and $15.00 per million output tokens; GLM-4.7-Flash costs $0.07 and $0.40. That makes GLM-4.7-Flash about 97% 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.