Price Per TokenPrice Per Token
Anthropic
Anthropic
vs
Z-ai

Claude Sonnet 4 vs GLM 4.5

A detailed comparison of pricing, benchmarks, and capabilities

OpenClaw

Deploy OpenClaw in Under 1 Minute We handle hosting, scaling, and maintenance

114 out of our 303 tracked models have had a price change in February.

Get our weekly newsletter on pricing changes, new releases, and tools.

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

MetricClaude Sonnet 4GLM 4.5Winner
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.30N/A Claude Sonnet 4
Cache Write (per 1M)$3.75N/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

BenchmarkClaude Sonnet 4GLM 4.5Winner
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

MetricClaude Sonnet 4GLM 4.5Winner
Tokens/second69.8 tok/sN/A
Time to First Token1.17sN/A

Capabilities

Feature Comparison

FeatureClaude Sonnet 4GLM 4.5
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyClaude Sonnet 4GLM 4.5
LicenseProprietaryProprietary
AuthorAnthropicZ-ai
ReleasedMay 2025Jul 2025

Claude Sonnet 4 Modalities

Input
imagetextfile
Output
text

GLM 4.5 Modalities

Input
text
Output
text

Related Comparisons

Compare Claude Sonnet 4 with:

Compare GLM 4.5 with:

Frequently Asked Questions

GLM 4.5 has cheaper input pricing at $0.55/M tokens. GLM 4.5 has cheaper output pricing at $2.00/M tokens.
Claude Sonnet 4 scores higher on coding benchmarks with a score of 30.6, compared to GLM 4.5's score of N/A.
Claude Sonnet 4 has a 1,000,000 token context window, while GLM 4.5 has a 131,000 token context window.
Claude Sonnet 4 supports vision. GLM 4.5 does not support vision.