Skip to content
VECTOR WIREAI INTELLIGENCE
UTC

Claude Sonnet 5 vs GLM-5.2

Anthropic · released

Wins 6 of 7 areas

Coding · Agents · Reasoning · Math · Long documents · Following instructions

Z.ai · released

Wins 0 of 7 areas

—

Claude Sonnet 5 is the stronger all-rounder.GLM-5.2 is cheaper.

Scores updated · 37 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.

Claude Sonnet 5$2.00 to read · $10.00 to write$12Price from Anthropic's own price page
GLM-5.2$1.40 to read · $4.40 to write$5.80Price from Z.ai's own price page

GLM-5.2 costs 52% 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 Claude Sonnet 5 pulls ahead

  • Answers hard knowledge questions correctlyAA-Omniscience · Accuracy+15.8points aheadClaude Sonnet 540GLM-5.224.3
  • Complex command-line tasks across many fieldsTerminal-Bench 4.0+13.1points aheadClaude Sonnet 514.1GLM-5.21
  • Fresh logic puzzles that change regularlyLiveBench · Reasoning+10.1points aheadClaude Sonnet 588.7GLM-5.278.6

Where GLM-5.2 pulls ahead

Every test, side by side

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

CodingClaude Sonnet 5

Full coding ranking

AgentsClaude Sonnet 5
  • Terminal-Bench 4.0Claude Sonnet 5 by 13.114.11+13.1
  • GDPValClaude Sonnet 5 by 4.648.343.7+4.6
  • τ-Bench V3 · BankingClaude Sonnet 5 by 2.737.334.6+2.7

Full agents ranking

ReasoningClaude Sonnet 5

Full reasoning ranking

FactsEven

Full facts ranking

MathClaude Sonnet 5

Full math ranking

Long documentsClaude Sonnet 5
  • AA-LCRClaude Sonnet 5 by 3.78278.3+3.7

Full long documents ranking

Following instructionsClaude Sonnet 5

Full following instructions ranking

Other results15 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 5 or GLM-5.2?

Claude Sonnet 5 wins six of the seven areas where both have results: coding, agents, reasoning, math, long documents and following instructions. GLM-5.2 wins none, but costs 52% less. They are level on facts.

Which is better for coding?

Claude Sonnet 5. It wins 5 of the 6 coding tests both models report; GLM-5.2 wins 1.

Which is cheaper?

Claude Sonnet 5 costs $2.00 per million input tokens and $10.00 per million output tokens; GLM-5.2 costs $1.40 and $4.40. That makes GLM-5.2 about 52% cheaper for the same work.

How do you compare the two?

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