Claude Sonnet 5 vs GLM-5.2: Specs & Benchmark Comparison

Claude Sonnet 5 is developed by Anthropic, while GLM-5.2 comes from Zhipu AI. Both were released in June 2026. GLM-5.2 has a published size of about 753 billion parameters; Anthropic has not disclosed the parameter count of Claude Sonnet 5.

We have 22 benchmark results for Claude Sonnet 5 and 4 benchmark results for GLM-5.2, but they were measured on different benchmarks, so there is no like-for-like scoreboard.

GLM-5.2 is the cheaper API at $1.40 per million input tokens and $4.40 per million output tokens, about 43% below Claude Sonnet 5 at $2 and $10. Both accept a context window of about 1M tokens. Claude Sonnet 5 accepts text and images as input, while GLM-5.2 accepts text.

CharacteristicClaude Sonnet 5GLM-5.2
CompanyAnthropicZhipu AI
Release DateJune 30, 2026June 16, 2026
Parameters753B
MultimodalYesNo
Context (input)1.0M1.0M
Context (output)64K131K
Input Price / 1M$2.00$1.40
Output Price / 1M$10.00$4.40
Average Score60.5%94.3%

Verdict

GLM-5.2 leads in 2 out of 4 comparison categories.

Overall Performance

Both models show comparable average scores: Claude Sonnet 5 — 0.6, GLM-5.2 — 0.9.

API Cost

GLM-5.2 is 2.1x cheaper: input $1.40/1M vs $2.00/1M tokens.

Context Window

GLM-5.2 supports a larger context: 1M vs 1M tokens.

Recency

Claude Sonnet 5 is newer: released 6/30/2026 vs 6/16/2026.

More About These Models

Related Comparisons

Frequently Asked Questions

Which is better for coding — Claude Sonnet 5 or GLM-5.2?
Direct comparison on the SWE-Bench benchmark is not available. We recommend reviewing other metrics on the comparison page.
Which model is cheaper — Claude Sonnet 5 or GLM-5.2?
GLM-5.2 is cheaper for input: $1.40 per 1M tokens vs $2.00.
Which has a larger context window — Claude Sonnet 5 or GLM-5.2?
GLM-5.2 supports a larger context: 1,048,576 tokens vs 1,000,000.

The Claude Sonnet 5 and GLM-5.2 comparison is updated for 2026. Data includes benchmark results, API pricing, context window size and other specifications. For more detailed information, visit the Claude Sonnet 5 or GLM-5.2 page. See also the complete list of AI model comparisons.