Enter opens the highlighted result. Esc closes.

GLM 5 vs Grok 4.20

Updated October 21, 2026. 38 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

GLM 5Z.ai
Coding
41.7
Overall
27.9
Output $/M
$3.20
17
Grok 4.20xAI
Coding
33.3
Overall
25.7
Output $/M
$2.50
21
vs boards won of 38 shared

Decision reading

Pick GLM 5 for coding: it scores 41.7 on the Vibe Coding Index against 33.3 for Grok 4.20.

Pick Grok 4.20 when output tokens cost 1.3x less, or when the context window is larger, 2M against 205K tokens.

Shared results
38
GLM 5 only
37
Grok 4.20 only
16
Like-for-like categories
8 of 9

Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.

Which one for your work

Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.

At a glance

Coding index
GLM 5 41.7 from 3 benchmarks, Grok 4.20 33.3 from 2 benchmarks.
Widest category
Reasoning, 24.9 points apart on average over 5 shared benchmarks.
Widest single gap
ARC-AGI-2: GLM 5 4.9% against Grok 4.20 65.1%, 60.3 points apart on a 0 to 100 scale.
Output price
GLM 5 $3.20 against Grok 4.20 $2.50 per million output tokens, 1.3x apart.
Context window
GLM 5 takes 205K tokens, Grok 4.20 2M.

Benchmark by benchmark

First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.

