Anthropic: Claude Sonnet 4 vs GLM-4.7
Which is better, Anthropic: Claude Sonnet 4 or GLM-4.7?
GLM-4.7 wins 1 of 1 benchmarks both models report and has a higher Epoch Capabilities Index (143.3 vs 141.8). GLM-4.7 is about 6× cheaper on a blended (3:1 input:output) token price. GLM-4.7 has open weights, so you can self-host and fine-tune it; Anthropic: Claude Sonnet 4 is API-only.
| Spec | Anthropic: Claude Sonnet 4 | GLM-4.7 |
|---|---|---|
| Provider | Anthropic | Zhipu AI (Z.ai) |
| Released | May 22, 2025 | Dec 22, 2025 (better) |
| Type | Reasoning LLM | Reasoning LLM |
| Parameters | — | 358B |
| Context window | 200K | 200K (better) |
| Max output | 64K | 128K (better) |
| Input price / 1M | $2.60 | $0.448 (better) |
| Output price / 1M | $13 | $2.09 (better) |
| Input modalities | text, image (better) | text |
| Open weights | No | Yes |
| License | Proprietary | mit |
| Reasoning mode | Yes | Yes |
| Tool calling | Yes | Yes |
| API providers | 4 | 32 (better) |
| Epoch Capabilities Index | 141.8 | 143.3 (better) |
| GPQA Diamond | — | 83.3% |
| Terminal-Bench | — | 33.4% |
| WebDev Arena | — | 1435 |
| OTIS Mock AIME | — | 83.3% |
| SimpleQA Verified | — | 32.2% |
Cost example
For a workload of 10M input + 2M output tokens per month: Anthropic: Claude Sonnet 4 costs $52.00 and GLM-4.7 costs $8.66 at list price (poe / zhipuai pricing).
About Anthropic: Claude Sonnet 4
Anthropic: Claude Sonnet 4 is a proprietary reasoning llm from Anthropic, released May 22, 2025. It has a 200K-token context window and accepts text, image input. API pricing starts at $2.60 per million input tokens and $13 per million output tokens. It is available from 4 API providers. It scores 141.8 on the Epoch Capabilities Index. Full Anthropic: Claude Sonnet 4 specs →
About GLM-4.7
GLM-4.7 is an open-weight reasoning llm from Zhipu AI (Z.ai), released Dec 22, 2025. It has 358B parameters and a 200K-token context window. API pricing starts at $0.448 per million input tokens and $2.09 per million output tokens. It is available from 32 API providers. It scores 143.3 on the Epoch Capabilities Index. Full GLM-4.7 specs →
Compare other models
More Anthropic: Claude Sonnet 4 comparisons
- Anthropic: Claude Sonnet 4 vs Claude Haiku 4.5 (latest)
- Anthropic: Claude Sonnet 4 vs Qwen3.6 Flash
- Anthropic: Claude Sonnet 4 vs o3
- Anthropic: Claude Sonnet 4 vs Qwen3 Max
- Anthropic: Claude Sonnet 4 vs Mistral Medium 3.5
- Anthropic: Claude Sonnet 4 vs Anthropic: Claude 3.7 Sonnet
- Anthropic: Claude Sonnet 4 vs Anthropic: Claude Opus 4
- Anthropic: Claude Sonnet 4 vs Pixtral Large (25.02)
More GLM-4.7 comparisons
- GLM-4.7 vs Qwen3 235B-A22B
- GLM-4.7 vs Claude Haiku 4.5 (latest)
- GLM-4.7 vs GPT-5 Mini
- GLM-4.7 vs DeepSeek V3.2 Exp
- GLM-4.7 vs o4-mini
- GLM-4.7 vs Kimi K2 Thinking
- GLM-4.7 vs Qwen3 Max
- GLM-4.7 vs Mistral Medium 3.5
- GLM-4.7 vs Anthropic: Claude Opus 4
- GLM-4.7 vs Qwen3 235B A22B Instruct 2507
- GLM-4.7 vs Qwen3-Next 80B-A3B (Thinking)
More from Anthropic and Zhipu AI (Z.ai) · Categories: visual-based llms (vision & multimodal), reasoning & thinking llms, agentic & tool-calling llms, uncensored & abliterated llms
FAQ
Which is better, Anthropic: Claude Sonnet 4 or GLM-4.7?
GLM-4.7 wins 1 of 1 benchmarks both models report and has a higher Epoch Capabilities Index (143.3 vs 141.8). GLM-4.7 is about 6× cheaper on a blended (3:1 input:output) token price. GLM-4.7 has open weights, so you can self-host and fine-tune it; Anthropic: Claude Sonnet 4 is API-only.
Is Anthropic: Claude Sonnet 4 cheaper than GLM-4.7?
Anthropic: Claude Sonnet 4 costs $2.60 input / $13 output per 1M tokens; GLM-4.7 costs $0.448 / $2.09. GLM-4.7 is cheaper overall.
Which has a bigger context window?
Anthropic: Claude Sonnet 4: 200,000 tokens. GLM-4.7: 204,800 tokens.
Are Anthropic: Claude Sonnet 4 and GLM-4.7 open source?
Anthropic: Claude Sonnet 4 is proprietary; GLM-4.7 is open-weight.