Key Takeaways
Claude Sonnet 4 wins:
- Larger context window
- Faster response time
- Higher intelligence benchmark
- Better at coding
- Better at math
- Supports vision
- Has reasoning mode
GLM 4.5 wins:
- Cheaper input tokens
- Cheaper output tokens
Price Advantage
GLM 4.5
Benchmark Advantage
Claude Sonnet 4
Context Window
Claude Sonnet 4
Speed
Claude Sonnet 4
Pricing Comparison
Price Comparison
| Metric | Claude Sonnet 4 | GLM 4.5 | Winner |
|---|---|---|---|
| Input (per 1M tokens) | $3.00 | $0.55 | GLM 4.5 |
| Output (per 1M tokens) | $15.00 | $2.00 | GLM 4.5 |
| Cache Read (per 1M) | $0.30 | N/A | Claude Sonnet 4 |
| Cache Write (per 1M) | $3.75 | N/A | Claude Sonnet 4 |
Using a 3:1 input/output ratio, GLM 4.5 is 85% cheaper overall.
Claude Sonnet 4 Providers
Amazon Bedrock $3.00 (Cheapest)
Google $3.00 (Cheapest)
Anthropic $3.00 (Cheapest)
GLM 4.5 Providers
WandB $0.55 (Cheapest)
Z.AI $0.60
Nebius $0.60
Novita $0.60
Benchmark Comparison
8
Benchmarks Compared
0
Claude Sonnet 4 Wins
0
GLM 4.5 Wins
Benchmark Scores
| Benchmark | Claude Sonnet 4 | GLM 4.5 | Winner |
|---|---|---|---|
Intelligence Index Overall intelligence score | 33.0 | - | - |
Coding Index Code generation & understanding | 30.6 | - | - |
Math Index Mathematical reasoning | 38.0 | - | - |
MMLU Pro Academic knowledge | 83.7 | - | - |
GPQA Graduate-level science | 68.3 | - | - |
LiveCodeBench Competitive programming | 44.9 | - | - |
Aider Real-world code editing | 61.3 | - | - |
AIME Competition math | 40.7 | - | - |
Claude Sonnet 4 significantly outperforms in coding benchmarks.
Cost vs Quality
X-axis:
Y-axis:
Loading chart...
Claude Sonnet 4
Other models
Context & Performance
Context Window
Claude Sonnet 4
1,000,000
tokens
Max output: 64,000 tokens
GLM 4.5
131,000
tokens
Max output: 131,000 tokens
Claude Sonnet 4 has a 87% larger context window.
Speed Performance
| Metric | Claude Sonnet 4 | GLM 4.5 | Winner |
|---|---|---|---|
| Tokens/second | 69.8 tok/s | N/A | |
| Time to First Token | 1.17s | N/A |
Capabilities
Feature Comparison
| Feature | Claude Sonnet 4 | GLM 4.5 |
|---|---|---|
| Vision (Image Input) | ||
| Tool/Function Calls | ||
| Reasoning Mode | ||
| Audio Input | ||
| Audio Output | ||
| PDF Input | ||
| Prompt Caching | ||
| Web Search |
License & Release
| Property | Claude Sonnet 4 | GLM 4.5 |
|---|---|---|
| License | Proprietary | Proprietary |
| Author | Anthropic | Z-ai |
| Released | May 2025 | Jul 2025 |
Claude Sonnet 4 Modalities
Input
imagetextfile
Output
text
GLM 4.5 Modalities
Input
text
Output
text
