token.app โ€บ Compare โ€บ Claude Sonnet 4 vs GLM 5.2

Claude Sonnet 4 vs GLM 5.2

GLM 5.2 leads on 2 of 2 shared benchmarks. GLM 5.2 is 16ร— cheaper per token on a blended 3:1 basis. GLM 5.2 accepts the larger context window (1.0M).

Head to head
Blended price uses a 3:1 input:output mix
Claude Sonnet 4GLM 5.2
ProviderAnthropicZhipu AI
Input $/1M$3.00$0.252
Output $/1M$15.00$0.792
Blended $/1M$6.00$0.387
Context window1M1.0M
Max output64K128K
ReleasedMay 2025Jun 2026
LicenceProprietaryOpen weights
GPQA Diamond 79.2% 91.9%
OTIS Mock AIME 71.1% 86.4%
Benchmark scores independently run and published by Epoch AI, 'AI Benchmarking Hub', used under CC BY 4.0. Only benchmarks with a score for BOTH models are compared.
Choose Claude Sonnet 4 ifโ€ฆ
  • No clear advantage on the data we hold.
Choose GLM 5.2 ifโ€ฆ
  • Costs less per token โ€” $0.387 vs $6.00 blended
  • Higher GPQA Diamond (91.9% vs 79.2%)
  • Higher OTIS Mock AIME (86.4% vs 71.1%)
  • Larger context window (1.0M)
  • Open weights โ€” self-hostable
  • Newer model (released Jun 2026)
FAQ
Which is better, Claude Sonnet 4 or GLM 5.2?
Across the 2 benchmarks both models have independently-run scores for, Claude Sonnet 4 leads on 0 and GLM 5.2 leads on 2. Benchmarks are one input โ€” price and context window are on this page too.
Is Claude Sonnet 4 cheaper than GLM 5.2?
GLM 5.2 is cheaper: $0.387 versus $6.00 per million tokens blended at 3:1 input:output. Input alone: $3.00 vs $0.252. Output alone: $15.00 vs $0.792.
What context windows do Claude Sonnet 4 and GLM 5.2 have?
Claude Sonnet 4: 1,000,000 tokens. GLM 5.2: 1,048,576 tokens.
Who makes Claude Sonnet 4 and GLM 5.2?
Claude Sonnet 4 is made by Anthropic. GLM 5.2 is made by Zhipu AI.
Related comparisons