Price Per TokenPrice Per Token
Xai
Xai
vs
Z-ai

Grok 4 vs GLM 4.5

A detailed comparison of pricing, benchmarks, and capabilities

OpenClaw

Best LLMs for OpenClaw Vote for which model works best with OpenClaw

101 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

Grok 4 wins:

  • Larger context window
  • Faster response time
  • Higher intelligence benchmark
  • Better at coding
  • Better at math
  • Supports vision

GLM 4.5 wins:

  • Cheaper input tokens
  • Cheaper output tokens
Price Advantage
GLM 4.5
Benchmark Advantage
Grok 4
Context Window
Grok 4
Speed
Grok 4

Pricing Comparison

Price Comparison

MetricGrok 4GLM 4.5Winner
Input (per 1M tokens)$3.00$0.35 GLM 4.5
Output (per 1M tokens)$15.00$1.55 GLM 4.5
Cache Read (per 1M)$750000.00$175000.00 GLM 4.5
Using a 3:1 input/output ratio, GLM 4.5 is 89% cheaper overall.

Grok 4 Providers

Vercel $3.00 (Cheapest)
xAI $3.00 (Cheapest)

GLM 4.5 Providers

Chutes $0.35 (Cheapest)
WandB $0.55
Z.AI $0.60
Nebius $0.60
Novita $0.60

Benchmark Comparison

8
Benchmarks Compared
0
Grok 4 Wins
0
GLM 4.5 Wins

Benchmark Scores

BenchmarkGrok 4GLM 4.5Winner
Intelligence Index
Overall intelligence score
41.4--
Coding Index
Code generation & understanding
40.5--
Math Index
Mathematical reasoning
92.7--
MMLU Pro
Academic knowledge
86.6--
GPQA
Graduate-level science
87.7--
LiveCodeBench
Competitive programming
81.9--
Aider
Real-world code editing
79.6--
AIME
Competition math
94.3--
Grok 4 significantly outperforms in coding benchmarks.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
Grok 4
Other models

Context & Performance

Context Window

Grok 4
256,000
tokens
GLM 4.5
131,072
tokens
Max output: 65,536 tokens
Grok 4 has a 49% larger context window.

Speed Performance

MetricGrok 4GLM 4.5Winner
Tokens/second40.4 tok/sN/A
Time to First Token9.54sN/A

Capabilities

Feature Comparison

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

License & Release

PropertyGrok 4GLM 4.5
LicenseProprietaryProprietary
AuthorXaiZ-ai
ReleasedJul 2025Jul 2025

Grok 4 Modalities

Input
imagetext
Output
text

GLM 4.5 Modalities

Input
text
Output
text

Related Comparisons

Compare Grok 4 with:

Compare GLM 4.5 with:

Frequently Asked Questions

GLM 4.5 has cheaper input pricing at $0.35/M tokens. GLM 4.5 has cheaper output pricing at $1.55/M tokens.
Grok 4 scores higher on coding benchmarks with a score of 40.5, compared to GLM 4.5's score of N/A.
Grok 4 has a 256,000 token context window, while GLM 4.5 has a 131,072 token context window.
Grok 4 supports vision. GLM 4.5 does not support vision.