Claude Sonnet 5 vs GLM 5.2

API pricing, context window and capabilities for Claude Sonnet 5 and GLM 5.2, side by side. Prices are the cheapest serving route per 1M tokens, verified against LiteLLM and OpenRouter.

Verdict

computed from the published numbers

Claude Sonnet 5 wins on coding and on intelligence. GLM 5.2 wins on price.

Price
GLM 5.2
Coding
Claude Sonnet 5
Intelligence
Claude Sonnet 5
Context window
Tied

Key takeaways

who wins on what, from the published numbers

Claude Sonnet 5 wins

  • Supports vision

GLM 5.2 wins

  • Cheaper input ($2.00 vs $0.61 /1M)
  • Cheaper output ($10.00 vs $1.98 /1M)
  • Higher max output (128K vs 1M)
  • More serving providers (7 vs 10)
Cheaper overall
GLM 5.2
$0.61 + $1.98 /1M
Larger context
Tied
More providers
GLM 5.2
10 providers

Pricing & specs

cheapest serving route · per 1M tokens
Claude Sonnet 5GLM 5.2
Input $/1M$2.00 $0.61 best
Output $/1M$10.00 $1.98 best
Context window1M 1M
Max output128K 1M best
Serving providers7 10 best
Released2026-06-30 2026-06-13

Benchmarks

Artificial Analysis indices, side by side
Claude Sonnet 5GLM 5.2
Intelligence55.3 best52.6
Coding71.5 best68.8
GPQA Diamond91% best89%
Output speed86 t/s best70 t/s
Latency (TTFT)230.25s 1.56s best

Cost calculator

choose a serving route for each side
Input tokens / month
Output tokens / month
Claude Sonnet 5
via Azure
$20
GLM 5.2
via Scx AI
$5.03

Capabilities

feature support, side by side
FeatureClaude Sonnet 5GLM 5.2
Vision
Tool use
Reasoning
Audio
Prompt caching
Structured output
Web search

Related comparisons

Frequently asked questions

Which is cheaper, Claude Sonnet 5 or GLM 5.2?
GLM 5.2 is cheaper for input ($2.00 vs $0.61 per 1M tokens). GLM 5.2 is cheaper for output ($10.00 vs $1.98 per 1M tokens).
What is the context window difference between Claude Sonnet 5 and GLM 5.2?
Both Claude Sonnet 5 and GLM 5.2 have about a 1M-token context window.
How do Claude Sonnet 5 and GLM 5.2 compare on benchmarks?
On the tracked Artificial Analysis indices, Claude Sonnet 5 leads on coding, and Claude Sonnet 5 leads on intelligence.
Pricing verified against LiteLLM + OpenRouter + provider pages · refreshed daily

Every weekday

AI moves fast. Here's your debrief.

News, analysis, tools, and more.

For people who build with AI