Enter opens the highlighted result. Esc closes.

GLM 5.4 vs Grok 4.6

GLM 5.4 leads Grok 4.6 on coding, 72.7 to 63.9 on the Vibe Coding Index, and GLM 5.4 costs 1.4x less per output token ($4.40 vs $6.00 per million). Updated December 3, 2026; 10 benchmarks have a result for both.

GLM 5.4Z.ai
Coding
72.7
Overall
No data
Output $/M
$4.40
5
Grok 4.6xAI
Coding
63.9
Overall
61.3
Output $/M
$6.00
5
vs boards won of 10 shared

GLM 5.4 or Grok 4.6: which to pick

Pick GLM 5.4 for coding: it scores 72.7 on the Vibe Coding Index against 63.9 for Grok 4.6, though on 2 benchmarks against 6.

Pick Grok 4.6 for work measured by LiveBench coding or LiveBench research, where it leads.

Shared results
10
GLM 5.4 only
0
Grok 4.6 only
124
Like-for-like categories
5 of 9

Only benchmarks that tested both models count toward a pick; a result only one model has is shown but not compared.

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.4 72.7 from 2 benchmarks, Grok 4.6 63.9 from 6 benchmarks.
Widest category
Agentic work, 13.5 points apart on average over 3 shared benchmarks.
Widest single gap
LiveBench long agentic: GLM 5.4 41.3% against Grok 4.6 18.7%, 22.6 points apart on a 0 to 100 scale.
Output price
GLM 5.4 $4.40 against Grok 4.6 $6.00 per million output tokens, 1.4x apart.
Context window
GLM 5.4 takes 1.05M tokens, Grok 4.6 500K.

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 5.4BarsGrok 4.6Ties
Coding31
Agentic work21
Reasoning01
Web design01
General01
All shared boards55
CodingLike-for-likeSix of these boards feed the Vibe Coding Index31
Coding benchmarks for GLM 5.4 and Grok 4.6
BenchmarkGLM 5.4Grok 4.6Leader
LiveBench coding74.5%76.7%Grok 4.6
LMArena WebDev16901618GLM 5.4
LiveCodeBench (Vals AI)Not measured88.2%Only Grok 4.6 measured
SWE-bench Verified (Vals AI)Not measured95.6%Only Grok 4.6 measured
Terminal-Bench 4 (Vals AI)Not measured17.2%Only Grok 4.6 measured
Vibe Code Bench (Vals AI)Not measured76.2%Only Grok 4.6 measured
Code migration (Vals AI)Not measured44.6%Only Grok 4.6 measured
ProgramBench (Vals AI)Not measured1.0%Only Grok 4.6 measured
IOI (Vals AI)Not measured47.6%Only Grok 4.6 measured
Terminal-Bench 2.1 (Vals AI)Not measured78.3%Only Grok 4.6 measured
Vibe Code Bench 1-100 (Vals AI)Not measured14.8%Only Grok 4.6 measured
SkillsBench (Vals AI)Not measured55.8%Only Grok 4.6 measured
CyberBench (Vals AI)Not measured67.7%Only Grok 4.6 measured
SciCodeNot measured56.5%Only Grok 4.6 measured
Terminal-Bench 4.0 (Artificial Analysis run)Not measured21.2%Only Grok 4.6 measured
FrontierCode 2.0Not measured19.8%Only Grok 4.6 measured
FrontierCodeNot measured48.0%Only Grok 4.6 measured
FrontierSWENot measured25.3%Only Grok 4.6 measured
WeirdMLNot measured67.3%Only Grok 4.6 measured
MirrorCodeNot measured41.1%Only Grok 4.6 measured
ALE-BenchNot measured1508.1Only Grok 4.6 measured
LMArena Text: codingNot measured1464Only Grok 4.6 measured
LMArena Text: software and ITNot measured1454Only Grok 4.6 measured
LMArena WebDev: React17391632GLM 5.4
LMArena WebDev: HTML16751597GLM 5.4
LMArena WebDev: from an imageNot measured1609Only Grok 4.6 measured
GameBench 2Not measured68.6Only Grok 4.6 measured
Terminal-Bench 3.0Not measured26.5%Only Grok 4.6 measured
Terminal-Bench 4.0Not measured20.3%Only Grok 4.6 measured
CursorBench 4.0Not measured44.3%Only Grok 4.6 measured
Neither model has a result on the other 22 boards here
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index2 boards, none shared
Intelligence benchmarks for GLM 5.4 and Grok 4.6
BenchmarkGLM 5.4Grok 4.6Leader
AA Intelligence IndexNot measured31.0Only Grok 4.6 measured
Epoch Capabilities IndexNot measured157.6Only Grok 4.6 measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index21
Agentic work benchmarks for GLM 5.4 and Grok 4.6
BenchmarkGLM 5.4Grok 4.6Leader
Design Arena: agents building web appsNot measured1215Only Grok 4.6 measured
Design Arena: agents building full-stack appsNot measured1310Only Grok 4.6 measured
Design Arena: agents building mobile appsNot measured1224Only Grok 4.6 measured
Design Arena: agents building Android appsNot measured1268Only Grok 4.6 measured
Design Arena: agents building Godot gamesNot measured1253Only Grok 4.6 measured
Design Arena: agents building gamesNot measured1156Only Grok 4.6 measured
Design Arena: HTML slidesNot measured1150Only Grok 4.6 measured
Design Arena: PowerPoint slidesNot measured1210Only Grok 4.6 measured
Design Arena: spreadsheetsNot measured1284Only Grok 4.6 measured
LiveBench research86.0%88.8%Grok 4.6
LiveBench browser64.5%49.4%GLM 5.4
LiveBench long agentic41.3%18.7%GLM 5.4
Finance Agent (Vals AI)Not measured53.7%Only Grok 4.6 measured
Tax Agent Bench (Vals AI)Not measured33.7%Only Grok 4.6 measured
Legal Research Bench (Vals AI)Not measured48.1%Only Grok 4.6 measured
Excel Modeling Benchmark (Vals AI)Not measured62.7%Only Grok 4.6 measured
BioMysteryBench (Vals AI)Not measured72.2%Only Grok 4.6 measured
Terminal-Bench-Science (Vals AI)Not measured12.9%Only Grok 4.6 measured
Vals Science IndexNot measured38.6%Only Grok 4.6 measured
Time Horizon Index (Vals AI)Not measured5.8%Only Grok 4.6 measured
APEX-AgentsNot measured65.3%Only Grok 4.6 measured
Vending-Bench 2Not measured$9,047Only Grok 4.6 measured
Neither model has a result on the other 22 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index01
Reasoning benchmarks for GLM 5.4 and Grok 4.6
BenchmarkGLM 5.4Grok 4.6Leader
GPQA DiamondNot measured94.7%Only Grok 4.6 measured
LiveBench reasoning85.2%91.2%Grok 4.6
MysteryMechanism (Vals AI)Not measured30.6%Only Grok 4.6 measured
GPQA Diamond (Artificial Analysis run)Not measured94.9%Only Grok 4.6 measured
Humanity's Last Exam (Artificial Analysis run)Not measured44.1%Only Grok 4.6 measured
HLE-Diamond (Artificial Analysis run)Not measured21.5%Only Grok 4.6 measured
CritPt v2, hard subset (Artificial Analysis run)Not measured40.0%Only Grok 4.6 measured
GPQA Diamond (Epoch AI run)Not measured94.0%Only Grok 4.6 measured
ARC-AGINot measured87.5%Only Grok 4.6 measured
ARC-AGI-2Not measured67.1%Only Grok 4.6 measured
SimpleBenchNot measured75.9%Only Grok 4.6 measured
Chess puzzlesNot measured33.0%Only Grok 4.6 measured
Mystery game puzzlesNot measured34.0%Only Grok 4.6 measured
EBR-benchNot measured30.5%Only Grok 4.6 measured
LMArena Text: hard promptsNot measured1448Only Grok 4.6 measured
LMArena Text: expertNot measured1469Only Grok 4.6 measured
LMArena Text: hard prompts in EnglishNot measured1445Only Grok 4.6 measured
LMArena Vision: diagramsNot measured1286Only Grok 4.6 measured
LMArena Vision: homeworkNot measured1273Only Grok 4.6 measured
GoBenchNot measured1043Only Grok 4.6 measured
Neither model has a result on the other 6 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
Math benchmarks for GLM 5.4 and Grok 4.6
BenchmarkGLM 5.4Grok 4.6Leader
OTIS Mock AIMENot measured99.2%Only Grok 4.6 measured
FrontierMath, tiers 1 to 3Not measured66.0%Only Grok 4.6 measured
FrontierMath, tier 4Not measured31.7%Only Grok 4.6 measured
ProofBenchNot measured51.0%Only Grok 4.6 measured
LMArena Text: mathNot measured1417Only Grok 4.6 measured
LMArena Text: mathematical workNot measured1464Only Grok 4.6 measured
Neither model has a result on the other 8 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index13 boards, none shared
Knowledge benchmarks for GLM 5.4 and Grok 4.6
BenchmarkGLM 5.4Grok 4.6Leader
MMLU ProNot measured89.4%Only Grok 4.6 measured
LegalBench (Vals AI)Not measured86.3%Only Grok 4.6 measured
CorpFin (Vals AI)Not measured66.2%Only Grok 4.6 measured
TaxEval (Vals AI)Not measured71.1%Only Grok 4.6 measured
MortgageTax (Vals AI)Not measured64.2%Only Grok 4.6 measured
MedCode (Vals AI)Not measured44.7%Only Grok 4.6 measured
AA-OmniscienceNot measured24.9Only Grok 4.6 measured
SimpleQA VerifiedNot measured49.3%Only Grok 4.6 measured
LMArena Text: scienceNot measured1437Only Grok 4.6 measured
LMArena Text: medicine and healthcareNot measured1423Only Grok 4.6 measured
LMArena Text: legal and governmentNot measured1430Only Grok 4.6 measured
LMArena Text: business and financeNot measured1415Only Grok 4.6 measured
FACTS Benchmark SuiteNot measured59.5%Only Grok 4.6 measured
Neither model has a result on the other 8 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index01
Web design benchmarks for GLM 5.4 and Grok 4.6
BenchmarkGLM 5.4Grok 4.6Leader
Design Arena: websitesNot measured1325Only Grok 4.6 measured
Design Arena: UI componentsNot measured1276Only Grok 4.6 measured
Design Arena: game devNot measured1260Only Grok 4.6 measured
Design Arena: data vizNot measured1276Only Grok 4.6 measured
Design Arena: 3DNot measured1237Only Grok 4.6 measured
Design Arena: all code categoriesNot measured1332Only Grok 4.6 measured
Design Arena: SVGNot measured1270Only Grok 4.6 measured
Design Arena: ASCII artNot measured1251Only Grok 4.6 measured
LiveBench design74.2%76.3%Grok 4.6
GeneralLike-for-likePublic boards, shown as published, kept out of the index01
General benchmarks for GLM 5.4 and Grok 4.6
BenchmarkGLM 5.4Grok 4.6Leader
LiveBench data analysis72.2%75.3%Grok 4.6
Public Benefits Bench (Vals AI)Not measured66.8%Only Grok 4.6 measured
MedScribe (Vals AI)Not measured86.5%Only Grok 4.6 measured
Long context reasoning (AA-LCR)Not measured81.0%Only Grok 4.6 measured
GDPval-AANot measured1659Only Grok 4.6 measured
DTBenchNot measured97.3%Only Grok 4.6 measured
LMCANot measured48.5%Only Grok 4.6 measured
Furniture assemblyNot measured40.0%Only Grok 4.6 measured
LMArena TextNot measured1430Only Grok 4.6 measured
LMArena Text: instruction followingNot measured1431Only Grok 4.6 measured
LMArena Text: creative writingNot measured1428Only Grok 4.6 measured
LMArena VisionNot measured1264Only Grok 4.6 measured
LMArena Text: EnglishNot measured1433Only Grok 4.6 measured
LMArena Text: non-EnglishNot measured1421Only Grok 4.6 measured
LMArena Text: ChineseNot measured1474Only Grok 4.6 measured
LMArena Text: GermanNot measured1417Only Grok 4.6 measured
LMArena Text: JapaneseNot measured1379Only Grok 4.6 measured
LMArena Text: KoreanNot measured1393Only Grok 4.6 measured
LMArena Text: FrenchNot measured1448Only Grok 4.6 measured
LMArena Text: SpanishNot measured1422Only Grok 4.6 measured
LMArena Text: RussianNot measured1420Only Grok 4.6 measured
LMArena Text: PolishNot measured1423Only Grok 4.6 measured
LMArena Text: multi-turnNot measured1427Only Grok 4.6 measured
LMArena Text: longer queriesNot measured1458Only Grok 4.6 measured
LMArena Text: writing and languageNot measured1433Only Grok 4.6 measured
LMArena Text: entertainment and mediaNot measured1422Only Grok 4.6 measured
LMArena Vision: EnglishNot measured1267Only Grok 4.6 measured
LMArena Vision: ChineseNot measured1286Only Grok 4.6 measured
LMArena Vision: reading textNot measured1271Only Grok 4.6 measured
LMArena Vision: humorNot measured1269Only Grok 4.6 measured
LMArena Vision: creative writingNot measured1264Only Grok 4.6 measured
LMArena DocumentNot measured1435Only Grok 4.6 measured
Neither model has a result on the other 17 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GLM 5.4 and Grok 4.6
BenchmarkGLM 5.4Grok 4.6Leader
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.4$0.0036Fits in one request
Grok 4.6$0.0050Fits in one request

