Enter opens the highlighted result. Esc closes.

GLM 5.2 vs Grok 4.7

Grok 4.7 leads GLM 5.2 on coding, 60.8 to 59.7 on the Vibe Coding Index, and GLM 5.2 costs 1.4x less per output token ($4.40 vs $6.00 per million). Updated December 6, 2026; 78 benchmarks have a result for both.

GLM 5.2Z.ai
Coding
59.7
Overall
65.2
Output $/M
$4.40
36
Grok 4.7xAI
Coding
60.8
Overall
62.5
Output $/M
$6.00
41
vs boards won of 78 shared, 1 tied

GLM 5.2 or Grok 4.7: which to pick

GLM 5.2 and Grok 4.7 are level for coding, 59.7 against 60.8 on the Vibe Coding Index, so price and context decide.

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). Pick Grok 4.7 for work measured by LMArena WebDev or Code migration (Vals AI), where it leads.

Shared results
78
GLM 5.2 only
33
Grok 4.7 only
43
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 59.7 from 3 benchmarks, Grok 4.7 60.8 from 5 benchmarks.
Widest category
Agentic work, 13.1 points apart on average over 9 shared benchmarks.
Widest single gap
ARC-AGI-2: GLM 5.2 22.8% against Grok 4.7 61.4%, 38.6 points apart on a 0 to 100 scale.
Output price
GLM 5.2 $4.40 against Grok 4.7 $6.00 per million output tokens, 1.4x apart.
Context window
GLM 5.2 takes 1.05M tokens, Grok 4.7 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.7Ties
Coding2111 tie
Intelligence01
Agentic work09
Reasoning37
Math52
Knowledge44
Web design43
General184
All shared boards36411 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index211
Coding benchmarks for GLM 5.2 and Grok 4.7
BenchmarkGLM 5.2Grok 4.7Leader
LiveBench codingNot measured73.1%Only Grok 4.7 measured
LMArena WebDev16081641Grok 4.7
LiveCodeBench (Vals AI)69.5%Not measuredOnly GLM 5.2 measured
SWE-bench Verified (Vals AI)82.8%Not measuredOnly GLM 5.2 measured
Terminal-Bench 4 (Vals AI)Not measured28.8%Only Grok 4.7 measured
Vibe Code Bench (Vals AI)Not measured69.1%Only Grok 4.7 measured
Code migration (Vals AI)37.9%44.8%Grok 4.7
ProgramBench (Vals AI)0.5%0.5%Tie
IOI (Vals AI)Not measured57.7%Only Grok 4.7 measured
Terminal-Bench 2.1 (Vals AI)67.8%73.4%Grok 4.7
SWE-bench Multimodal (Vals AI)Not measured42.9%Only Grok 4.7 measured
SkillsBench (Vals AI)45.1%Not measuredOnly GLM 5.2 measured
CyberBench (Vals AI)Not measured69.5%Only Grok 4.7 measured
SciCode51.2%57.4%Grok 4.7
Terminal-Bench Hard (Artificial Analysis run)50.8%Not measuredOnly GLM 5.2 measured
Terminal-Bench 4.0 (Artificial Analysis run)1.0%25.8%Grok 4.7
FrontierCode 2.0Not measured28.9%Only Grok 4.7 measured
FrontierCode24.5%47.6%Grok 4.7
FrontierSWENot measured29.5%Only Grok 4.7 measured
WeirdML70.1%Not measuredOnly GLM 5.2 measured
MirrorCode36.7%54.4%Grok 4.7
ALE-Bench1047.01545.8Grok 4.7
LMArena Text: coding14881424GLM 5.2
LMArena Text: software and IT14871421GLM 5.2
LMArena WebDev: React16211662Grok 4.7
LMArena WebDev: HTML15671629Grok 4.7
LMArena WebDev: from an imageNot measured1592Only Grok 4.7 measured
SWE Atlas: Codebase QnA48.1%Not measuredOnly GLM 5.2 measured
SWE Atlas: Refactoring42.4%Not measuredOnly GLM 5.2 measured
SWE Atlas: Test Writing41.5%Not measuredOnly GLM 5.2 measured
GameBench 249.972.3Grok 4.7
Terminal-Bench 3.04.6%Not measuredOnly GLM 5.2 measured
Terminal-Bench 4.0Not measured37.6%Only Grok 4.7 measured
CursorBench 4.0Not measured48.6%Only Grok 4.7 measured
ProgramBench0.0%Not measuredOnly GLM 5.2 measured
Neither model has a result on the other 17 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for GLM 5.2 and Grok 4.7
BenchmarkGLM 5.2Grok 4.7Leader
AA Intelligence IndexNot measured35.0Only Grok 4.7 measured
Epoch Capabilities Index153.0156.2Grok 4.7
Agentic workLike-for-likePublic boards, shown as published, kept out of the index09
Agentic work benchmarks for GLM 5.2 and Grok 4.7
BenchmarkGLM 5.2Grok 4.7Leader
Design Arena: agents building web apps1184Not measuredOnly GLM 5.2 measured
Design Arena: agents building full-stack apps12881324Grok 4.7
Design Arena: agents building mobile apps11521243Grok 4.7
Design Arena: agents building Android apps1162Not measuredOnly GLM 5.2 measured
Design Arena: agents building Godot games1142Not measuredOnly GLM 5.2 measured
Design Arena: agents building games1156Not measuredOnly GLM 5.2 measured
Design Arena: HTML slides1077Not measuredOnly GLM 5.2 measured
Design Arena: PowerPoint slides1157Not measuredOnly GLM 5.2 measured
Design Arena: spreadsheets11231407Grok 4.7
LiveBench researchNot measured89.5%Only Grok 4.7 measured
LiveBench browserNot measured49.3%Only Grok 4.7 measured
LiveBench long agenticNot measured45.3%Only Grok 4.7 measured
SREBench (Vals AI)0.0%3.8%Grok 4.7
Finance Agent (Vals AI)49.7%52.3%Grok 4.7
Tax Agent Bench (Vals AI)Not measured35.8%Only Grok 4.7 measured
Legal Research Bench (Vals AI)31.3%47.1%Grok 4.7
Harvey's Legal Agent Benchmark (Vals AI)Not measured18.3%Only Grok 4.7 measured
Excel Modeling Benchmark (Vals AI)61.5%67.0%Grok 4.7
BioMysteryBench (Vals AI)Not measured69.3%Only Grok 4.7 measured
Terminal-Bench-Science (Vals AI)Not measured11.4%Only Grok 4.7 measured
Vals Science IndexNot measured35.3%Only Grok 4.7 measured
Robo-bench (Vals AI)Not measured0.8%Only Grok 4.7 measured
τ²-Bench Telecom99.1%Not measuredOnly GLM 5.2 measured
APEX-Agents45.2%70.0%Grok 4.7
PostTrainBench30.4%Not measuredOnly GLM 5.2 measured
Vending-Bench 2$8,314$10,537Grok 4.7
MCP Atlas77.8%Not measuredOnly GLM 5.2 measured
Toolathlon-Verified59.9%Not measuredOnly GLM 5.2 measured
τ³-Banking37.1%Not measuredOnly GLM 5.2 measured
Neither model has a result on the other 15 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index37
Reasoning benchmarks for GLM 5.2 and Grok 4.7
BenchmarkGLM 5.2Grok 4.7Leader
GPQA Diamond85.6%Not measuredOnly GLM 5.2 measured
LiveBench reasoningNot measured82.7%Only Grok 4.7 measured
MysteryMechanism (Vals AI)Not measured25.2%Only Grok 4.7 measured
GPQA Diamond (Artificial Analysis run)89.5%Not measuredOnly GLM 5.2 measured
Humanity's Last Exam (Artificial Analysis run)41.1%43.1%Grok 4.7
HLE-Diamond (Artificial Analysis run)17.7%23.2%Grok 4.7
CritPt v2, hard subset (Artificial Analysis run)Not measured33.5%Only Grok 4.7 measured
GPQA Diamond (Epoch AI run)91.9%92.7%Grok 4.7
ARC-AGI77.0%90.2%Grok 4.7
ARC-AGI-222.8%61.4%Grok 4.7
SimpleBench58.8%Not measuredOnly GLM 5.2 measured
Chess puzzles22.0%41.0%Grok 4.7
Mystery game puzzles19.0%29.0%Grok 4.7
EBR-bench9.5%Not measuredOnly GLM 5.2 measured
LMArena Text: hard prompts14811415GLM 5.2
LMArena Text: expert14881430GLM 5.2
LMArena Text: hard prompts in English14811421GLM 5.2
LMArena Vision: diagramsNot measured1257Only Grok 4.7 measured
LMArena Vision: homeworkNot measured1283Only Grok 4.7 measured
Kagi LLM Benchmark62.6%Not measuredOnly GLM 5.2 measured
Humanity's Last Exam (Scale run)Not measured21.7%Only Grok 4.7 measured
Neither model has a result on the other 5 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index52
Math benchmarks for GLM 5.2 and Grok 4.7
BenchmarkGLM 5.2Grok 4.7Leader
OTIS Mock AIME86.4%98.1%Grok 4.7
FrontierMath, tiers 1 to 359.2%53.0%GLM 5.2
FrontierMath, tier 429.3%17.1%GLM 5.2
ProofBench35.0%26.0%GLM 5.2
LMArena Text: math14851412GLM 5.2
LMArena Text: mathematical work14901434GLM 5.2
MathArena21.1%34.9%Grok 4.7
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index44
Knowledge benchmarks for GLM 5.2 and Grok 4.7
BenchmarkGLM 5.2Grok 4.7Leader
MMLU Pro86.7%Not measuredOnly GLM 5.2 measured
LegalBench (Vals AI)84.1%84.4%Grok 4.7
CorpFin (Vals AI)66.1%Not measuredOnly GLM 5.2 measured
TaxEval (Vals AI)73.3%Not measuredOnly GLM 5.2 measured
MedCode (Vals AI)40.8%49.5%Grok 4.7
AA-Omniscience0.631.2Grok 4.7
SimpleQA Verified34.2%56.0%Grok 4.7
GeoBenchNot measured61.0%Only Grok 4.7 measured
LMArena Text: science14891413GLM 5.2
LMArena Text: medicine and healthcare14761397GLM 5.2
LMArena Text: legal and government14901420GLM 5.2
LMArena Text: business and finance14501392GLM 5.2
FACTS Benchmark SuiteNot measured62.3%Only Grok 4.7 measured
PRBench FinanceNot measured47.2%Only Grok 4.7 measured
PRBench LegalNot measured47.2%Only Grok 4.7 measured
Neither model has a result on the other 6 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index43
Web design benchmarks for GLM 5.2 and Grok 4.7
BenchmarkGLM 5.2Grok 4.7Leader
Design Arena: websites13231293GLM 5.2
Design Arena: UI components12711274Grok 4.7
Design Arena: game dev12341288Grok 4.7
Design Arena: data viz12751218GLM 5.2
Design Arena: 3D12471234GLM 5.2
Design Arena: all code categories13281319GLM 5.2
Design Arena: SVG12451307Grok 4.7
Design Arena: ASCII art1174Not measuredOnly GLM 5.2 measured
LiveBench designNot measured75.0%Only Grok 4.7 measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index184
General benchmarks for GLM 5.2 and Grok 4.7
BenchmarkGLM 5.2Grok 4.7Leader
Vals IndexNot measured56.5%Only Grok 4.7 measured
LiveBench data analysisNot measured76.9%Only Grok 4.7 measured
Public Benefits Bench (Vals AI)Not measured65.6%Only Grok 4.7 measured
SAGE (Vals AI)Not measured88.7%Only Grok 4.7 measured
MedScribe (Vals AI)83.5%89.4%Grok 4.7
IFBench73.3%Not measuredOnly GLM 5.2 measured
Long context reasoning (AA-LCR)78.3%76.7%GLM 5.2
GDPval-AA13831719Grok 4.7
DTBench93.6%96.0%Grok 4.7
LMCA45.8%49.4%Grok 4.7
Surface Evolver Bench55.6%Not measuredOnly GLM 5.2 measured
Furniture assemblyNot measured20.8%Only Grok 4.7 measured
LMArena Text14701401GLM 5.2
LMArena Text: instruction following14671403GLM 5.2
LMArena Text: creative writing14601383GLM 5.2
LMArena VisionNot measured1230Only Grok 4.7 measured
LMArena Text: English14751409GLM 5.2
LMArena Text: non-English14581389GLM 5.2
LMArena Text: Chinese15231440GLM 5.2
LMArena Text: German14671380GLM 5.2
LMArena Text: Japanese14521371GLM 5.2
LMArena Text: Korean14301367GLM 5.2
LMArena Text: French14771428GLM 5.2
LMArena Text: Spanish14801398GLM 5.2
LMArena Text: Russian14661401GLM 5.2
LMArena Text: Polish14591408GLM 5.2
LMArena Text: multi-turn14701395GLM 5.2
LMArena Text: longer queries14791417GLM 5.2
LMArena Text: writing and language14621395GLM 5.2
LMArena Text: entertainment and media14481380GLM 5.2
LMArena Vision: EnglishNot measured1230Only Grok 4.7 measured
LMArena Vision: ChineseNot measured1279Only Grok 4.7 measured
LMArena Vision: reading textNot measured1242Only Grok 4.7 measured
LMArena Vision: humorNot measured1212Only Grok 4.7 measured
LMArena Vision: creative writingNot measured1203Only Grok 4.7 measured
EQ-Bench 41208Not measuredOnly GLM 5.2 measured
Neither model has a result on the other 13 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.7
BenchmarkGLM 5.2Grok 4.7Leader
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.7$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.7$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.7$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.7
SpecificationZ.ai GLM 5.2SpaceXSI Grok 4.7
MakerZ.aixAI
WeightsOpen weightsNo public weights listed
ReleasedJune 16, 2026September 21, 2026
Context window1.05M500K
Input $/Mtok$1.40$2.00
Output $/Mtok$4.40$6.00
Coding index59.760.8
Independent measurements behind it35
Cost per solved task$0.86Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5.2 better than Grok 4.7 for coding?

GLM 5.2 and Grok 4.7 are level for coding, 59.7 against 60.8 on the Vibe Coding Index, so price and context decide. 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). Pick Grok 4.7 for work measured by LMArena WebDev or Code migration (Vals AI), where it leads.

Which is cheaper, GLM 5.2 or Grok 4.7?

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

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

GLM 5.2, with 1.05M tokens against 500K.

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

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