Enter opens the highlighted result. Esc closes.

GLM 5.2 vs Grok 4.5

GLM 5.2 leads Grok 4.5 on coding, 61.1 to 58.6 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; 93 benchmarks have a result for both.

GLM 5.2Z.ai
Coding
61.1
Overall
62.5
Output $/M
$4.40
49
Grok 4.5xAI
Coding
58.6
Overall
62.1
Output $/M
$6.00
43
vs boards won of 93 shared, 1 tied

GLM 5.2 or Grok 4.5: which to pick

Pick GLM 5.2 for coding: it scores 61.1 on the Vibe Coding Index against 58.6 for Grok 4.5, though on 4 benchmarks against 6.

Pick Grok 4.5 for a lower cost per solved task ($0.62 against $0.86) and work measured by AA Coding Index or LiveCodeBench (Vals AI), where it leads.

Shared results
93
GLM 5.2 only
5
Grok 4.5 only
30
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.5 58.6 from 6 benchmarks.
Widest category
Reasoning, 9.1 points apart on average over 12 shared benchmarks.
Widest single gap
ARC-AGI-2: GLM 5.2 22.8% against Grok 4.5 52.6%, 29.9 points apart on a 0 to 100 scale.
Output price
GLM 5.2 $4.40 against Grok 4.5 $6.00 per million output tokens, 1.4x apart.
Context window
GLM 5.2 takes 1.05M tokens, Grok 4.5 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.5Ties
Coding791 tie
Intelligence02
Agentic work511
Reasoning39
Math51
Knowledge55
Web design62
General184
All shared boards49431 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index79
Coding benchmarks for GLM 5.2 and Grok 4.5
BenchmarkGLM 5.2Grok 4.5Leader
LiveBench codingNot measured94.3%Only Grok 4.5 measured
LMArena WebDev16041553GLM 5.2
AA Coding Index68.872.4Grok 4.5
LiveCodeBench (Vals AI)69.5%87.3%Grok 4.5
SWE-bench Verified (Vals AI)82.8%86.6%Grok 4.5
Terminal-Bench 4 (Vals AI)Not measured8.6%Only Grok 4.5 measured
Vibe Code Bench (Vals AI)64.0%69.0%Grok 4.5
Code migration (Vals AI)37.9%36.6%GLM 5.2
ProgramBench (Vals AI)0.5%0.0%GLM 5.2
IOI (Vals AI)Not measured40.6%Only Grok 4.5 measured
Terminal-Bench 2.1 (Vals AI)67.8%67.8%Tie
SkillsBench (Vals AI)45.1%66.0%Grok 4.5
CyberBench (Vals AI)Not measured71.0%Only Grok 4.5 measured
SciCode51.2%55.0%Grok 4.5
Terminal-Bench Hard (Artificial Analysis run)50.8%Not measuredOnly GLM 5.2 measured
FrontierCode24.5%42.4%Grok 4.5
WeirdML70.1%46.4%GLM 5.2
ALE-Bench1047.01309.3Grok 4.5
LMArena Text: coding14871474GLM 5.2
LMArena Text: software and IT14861471GLM 5.2
LMArena WebDev: React16171556GLM 5.2
LMArena WebDev: HTML15651567Grok 4.5
LMArena WebDev: from an imageNot measured1562Only Grok 4.5 measured
SciCodeNot measured6.5%Only Grok 4.5 measured
Neither model has a result on the other 15 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for GLM 5.2 and Grok 4.5
BenchmarkGLM 5.2Grok 4.5Leader
AA Intelligence Index33.738.8Grok 4.5
Epoch Capabilities Index151.9154.1Grok 4.5
Agentic workLike-for-likePublic boards, shown as published, kept out of the index511
Agentic work benchmarks for GLM 5.2 and Grok 4.5
BenchmarkGLM 5.2Grok 4.5Leader
AA Agentic Index38.441.2Grok 4.5
Design Arena: agents building web apps12221218GLM 5.2
Design Arena: agents building full-stack apps12411249Grok 4.5
Design Arena: agents building mobile apps11591220Grok 4.5
Design Arena: agents building Android apps11781236Grok 4.5
Design Arena: agents building Godot games11421229Grok 4.5
Design Arena: agents building games12061236Grok 4.5
Design Arena: HTML slides11251205Grok 4.5
Design Arena: PowerPoint slides11701230Grok 4.5
LiveBench researchNot measured85.9%Only Grok 4.5 measured
LiveBench browserNot measured44.0%Only Grok 4.5 measured
LiveBench long agenticNot measured27.9%Only Grok 4.5 measured
SREBench (Vals AI)0.0%0.8%Grok 4.5
Finance Agent (Vals AI)49.7%48.4%GLM 5.2
Tax Agent Bench (Vals AI)Not measured24.9%Only Grok 4.5 measured
Legal Research Bench (Vals AI)31.3%38.0%Grok 4.5
Excel Modeling Benchmark (Vals AI)61.5%52.9%GLM 5.2
Time Horizon Index (Vals AI)Not measured6.3%Only Grok 4.5 measured
τ²-Bench Telecom99.1%Not measuredOnly GLM 5.2 measured
APEX-Agents45.2%56.2%Grok 4.5
PostTrainBench31.7%23.4%GLM 5.2
Vending-Bench 2$8,314$3,887GLM 5.2
LMArena SearchNot measured1216Only Grok 4.5 measured
Neither model has a result on the other 18 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index39
Reasoning benchmarks for GLM 5.2 and Grok 4.5
BenchmarkGLM 5.2Grok 4.5Leader
GPQA Diamond85.6%92.9%Grok 4.5
LiveBench reasoningNot measured87.2%Only Grok 4.5 measured
MMMU Pro (Vals AI)Not measured61.8%Only Grok 4.5 measured
GPQA Diamond (Artificial Analysis run)89.5%93.1%Grok 4.5
Humanity's Last Exam (Artificial Analysis run)41.1%42.7%Grok 4.5
GPQA Diamond (Epoch AI run)91.9%93.4%Grok 4.5
ARC-AGI77.0%87.2%Grok 4.5
ARC-AGI-222.8%52.6%Grok 4.5
SimpleBench58.8%70.0%Grok 4.5
Chess puzzles22.0%35.0%Grok 4.5
Mystery game puzzles19.0%Not measuredOnly GLM 5.2 measured
EBR-bench9.5%Not measuredOnly GLM 5.2 measured
LMArena Text: hard prompts14811462GLM 5.2
LMArena Text: expert14871465GLM 5.2
LMArena Text: hard prompts in English14811464GLM 5.2
LMArena Vision: diagramsNot measured1304Only Grok 4.5 measured
LMArena Vision: homeworkNot measured1295Only Grok 4.5 measured
Kagi LLM Benchmark62.6%83.5%Grok 4.5
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index51
Math benchmarks for GLM 5.2 and Grok 4.5
BenchmarkGLM 5.2Grok 4.5Leader
OTIS Mock AIME86.4%97.8%Grok 4.5
FrontierMath, tiers 1 to 359.2%57.2%GLM 5.2
FrontierMath, tier 429.3%24.4%GLM 5.2
ProofBench35.0%31.0%GLM 5.2
LMArena Text: math14831460GLM 5.2
LMArena Text: mathematical work14891482GLM 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.5
BenchmarkGLM 5.2Grok 4.5Leader
MMLU Pro86.7%89.2%Grok 4.5
LegalBench (Vals AI)84.1%86.0%Grok 4.5
CorpFin (Vals AI)66.1%67.4%Grok 4.5
TaxEval (Vals AI)73.3%71.7%GLM 5.2
MortgageTax (Vals AI)Not measured61.8%Only Grok 4.5 measured
MedCode (Vals AI)40.8%43.3%Grok 4.5
SimpleQA Verified34.2%48.3%Grok 4.5
LMArena Text: science14891464GLM 5.2
LMArena Text: medicine and healthcare14751440GLM 5.2
LMArena Text: legal and government14861463GLM 5.2
LMArena Text: business and finance14511441GLM 5.2
FACTS Benchmark SuiteNot measured50.2%Only Grok 4.5 measured
Neither model has a result on the other 6 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index62
Web design benchmarks for GLM 5.2 and Grok 4.5
BenchmarkGLM 5.2Grok 4.5Leader
Design Arena: websites12851281GLM 5.2
Design Arena: UI components12941280GLM 5.2
Design Arena: game dev12681264GLM 5.2
Design Arena: data viz12851266GLM 5.2
Design Arena: 3D12871257GLM 5.2
Design Arena: all code categories12871275GLM 5.2
Design Arena: SVG12131215Grok 4.5
Design Arena: ASCII art11911256Grok 4.5
LiveBench designNot measured78.1%Only Grok 4.5 measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index184
General benchmarks for GLM 5.2 and Grok 4.5
BenchmarkGLM 5.2Grok 4.5Leader
LiveBench data analysisNot measured73.0%Only Grok 4.5 measured
SAGE (Vals AI)Not measured35.0%Only Grok 4.5 measured
MedScribe (Vals AI)83.5%86.9%Grok 4.5
Vals Multimodal IndexNot measured63.4%Only Grok 4.5 measured
IFBench73.3%Not measuredOnly GLM 5.2 measured
Long context reasoning (AA-LCR)78.3%79.3%Grok 4.5
DTBench93.6%96.5%Grok 4.5
LMCA45.8%45.2%GLM 5.2
Surface Evolver Bench55.6%74.4%Grok 4.5
Furniture assemblyNot measured22.5%Only Grok 4.5 measured
LMArena Text14701448GLM 5.2
LMArena Text: instruction following14661445GLM 5.2
LMArena Text: creative writing14631442GLM 5.2
LMArena VisionNot measured1287Only Grok 4.5 measured
LMArena Text: English14751453GLM 5.2
LMArena Text: non-English14591440GLM 5.2
LMArena Text: Chinese15221495GLM 5.2
LMArena Text: German14701448GLM 5.2
LMArena Text: Japanese14501430GLM 5.2
LMArena Text: Korean14401406GLM 5.2
LMArena Text: French14791457GLM 5.2
LMArena Text: Spanish14781451GLM 5.2
LMArena Text: Russian14681449GLM 5.2
LMArena Text: Polish14561432GLM 5.2
LMArena Text: multi-turn14691456GLM 5.2
LMArena Text: longer queries14801462GLM 5.2
LMArena Text: writing and language14631445GLM 5.2
LMArena Text: entertainment and media14501434GLM 5.2
LMArena Vision: EnglishNot measured1285Only Grok 4.5 measured
LMArena Vision: ChineseNot measured1345Only Grok 4.5 measured
LMArena Vision: reading textNot measured1293Only Grok 4.5 measured
LMArena Vision: humorNot measured1276Only Grok 4.5 measured
LMArena Vision: creative writingNot measured1293Only Grok 4.5 measured
LMArena DocumentNot measured1452Only Grok 4.5 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.5
BenchmarkGLM 5.2Grok 4.5Leader
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.5$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.5$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.5$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.5
SpecificationZ.ai GLM 5.2SpaceXAI Grok 4.5
MakerZ.aixAI
WeightsOpen weightsNo public weights listed
ReleasedJune 16, 2026July 8, 2026
Context window1.05M500K
Input $/Mtok$1.40$2.00
Output $/Mtok$4.40$6.00
Coding index61.158.6
Independent measurements behind it46
Cost per solved task$0.86$0.62
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5.2 better than Grok 4.5 for coding?

Pick GLM 5.2 for coding: it scores 61.1 on the Vibe Coding Index against 58.6 for Grok 4.5, though on 4 benchmarks against 6. Pick Grok 4.5 for a lower cost per solved task ($0.62 against $0.86) and work measured by AA Coding Index or LiveCodeBench (Vals AI), where it leads.

Which is cheaper, GLM 5.2 or Grok 4.5?

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

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

GLM 5.2, with 1.05M tokens against 500K.

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

93 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.5'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-5" title="GLM 5.2 vs Grok 4.5, 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-5">LLMBenchmark.ai, GLM 5.2 vs Grok 4.5</a></p>