GLM 5.4 costs less

Repository review

50K input + 3K output tokens

GLM 5.4$0.083Fits in one request
Grok 4.6$0.118Fits in one request

GLM 5.4 costs less

Agent loop

200K input + 10K output tokens

GLM 5.4$0.324Fits in one request
Grok 4.6$0.460Fits in one request

GLM 5.4 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.4 and Grok 4.6
SpecificationZ.ai GLM 5.4SpaceXSI Grok 4.6
MakerZ.aixAI
WeightsOpen weightsNo public weights listed
ReleasedDecember 2, 2026August 12, 2026
Context window1.05M500K
Input $/Mtok$1.40$2.00
Output $/Mtok$4.40$6.00
Coding index72.763.9
Independent measurements behind it26
Cost per solved taskNot computable$0.82
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5.4 better than Grok 4.6 for coding?

Pick GLM 5.4 for coding: it scores 72.7 on the Vibe Coding Index against 63.9 for Grok 4.6, though on 2 benchmarks against 6. Pick Grok 4.6 for work measured by LiveBench coding or LiveBench research, where it leads.

Which is cheaper, GLM 5.4 or Grok 4.6?

GLM 5.4 costs $1.40 per million input tokens and $4.40 per million output tokens; Grok 4.6 costs $2.00 and $6.00. Cost per solved task is known for Grok 4.6 only.

Which has the bigger context window, GLM 5.4 or Grok 4.6?

GLM 5.4, with 1.05M tokens against 500K.

How many benchmarks is the GLM 5.4 vs Grok 4.6 comparison based on?

10 benchmarks have a result for both models as of December 3, 2026. GLM 5.4's coding index rests on 2 independent benchmarks and Grok 4.6's on 6. 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-4-vs-grok-4-6" title="GLM 5.4 vs Grok 4.6, 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-4-vs-grok-4-6">LLMBenchmark.ai, GLM 5.4 vs Grok 4.6</a></p>