Boards won, where both have a result
CategoryGLM 5BarsGrok 4.20Ties
Coding24
Intelligence11
Agentic work52
Reasoning05
Math01
Knowledge15
Web design71
General12
All shared boards1721
CodingLike-for-likeSix of these boards feed the Vibe Coding Index24
Coding benchmarks for GLM 5 and Grok 4.20
BenchmarkGLM 5Grok 4.20Leader
SWE-bench Verified72.8%Not measuredOnly GLM 5 measured
SWE-bench Multilingual69.7%Not measuredOnly GLM 5 measured
LMArena WebDev1435Not measuredOnly GLM 5 measured
LiveCodeBench (Vals AI)81.9%84.3%Grok 4.20
SWE-bench Verified (Vals AI)71.4%72.2%Grok 4.20
Vibe Code Bench (Vals AI)23.4%4.1%GLM 5
Code migration (Vals AI)Not measured0.3%Only Grok 4.20 measured
Terminal-Bench 2.1 (Vals AI)Not measured44.2%Only Grok 4.20 measured
Terminal-Bench Hard (Artificial Analysis run)43.2%37.9%GLM 5
Terminal-Bench52.4%57.3%Grok 4.20
WeirdML48.2%52.3%Grok 4.20
ALE-Bench765.6Not measuredOnly GLM 5 measured
LMArena Text: coding1461Not measuredOnly GLM 5 measured
LMArena Text: software and IT1460Not measuredOnly GLM 5 measured
LMArena WebDev: React1424Not measuredOnly GLM 5 measured
LMArena WebDev: HTML1450Not measuredOnly GLM 5 measured
Neither model has a result on the other 22 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index11
Intelligence benchmarks for GLM 5 and Grok 4.20
BenchmarkGLM 5Grok 4.20Leader
AA Intelligence Index27.925.7GLM 5
Epoch Capabilities Index145.8152.1Grok 4.20
Agentic workLike-for-likePublic boards, shown as published, kept out of the index52
Agentic work benchmarks for GLM 5 and Grok 4.20
BenchmarkGLM 5Grok 4.20Leader
Design Arena: agents building web appsNot measured1144Only Grok 4.20 measured
Design Arena: agents building full-stack apps11231054GLM 5
Design Arena: agents building mobile apps11361090GLM 5
Design Arena: agents building Android apps11531052GLM 5
Design Arena: agents building Godot games11441089GLM 5
Design Arena: HTML slides11481180Grok 4.20
Finance Agent (Vals AI)Not measured28.5%Only Grok 4.20 measured
Tax Agent Bench (Vals AI)Not measured7.0%Only Grok 4.20 measured
Legal Research Bench (Vals AI)Not measured13.9%Only Grok 4.20 measured
Excel Modeling Benchmark (Vals AI)Not measured11.7%Only Grok 4.20 measured
τ²-Bench Telecom98.2%93.0%GLM 5
Vending-Bench 2$4,432$4,663Grok 4.20
Neither model has a result on the other 27 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index05
Reasoning benchmarks for GLM 5 and Grok 4.20
BenchmarkGLM 5Grok 4.20Leader
GPQA Diamond83.3%88.6%Grok 4.20
MMMU Pro (Vals AI)Not measured83.5%Only Grok 4.20 measured
GPQA Diamond (Artificial Analysis run)82.0%91.1%Grok 4.20
Humanity's Last Exam (Artificial Analysis run)29.3%34.5%Grok 4.20
GPQA Diamond (Epoch AI run)87.8%Not measuredOnly GLM 5 measured
ARC-AGI44.7%89.5%Grok 4.20
ARC-AGI-24.9%65.1%Grok 4.20
SimpleBench53.2%Not measuredOnly GLM 5 measured
LMArena Text: hard prompts1452Not measuredOnly GLM 5 measured
LMArena Text: expert1454Not measuredOnly GLM 5 measured
LMArena Text: hard prompts in English1460Not measuredOnly GLM 5 measured
Neither model has a result on the other 10 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index01
Math benchmarks for GLM 5 and Grok 4.20
BenchmarkGLM 5Grok 4.20Leader
AIME91.7%96.5%Grok 4.20
OTIS Mock AIME80.0%Not measuredOnly GLM 5 measured
LMArena Text: math1440Not measuredOnly GLM 5 measured
LMArena Text: mathematical work1451Not measuredOnly GLM 5 measured
Neither model has a result on the other 9 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index15
Knowledge benchmarks for GLM 5 and Grok 4.20
BenchmarkGLM 5Grok 4.20Leader
MMLU Pro86.0%86.3%Grok 4.20
LegalBench (Vals AI)84.1%77.7%GLM 5
CaseLaw (Vals AI)52.5%54.4%Grok 4.20
CorpFin (Vals AI)62.9%63.7%Grok 4.20
TaxEval (Vals AI)70.0%74.1%Grok 4.20
MortgageTax (Vals AI)Not measured45.4%Only Grok 4.20 measured
MedQA (Vals AI)94.3%94.5%Grok 4.20
MedCode (Vals AI)Not measured32.2%Only Grok 4.20 measured
LMArena Text: science1460Not measuredOnly GLM 5 measured
LMArena Text: medicine and healthcare1455Not measuredOnly GLM 5 measured
LMArena Text: legal and government1453Not measuredOnly GLM 5 measured
LMArena Text: business and finance1430Not measuredOnly GLM 5 measured
Neither model has a result on the other 5 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index71
Web design benchmarks for GLM 5 and Grok 4.20
BenchmarkGLM 5Grok 4.20Leader
Design Arena: websites12471229GLM 5
Design Arena: UI components12301199GLM 5
Design Arena: game dev12341192GLM 5
Design Arena: data viz12281217GLM 5
Design Arena: 3D12291193GLM 5
Design Arena: all code categories12461221GLM 5
Design Arena: SVG11681164GLM 5
Design Arena: ASCII art11461174Grok 4.20
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index12
General benchmarks for GLM 5 and Grok 4.20
BenchmarkGLM 5Grok 4.20Leader
SAGE (Vals AI)Not measured38.2%Only Grok 4.20 measured
MedScribe (Vals AI)Not measured63.4%Only Grok 4.20 measured
Vals Multimodal IndexNot measured39.1%Only Grok 4.20 measured
IFBench72.3%81.2%Grok 4.20
Long context reasoning (AA-LCR)75.7%69.0%GLM 5
DTBenchNot measured90.1%Only Grok 4.20 measured
LMCANot measured38.7%Only Grok 4.20 measured
CL-bench18.7%22.2%Grok 4.20
CL-bench LifeNot measured11.9%Only Grok 4.20 measured
LMArena Text1446Not measuredOnly GLM 5 measured
LMArena Text: instruction following1428Not measuredOnly GLM 5 measured
LMArena Text: creative writing1438Not measuredOnly GLM 5 measured
LMArena Text: English1458Not measuredOnly GLM 5 measured
LMArena Text: non-English1430Not measuredOnly GLM 5 measured
LMArena Text: Chinese1511Not measuredOnly GLM 5 measured
LMArena Text: German1447Not measuredOnly GLM 5 measured
LMArena Text: Japanese1416Not measuredOnly GLM 5 measured
LMArena Text: Korean1423Not measuredOnly GLM 5 measured
LMArena Text: French1456Not measuredOnly GLM 5 measured
LMArena Text: Spanish1454Not measuredOnly GLM 5 measured
LMArena Text: Russian1436Not measuredOnly GLM 5 measured
LMArena Text: Polish1434Not measuredOnly GLM 5 measured
LMArena Text: multi-turn1456Not measuredOnly GLM 5 measured
LMArena Text: longer queries1446Not measuredOnly GLM 5 measured
LMArena Text: writing and language1437Not measuredOnly GLM 5 measured
LMArena Text: entertainment and media1426Not measuredOnly GLM 5 measured
Neither model has a result on the other 20 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GLM 5 and Grok 4.20
BenchmarkGLM 5Grok 4.20Leader
Neither model has a result on 5 boards here

