Claude Sonnet 5 vs GLM-5
Claude Sonnet 5 wins 4 of 4 benchmarks both models report and has a higher Epoch Capabilities Index (156.9 vs 146.5). GLM-5 is about 4× cheaper on a blended (3:1 input:output) token price. Claude Sonnet 5 has the larger context window (1M vs 200K). GLM-5 has open weights, so you can self-host and fine-tune it; Claude Sonnet 5 is API-only.
| Spec | Claude Sonnet 5 | GLM-5 |
|---|---|---|
| Provider | Anthropic | Zhipu AI (Z.ai) |
| Released | Jun 29, 2026 (better) | Feb 12, 2026 |
| Type | Reasoning LLM | Reasoning LLM |
| Parameters | — | 754B |
| Context window | 1M (better) | 200K |
| Max output | 125K | 128K (better) |
| Input price / 1M | $2 | $0.598 (better) |
| Output price / 1M | $10 | $2.69 (better) |
| Input modalities | text, image, pdf, file (better) | text |
| Open weights | No | Yes |
| License | Proprietary | mit |
| Reasoning mode | Yes | Yes |
| Tool calling | Yes | Yes |
| API providers | 56 (better) | 41 |
| Epoch Capabilities Index | 156.9 (better) | 146.5 |
| GPQA Diamond | 90.5% (better) | 87.8% |
| SWE-bench Verified | — | 72.1% |
| Terminal-Bench | — | 52.4% |
| WebDev Arena | 1537 (better) | 1436 |
| OTIS Mock AIME | 94.7% (better) | 80.0% |
| FrontierMath | 65.6% | — |
| ARC-AGI-2 | — | 4.9% |
| SimpleQA Verified | 33.7% | — |
Cost example
For a workload of 10M input + 2M output tokens per month: Claude Sonnet 5 costs $40.00 and GLM-5 costs $11.35 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
GLM-5 is an open-weight reasoning llm from Zhipu AI (Z.ai), released Feb 12, 2026. It has 754B parameters and a 200K-token context window. API pricing starts at $0.598 per million input tokens and $2.69 per million output tokens. It is available from 41 API providers. It scores 146.5 on the Epoch Capabilities Index. Full GLM-5 specs →
Compare other models
FAQ
Which is better, Claude Sonnet 5 or GLM-5?
Claude Sonnet 5 wins 4 of 4 benchmarks both models report and has a higher Epoch Capabilities Index (156.9 vs 146.5). GLM-5 is about 4× cheaper on a blended (3:1 input:output) token price. Claude Sonnet 5 has the larger context window (1M vs 200K). GLM-5 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?
Claude Sonnet 5 costs $2 input / $10 output per 1M tokens; GLM-5 costs $0.598 / $2.69. GLM-5 is cheaper overall.
Which has a bigger context window?
Claude Sonnet 5: 1,000,000 tokens. GLM-5: 204,800 tokens.
Are Claude Sonnet 5 and GLM-5 open source?
Claude Sonnet 5 is proprietary; GLM-5 is open-weight.