Price Per TokenPrice Per Token
Xai
Xai
vs
Z-ai

Grok 4 vs GLM 5

A detailed comparison of pricing, benchmarks, and capabilities

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

Join the Price Per Token Community

Key Takeaways

Grok 4 wins:

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

GLM 5 wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Faster response time
Price Advantage
GLM 5
Benchmark Advantage
Grok 4
Context Window
Grok 4
Speed
GLM 5

Pricing Comparison

Benchmark Comparison

Context & Performance

Capabilities

Feature Comparison

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

License & Release

PropertyGrok 4GLM 5
LicenseProprietaryOpen Source
AuthorXaiZ-ai
ReleasedJul 2025Feb 2026

Grok 4 Modalities

Input
imagetext
Output
text

GLM 5 Modalities

Input
text
Output
text

Frequently Asked Questions

GLM 5 has cheaper input pricing at $0.72/M tokens. GLM 5 has cheaper output pricing at $2.30/M tokens.
Grok 4 scores higher on coding benchmarks with a score of 40.5, compared to GLM 5's score of 39.0.
Grok 4 has a 256,000 token context window, while GLM 5 has a 202,752 token context window.
Grok 4 supports vision. GLM 5 does not support vision.