Z.aivsxAI·Updated Nov 2026
GLM 5 Code logovsGrok 4.20 logo

GLM 5 Code vs Grok 4.20

Side-by-side pricing tables, surcharge math, capability benchmarks, and 30-day spend estimators across 411 live models and cloud GPU matchups.

Switch Comparison Matchup411 · Updated Nov 2026
Cheaper Input
GLM 5 Code logoGLM 5 Code-4.0%

$1.20 vs $1.25 / 1M

Cheaper Output
Grok 4.20 logoGrok 4.20-50%

$2.50 vs $5.00 / 1M

AA Intelligence / AA Engineering
Reasoning

—

Context Window
Grok 4.20 logoGrok 4.2010×

2M vs 200K tokens

Capability Benchmarks & Third-Party Evaluations

Compare Artificial Analysis intelligence and engineering indexes, core capability matrices, and standardized external leaderboards.

AA Intelligence · Engineering · Arena · SWE-bench
Artificial Analysis Benchmarks
AA Intelligence
GLM 5 Code logoGLM 5 CodePending
Grok 4.20 logoGrok 4.20Pending
AA Engineering
GLM 5 Code logoGLM 5 CodePending
Grok 4.20 logoGrok 4.20Pending
Core Capability Profile
MetricGLM 5 CodeGrok 4.20
ReasoningYesYes
Input Modalitiestexttext, image, file
Tools & JSONToolsTools · JSON
Prompt Caching$0.30/1M$0.20/1M
Open-WeightOpenProprietary

Side-by-side specification matrix

USD ·
MetricGLM 5 Code logoGLM 5 CodeGrok 4.20 logoGrok 4.20Compare
Input / 1M$1.20$1.25GLM 5 Code -4.0%
Output / 1M$5.00$2.50Grok 4.20 -50%
5m Cache Write / 1M$0.00$1.25GLM 5 Code -100%
1h Cache Write / 1M———
Cache Read$0.30$0.20Grok 4.20 -33%
Web Search / Call—$0.005—
Context200K (200,000)2M (2,000,000)Grok 4.20 10×
Max Output128K (128,000)1.8M (1,800,000)Grok 4.20 14×
AA Intelligence(Artificial Analysis)———
AA Engineering———
Capabilitiestexttext, image, fileGrok 4.20
ReasoningSupportedSupportedEqual
Structured Outputs(JSON Schema)Not listedSupportedGrok 4.20
Open-WeightOpen-WeightProprietary APIGLM 5 Code

30-day production cost estimator

Adjust daily volume, prompt length, and cache hit rate to model 30-day API spend.

LLM API Monthly Cost Calculator
2,000
2,500
500
50%
0
60,000 · 150.0M · 30.0M
Est. 30-Day Spend
Estimated monthly savings with Grok 4.20 $78.75/mo ($945.00)
-30%
GLM 5 Code logoGLM 5 Code
$262.50/mo
In: $90.00
Cache: $22.50
Out: $150.00
Search: N/A
Grok 4.20 logoGrok 4.20Best Value
$183.75/mo
In: $93.75
Cache: $15.00
Out: $75.00
Search: $0.00

Frequently Asked Questions

Is GLM 5 Code or Grok 4.20 cheaper per API token?

GLM 5 Code is 4.0% cheaper on input tokens ($1.20 vs $1.25 per 1M). For output tokens, Grok 4.20 costs 50% less ($2.50 vs $5.00 per 1M).

How do GLM 5 Code and Grok 4.20 prompt caching discounts compare?

Grok 4.20 offers 33% cheaper cache reads at $0.20/1M compared to $0.30/1M for GLM 5 Code. GLM 5 Code 5m write: $0.00/1M; Grok 4.20 5m write: $1.25/1M.

Which model has a larger context window: GLM 5 Code or Grok 4.20?

Grok 4.20 provides a 10× larger context window (2M vs 200K tokens). For single-turn output generation, GLM 5 Code caps at 128K tokens and Grok 4.20 caps at 1.8M tokens.

How do GLM 5 Code and Grok 4.20 compare on benchmarks and capabilities?

Grok 4.20 adds native vision/image input support, and GLM 5 Code releases open weights for self-hosting or dedicated inference.

Related Head-to-Head Matchups

Comparisons