Spiral gives your agent every tool with one account. Browse the tools →

GLM 5.2 vs Grok 4.20 (Comparative Analysis)

Loading comparison form...
Comparative Analysis: GLM 5.2 vs. Grok 4.20
Want to try out these models side by side?Sign up for Spiral

Overview

Grok 4.20 was released 2 months before GLM 5.2.
GLM 5.2GLM 5.2
Grok 4.20Grok 4.20
Model Provider
The organization behind this AI's development
Z.AI logoZ.AI
XAI logoXAI
Input Context Window
Maximum input tokens this model can process at once
1M
tokens
2M
tokens
Output Token Limit
Maximum output tokens this model can generate at once
943.7K
tokens
1.8M
tokens
Release Date
When this model first became publicly available
June 16th, 2026
March 31st, 2026
Knowledge Cutoff
Latest training-data date reported by the provider
Not reported
September 1, 2025

Capabilities & Features

Compare supported features, modalities, and advanced capabilities
GLM 5.2
Grok 4.20
Input Types
Supported input formats
📝Text
📝Text🖼️Image📁File
Reasoning Controls
Defaults and configurable reasoning effort
Enabled by defaultEffort: Extra High, High, NoneDefault: High
Optional
Output Types
Supported output formats
📝Text
📝Text
Tokenizer
Text encoding system
OtherGrok
Key Features
Advanced capabilities
✓Function Calling✓Structured Output✓Reasoning ModeContent Moderation
✓Function Calling✓Structured Output✓Reasoning ModeContent Moderation
Open Source
Model availability
Available on HuggingFace →Proprietary

Pricing

GLM 5.2 is significantly less expensive compared to Grok 4.20 for input tokens and roughly 2.3x more expensive for output tokens.
GLM 5.2GLM 5.2
Grok 4.20Grok 4.20
Short Context Pricing
Base rates before a long-context threshold applies
Input Token Cost
Cost per million input tokens
$0.0070
per million tokens
$1.25
per million tokens
Output Token Cost
Cost per million output tokens
$5.80
per million tokens
$2.50
per million tokens
Web Search Cost
Additional cost for each web search operation
Not specified
$0.005
per search
Cache Read Cost
Cost to reuse cached input tokens
$0.0060
per million tokens
$0.20
per million tokens
Long Context Pricing
Rates for prompts with 200,000 or more tokens
Input Token Cost
Long-context input cost per million tokens
Not specified
$2.50
per million tokens
Output Token Cost
Long-context output cost per million tokens
Not specified
$5.00
per million tokens
Cache Read Cost
Long-context cache read cost per million tokens
Not specified
$0.40
per million tokens

Benchmarks

Compare relevant benchmarks between GLM 5.2 and Grok 4.20.
GLM 5.2GLM 5.2
Grok 4.20Grok 4.20
Best Design Arena Score
Highest human-preference Elo score across design arenas
1,329 Elo
(#30 in Code Categories (50.4% win rate))
1,269 Elo
(#62 in Website (52.1% win rate))

At a Glance

Quick overview of what makes GLM 5.2 and Grok 4.20 unique.
Z.AI logoGLM 5.2 by Z.AI can use external tools and APIs, offers advanced reasoning, generates structured data. It can handle standard conversations with its 1M token context window. Reasonably priced at $0.0070/M input and $5.80/M output tokens. Released June 16th, 2026.
XAI logoGrok 4.20 by XAI understands both text and images, can use external tools and APIs, offers advanced reasoning, generates structured data. It can handle standard conversations with its 2M token context window. Reasonably priced at $1.25/M input and $2.50/M output tokens. Released March 31st, 2026.

Explore More Comparisons

Compare your models with top performers across different categories