Skip to content
llmmodels

Claude Sonnet 5 vs GLM-5.2

Claude Sonnet 5 and GLM-5.2 are evenly matched on the 6 benchmarks both report. GLM-5.2 is about 2.1× cheaper on a blended (3:1 input:output) token price. GLM-5.2 has open weights, so you can self-host and fine-tune it; Claude Sonnet 5 is API-only.

SpecClaude Sonnet 5GLM-5.2
ProviderAnthropicZhipu AI (Z.ai)
ReleasedJun 29, 2026 (better)Jun 13, 2026
TypeReasoning LLMReasoning LLM
Parameters—753B
Context window1M1M
Max output125K128K (better)
Input price / 1M$2$1.20 (better)
Output price / 1M$10$4.18 (better)
Input modalitiestext, image, pdf, file (better)text
Open weightsNoYes
LicenseProprietarymit
Reasoning modeYesYes
Tool callingYesYes
API providers5695 (better)
Epoch Capabilities Index156.9 (better)153.1
GPQA Diamond90.5%91.9% (better)
SWE-bench Verified—78.7%
WebDev Arena15371593 (better)
OTIS Mock AIME94.7% (better)86.4%
FrontierMath65.6% (better)59.2%
ARC-AGI-2—22.8%
SimpleQA Verified33.7%34.2% (better)

Cost example

For a workload of 10M input + 2M output tokens per month: Claude Sonnet 5 costs $40.00 and GLM-5.2 costs $20.32 at list price (Anthropic / zhipuai pricing).

About Claude Sonnet 5

Claude Sonnet 5 is a proprietary reasoning llm from Anthropic, released Jun 29, 2026. It has a 1M-token context window and accepts text, image, pdf, file input. API pricing starts at $2 per million input tokens and $10 per million output tokens. It is available from 56 API providers. It scores 156.9 on the Epoch Capabilities Index. Full Claude Sonnet 5 specs →

About GLM-5.2

GLM-5.2 is an open-weight reasoning llm from Zhipu AI (Z.ai), released Jun 13, 2026. It has 753B parameters and a 1M-token context window. API pricing starts at $1.20 per million input tokens and $4.18 per million output tokens. It is available from 95 API providers. It scores 153.1 on the Epoch Capabilities Index. Full GLM-5.2 specs →

Compare other models

FAQ

Which is better, Claude Sonnet 5 or GLM-5.2?

Claude Sonnet 5 and GLM-5.2 are evenly matched on the 6 benchmarks both report. GLM-5.2 is about 2.1× cheaper on a blended (3:1 input:output) token price. GLM-5.2 has open weights, so you can self-host and fine-tune it; Claude Sonnet 5 is API-only.

Is Claude Sonnet 5 cheaper than GLM-5.2?

Claude Sonnet 5 costs $2 input / $10 output per 1M tokens; GLM-5.2 costs $1.20 / $4.18. GLM-5.2 is cheaper overall.

Which has a bigger context window?

Claude Sonnet 5: 1,000,000 tokens. GLM-5.2: 1,000,000 tokens.

Are Claude Sonnet 5 and GLM-5.2 open source?

Claude Sonnet 5 is proprietary; GLM-5.2 is open-weight.