What each workload costs

Three fixed token mixes at each model's listed price, so per-token rates become a bill.

Chat turn

1K input + 500 output tokens

GLM 5$0.0026Fits in one request
Grok 4.20$0.0025Fits in one request

Grok 4.20 costs less

Repository review

50K input + 3K output tokens

GLM 5$0.060Fits in one request
Grok 4.20$0.070Fits in one request

GLM 5 costs less

Agent loop

200K input + 10K output tokens

GLM 5$0.232Exceeds the context window
Grok 4.20$0.275Fits in one request

GLM 5 costs less

Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.

Specification differences

The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.

Specifications of GLM 5 and Grok 4.20
SpecificationZ.ai GLM 5SpaceXAI Grok 4.20
MakerZ.aixAI
WeightsOpen weightsNo public weights listed
ReleasedFebruary 11, 2026March 31, 2026
Context window205K2M
Input $/Mtok$1.00$1.25
Output $/Mtok$3.20$2.50
Coding index41.733.3
Independent measurements behind it32
Cost per solved task$0.63$0.72
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5 better than Grok 4.20 for coding?

Pick GLM 5 for coding: it scores 41.7 on the Vibe Coding Index against 33.3 for Grok 4.20. Pick Grok 4.20 when output tokens cost 1.3x less, or when the context window is larger, 2M against 205K tokens.

Which is cheaper, GLM 5 or Grok 4.20?

GLM 5 costs $1.00 per million input tokens and $3.20 per million output tokens; Grok 4.20 costs $1.25 and $2.50. Per solved SWE-bench Verified task, GLM 5 costs $0.63 and Grok 4.20 $0.72.

Which has the bigger context window, GLM 5 or Grok 4.20?

Grok 4.20, with 2M tokens against 205K.

How many benchmarks is the GLM 5 vs Grok 4.20 comparison based on?

38 benchmarks have a result for both models as of October 21, 2026. GLM 5's coding index rests on 3 independent benchmarks and Grok 4.20's on 2. Where only one model has a result, the page says so instead of naming a winner.

Compare next

Embed this comparison on your site

Free under CC BY 4.0, while the source link stays visible. Preview the frame · Terms and other embeds

<iframe src="https://llmbenchmark.ai/embed/compare/glm-5-vs-grok-4-20" title="GLM 5 vs Grok 4.20, LLMBenchmark.ai" width="100%" height="360" style="border:0;max-width:100%" loading="lazy"></iframe>
<p style="font:13px/1.4 sans-serif;margin:6px 0 0">Source: <a href="https://llmbenchmark.ai/compare/glm-5-vs-grok-4-20">LLMBenchmark.ai, GLM 5 vs Grok 4.20</a></p>