Enter opens the highlighted result. Esc closes.

GLM 5.2 vs Grok 4.6

Grok 4.6 leads GLM 5.2 on coding, 65.7 to 61.1 on the Vibe Coding Index, and GLM 5.2 costs 1.4x less per output token ($4.40 vs $6.00 per million). Updated October 22, 2026; 91 benchmarks have a result for both.

GLM 5.2Z.ai
Coding
61.1
Overall
62.5
Output $/M
$4.40
32
Grok 4.6xAI
Coding
65.7
Overall
67.4
Output $/M
$6.00
58
vs boards won of 91 shared, 1 tied

GLM 5.2 or Grok 4.6: which to pick

Pick Grok 4.6 for coding: it scores 65.7 on the Vibe Coding Index against 61.1 for GLM 5.2.

Pick GLM 5.2 for output tokens 1.4x cheaper ($4.40 vs $6.00 per million) and a larger context window (1.05M against 500K tokens).

Shared results
91
GLM 5.2 only
7
Grok 4.6 only
32
Like-for-like categories
8 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.2 61.1 from 4 benchmarks, Grok 4.6 65.7 from 6 benchmarks.
Widest category
Reasoning, 11.8 points apart on average over 13 shared benchmarks.
Widest single gap
ARC-AGI-2: GLM 5.2 22.8% against Grok 4.6 67.1%, 44.3 points apart on a 0 to 100 scale.
Output price
GLM 5.2 $4.40 against Grok 4.6 $6.00 per million output tokens, 1.4x apart.
Context window
GLM 5.2 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.2BarsGrok 4.6Ties
Coding314
Intelligence02
Agentic work014
Reasoning310
Math24
Knowledge55
Web design251 tie
General174
All shared boards32581 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index314
Coding benchmarks for GLM 5.2 and Grok 4.6
BenchmarkGLM 5.2Grok 4.6Leader
LiveBench codingNot measured89.1%Only Grok 4.6 measured
LMArena WebDev16041617Grok 4.6
AA Coding Index68.876.8Grok 4.6
LiveCodeBench (Vals AI)69.5%88.2%Grok 4.6
SWE-bench Verified (Vals AI)82.8%95.6%Grok 4.6
Terminal-Bench 4 (Vals AI)Not measured17.2%Only Grok 4.6 measured
Vibe Code Bench (Vals AI)64.0%76.2%Grok 4.6
Code migration (Vals AI)37.9%44.6%Grok 4.6
ProgramBench (Vals AI)0.5%1.0%Grok 4.6
IOI (Vals AI)Not measured47.6%Only Grok 4.6 measured
Terminal-Bench 2.1 (Vals AI)67.8%78.3%Grok 4.6
Vibe Code Bench 1-100 (Vals AI)Not measured14.8%Only Grok 4.6 measured
SkillsBench (Vals AI)45.1%55.8%Grok 4.6
CyberBench (Vals AI)Not measured67.7%Only Grok 4.6 measured
SciCode51.2%56.5%Grok 4.6
Terminal-Bench Hard (Artificial Analysis run)50.8%Not measuredOnly GLM 5.2 measured
FrontierCode24.5%48.0%Grok 4.6
FrontierSWENot measured25.3%Only Grok 4.6 measured
WeirdML70.1%67.3%GLM 5.2
ALE-Bench1047.01508.1Grok 4.6
LMArena Text: coding14871466GLM 5.2
LMArena Text: software and IT14861457GLM 5.2
LMArena WebDev: React16171631Grok 4.6
LMArena WebDev: HTML15651597Grok 4.6
LMArena WebDev: from an imageNot measured1603Only Grok 4.6 measured
Neither model has a result on the other 14 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for GLM 5.2 and Grok 4.6
BenchmarkGLM 5.2Grok 4.6Leader
AA Intelligence Index33.744.3Grok 4.6
Epoch Capabilities Index151.9156.6Grok 4.6
Agentic workLike-for-likePublic boards, shown as published, kept out of the index014
Agentic work benchmarks for GLM 5.2 and Grok 4.6
BenchmarkGLM 5.2Grok 4.6Leader
AA Agentic Index38.453.0Grok 4.6
Design Arena: agents building web apps12221248Grok 4.6
Design Arena: agents building full-stack apps12411264Grok 4.6
Design Arena: agents building mobile apps11591234Grok 4.6
Design Arena: agents building Android apps11781291Grok 4.6
Design Arena: agents building Godot games11421276Grok 4.6
Design Arena: agents building games12061209Grok 4.6
Design Arena: HTML slides11251250Grok 4.6
Design Arena: PowerPoint slides11701237Grok 4.6
LiveBench researchNot measured84.5%Only Grok 4.6 measured
LiveBench browserNot measured64.0%Only Grok 4.6 measured
LiveBench long agenticNot measured40.7%Only Grok 4.6 measured
SREBench (Vals AI)0.0%Not measuredOnly GLM 5.2 measured
Finance Agent (Vals AI)49.7%53.7%Grok 4.6
Tax Agent Bench (Vals AI)Not measured33.1%Only Grok 4.6 measured
Legal Research Bench (Vals AI)31.3%48.1%Grok 4.6
Excel Modeling Benchmark (Vals AI)61.5%62.7%Grok 4.6
BioMysteryBench (Vals AI)Not measured72.2%Only Grok 4.6 measured
Terminal-Bench-Science (Vals AI)Not measured11.4%Only Grok 4.6 measured
Vals Science IndexNot measured38.1%Only Grok 4.6 measured
Time Horizon Index (Vals AI)Not measured5.8%Only Grok 4.6 measured
τ²-Bench Telecom99.1%Not measuredOnly GLM 5.2 measured
APEX-Agents45.2%65.3%Grok 4.6
PostTrainBench31.7%Not measuredOnly GLM 5.2 measured
Vending-Bench 2$8,314$9,047Grok 4.6
Neither model has a result on the other 16 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index310
Reasoning benchmarks for GLM 5.2 and Grok 4.6
BenchmarkGLM 5.2Grok 4.6Leader
GPQA Diamond85.6%94.7%Grok 4.6
LiveBench reasoningNot measured91.2%Only Grok 4.6 measured
MysteryMechanism (Vals AI)Not measured30.6%Only Grok 4.6 measured
GPQA Diamond (Artificial Analysis run)89.5%94.9%Grok 4.6
Humanity's Last Exam (Artificial Analysis run)41.1%44.1%Grok 4.6
GPQA Diamond (Epoch AI run)91.9%94.0%Grok 4.6
ARC-AGI77.0%87.5%Grok 4.6
ARC-AGI-222.8%67.1%Grok 4.6
SimpleBench58.8%75.9%Grok 4.6
Chess puzzles22.0%33.0%Grok 4.6
Mystery game puzzles19.0%34.0%Grok 4.6
EBR-bench9.5%30.5%Grok 4.6
LMArena Text: hard prompts14811448GLM 5.2
LMArena Text: expert14871469GLM 5.2
LMArena Text: hard prompts in English14811445GLM 5.2
LMArena Vision: diagramsNot measured1285Only Grok 4.6 measured
LMArena Vision: homeworkNot measured1283Only Grok 4.6 measured
Kagi LLM Benchmark62.6%Not measuredOnly GLM 5.2 measured
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index24
Math benchmarks for GLM 5.2 and Grok 4.6
BenchmarkGLM 5.2Grok 4.6Leader
OTIS Mock AIME86.4%99.2%Grok 4.6
FrontierMath, tiers 1 to 359.2%66.0%Grok 4.6
FrontierMath, tier 429.3%31.7%Grok 4.6
ProofBench35.0%51.0%Grok 4.6
LMArena Text: math14831417GLM 5.2
LMArena Text: mathematical work14891464GLM 5.2
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index55
Knowledge benchmarks for GLM 5.2 and Grok 4.6
BenchmarkGLM 5.2Grok 4.6Leader
MMLU Pro86.7%89.4%Grok 4.6
LegalBench (Vals AI)84.1%86.3%Grok 4.6
CorpFin (Vals AI)66.1%66.2%Grok 4.6
TaxEval (Vals AI)73.3%71.1%GLM 5.2
MortgageTax (Vals AI)Not measured64.2%Only Grok 4.6 measured
MedCode (Vals AI)40.8%44.7%Grok 4.6
SimpleQA Verified34.2%49.3%Grok 4.6
LMArena Text: science14891437GLM 5.2
LMArena Text: medicine and healthcare14751420GLM 5.2
LMArena Text: legal and government14861429GLM 5.2
LMArena Text: business and finance14511416GLM 5.2
Neither model has a result on the other 7 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index25
Web design benchmarks for GLM 5.2 and Grok 4.6
BenchmarkGLM 5.2Grok 4.6Leader
Design Arena: websites12851289Grok 4.6
Design Arena: UI components12941294Tie
Design Arena: game dev12681296Grok 4.6
Design Arena: data viz12851282GLM 5.2
Design Arena: 3D12871277GLM 5.2
Design Arena: all code categories12871292Grok 4.6
Design Arena: SVG12131240Grok 4.6
Design Arena: ASCII art11911279Grok 4.6
LiveBench designNot measured79.8%Only Grok 4.6 measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index174
General benchmarks for GLM 5.2 and Grok 4.6
BenchmarkGLM 5.2Grok 4.6Leader
LiveBench data analysisNot measured75.3%Only Grok 4.6 measured
Public Benefits Bench (Vals AI)Not measured66.8%Only Grok 4.6 measured
SAGE (Vals AI)Not measured28.9%Only Grok 4.6 measured
MedScribe (Vals AI)83.5%86.5%Grok 4.6
IFBench73.3%Not measuredOnly GLM 5.2 measured
Long context reasoning (AA-LCR)78.3%81.0%Grok 4.6
DTBench93.6%97.3%Grok 4.6
LMCA45.8%48.5%Grok 4.6
Surface Evolver Bench55.6%Not measuredOnly GLM 5.2 measured
Furniture assemblyNot measured40.0%Only Grok 4.6 measured
LMArena Text14701429GLM 5.2
LMArena Text: instruction following14661431GLM 5.2
LMArena Text: creative writing14631426GLM 5.2
LMArena VisionNot measured1263Only Grok 4.6 measured
LMArena Text: English14751433GLM 5.2
LMArena Text: non-English14591420GLM 5.2
LMArena Text: Chinese15221476GLM 5.2
LMArena Text: German14701426GLM 5.2
LMArena Text: Japanese14501378GLM 5.2
LMArena Text: Korean14401391GLM 5.2
LMArena Text: French14791455GLM 5.2
LMArena Text: Spanish14781414GLM 5.2
LMArena Text: Russian14681421GLM 5.2
LMArena Text: Polish14561430GLM 5.2
LMArena Text: multi-turn14691425GLM 5.2
LMArena Text: longer queries14801456GLM 5.2
LMArena Text: writing and language14631429GLM 5.2
LMArena Text: entertainment and media14501421GLM 5.2
LMArena Vision: EnglishNot measured1270Only Grok 4.6 measured
LMArena Vision: ChineseNot measured1289Only Grok 4.6 measured
LMArena Vision: reading textNot measured1272Only Grok 4.6 measured
LMArena Vision: humorNot measured1270Only Grok 4.6 measured
LMArena Vision: creative writingNot measured1262Only Grok 4.6 measured
LMArena DocumentNot measured1452Only Grok 4.6 measured
Neither model has a result on the other 12 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GLM 5.2 and Grok 4.6
BenchmarkGLM 5.2Grok 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.2$0.0036Fits in one request
Grok 4.6$0.0050Fits in one request

