Skip to content
llmmodels

Claude Sonnet 5 vs GLM-5.1

Claude Sonnet 5 wins 5 of 6 benchmarks both models report and has a higher Epoch Capabilities Index (156.9 vs 150.7). GLM-5.1 is about 2.5× cheaper on a blended (3:1 input:output) token price. Claude Sonnet 5 has the larger context window (1M vs 200K). GLM-5.1 has open weights, so you can self-host and fine-tune it; Claude Sonnet 5 is API-only.

SpecClaude Sonnet 5GLM-5.1
ProviderAnthropicZhipu AI (Z.ai)
ReleasedJun 29, 2026 (better)Apr 7, 2026
TypeReasoning LLMReasoning LLM
Parameters—754B
Context window1M (better)200K
Max output125K128K (better)
Input price / 1M$2$0.896 (better)
Output price / 1M$10$3.59 (better)
Input modalitiestext, image, pdf, file (better)text
Open weightsNoYes
LicenseProprietarymit
Reasoning modeYesYes
Tool callingYesYes
API providers56 (better)48
Epoch Capabilities Index156.9 (better)150.7
GPQA Diamond90.5% (better)89.9%
SWE-bench Verified—74.2%
WebDev Arena1537 (better)1508
OTIS Mock AIME94.7% (better)93.3%
FrontierMath65.6% (better)36.8%
SimpleQA Verified33.7%34.0% (better)

Cost example

For a workload of 10M input + 2M output tokens per month: Claude Sonnet 5 costs $40.00 and GLM-5.1 costs $16.13 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.1

GLM-5.1 is an open-weight reasoning llm from Zhipu AI (Z.ai), released Apr 7, 2026. It has 754B parameters and a 200K-token context window. API pricing starts at $0.896 per million input tokens and $3.59 per million output tokens. It is available from 48 API providers. It scores 150.7 on the Epoch Capabilities Index. Full GLM-5.1 specs →

Compare other models

FAQ

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

Claude Sonnet 5 wins 5 of 6 benchmarks both models report and has a higher Epoch Capabilities Index (156.9 vs 150.7). GLM-5.1 is about 2.5× cheaper on a blended (3:1 input:output) token price. Claude Sonnet 5 has the larger context window (1M vs 200K). GLM-5.1 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.1?

Claude Sonnet 5 costs $2 input / $10 output per 1M tokens; GLM-5.1 costs $0.896 / $3.59. GLM-5.1 is cheaper overall.

Which has a bigger context window?

Claude Sonnet 5: 1,000,000 tokens. GLM-5.1: 200,000 tokens.

Are Claude Sonnet 5 and GLM-5.1 open source?

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