GLM 5.2 costs less

Repository review

50K input + 3K output tokens

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

GLM 5.2 costs less

Agent loop

200K input + 10K output tokens

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

GLM 5.2 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.2 and Grok 4.6
SpecificationZ.ai GLM 5.2SpaceXAI Grok 4.6
MakerZ.aixAI
WeightsOpen weightsNo public weights listed
ReleasedJune 16, 2026August 12, 2026
Context window1.05M500K
Input $/Mtok$1.40$2.00
Output $/Mtok$4.40$6.00
Coding index61.165.7
Independent measurements behind it46
Cost per solved task$0.86$0.82
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5.2 better than Grok 4.6 for coding?

Pick Grok 4.6 for coding: it scores 65.7 on the Vibe Coding Index against 61.1 for GLM 5.2. Pick GLM 5.2 for output tokens 1.4x cheaper ($4.40 vs $6.00 per million) and a larger context window (1.05M against 500K tokens).

Which is cheaper, GLM 5.2 or Grok 4.6?

GLM 5.2 costs $1.40 per million input tokens and $4.40 per million output tokens; Grok 4.6 costs $2.00 and $6.00. Per solved SWE-bench Verified task, GLM 5.2 costs $0.86 and Grok 4.6 $0.82.

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

GLM 5.2, with 1.05M tokens against 500K.

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

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