Enter opens the highlighted result. Esc closes.

GLM 5.1 vs GLM 5.2

GLM 5.1 leads GLM 5.2 on coding, 63.4 to 59.7 on the Vibe Coding Index, at about the same output price ($4.40 vs $4.40 per million). Updated December 6, 2026; 85 benchmarks have a result for both.

GLM 5.1Z.ai
Coding
63.4
Overall
65.9
Output $/M
$4.40
18
GLM 5.2Z.ai
Coding
59.7
Overall
65.2
Output $/M
$4.40
67
vs boards won of 85 shared

GLM 5.1 or GLM 5.2: which to pick

Pick GLM 5.1 for coding: it scores 63.4 on the Vibe Coding Index against 59.7 for GLM 5.2, though on 2 benchmarks against 3.

Pick GLM 5.2 for a larger context window (1.05M against 205K tokens) and work measured by LMArena WebDev or SWE-bench Verified (Vals AI), where it leads.

Shared results
85
GLM 5.1 only
5
GLM 5.2 only
26
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.1 63.4 from 2 benchmarks, GLM 5.2 59.7 from 3 benchmarks.
Widest category
Math, 8.3 points apart on average over 6 shared benchmarks.
Widest single gap
Design Arena: spreadsheets: GLM 5.1 1315 against GLM 5.2 1123, 24.0 points apart on a 0 to 100 scale.
Output price
Both cost $4.40 per million output tokens.
Context window
GLM 5.1 takes 205K tokens, GLM 5.2 1.05M.

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.1BarsGLM 5.2Ties
Coding213
Intelligence01
Agentic work213
Reasoning18
Math15
Knowledge46
Web design53
General318
All shared boards1867
CodingLike-for-likeSix of these boards feed the Vibe Coding Index213
Coding benchmarks for GLM 5.1 and GLM 5.2
BenchmarkGLM 5.1GLM 5.2Leader
LMArena WebDev15081608GLM 5.2
LiveCodeBench (Vals AI)81.4%69.5%GLM 5.1
SWE-bench Verified (Vals AI)76.4%82.8%GLM 5.2
Code migration (Vals AI)25.8%37.9%GLM 5.2
ProgramBench (Vals AI)0.0%0.5%GLM 5.2
Terminal-Bench 2.1 (Vals AI)56.9%67.8%GLM 5.2
SkillsBench (Vals AI)Not measured45.1%Only GLM 5.2 measured
SciCode44.8%51.2%GLM 5.2
Terminal-Bench Hard (Artificial Analysis run)43.2%50.8%GLM 5.2
Terminal-Bench 4.0 (Artificial Analysis run)2.0%1.0%GLM 5.1
FrontierCodeNot measured24.5%Only GLM 5.2 measured
WeirdML57.1%70.1%GLM 5.2
MirrorCodeNot measured36.7%Only GLM 5.2 measured
ALE-Bench887.11047.0GLM 5.2
LMArena Text: coding14851488GLM 5.2
LMArena Text: software and IT14831487GLM 5.2
LMArena WebDev: React15041621GLM 5.2
LMArena WebDev: HTML15121567GLM 5.2
SWE Atlas: Codebase QnANot measured48.1%Only GLM 5.2 measured
SWE Atlas: RefactoringNot measured42.4%Only GLM 5.2 measured
SWE Atlas: Test WritingNot measured41.5%Only GLM 5.2 measured
GameBench 2Not measured49.9Only GLM 5.2 measured
Terminal-Bench 2.158.7%Not measuredOnly GLM 5.1 measured
Terminal-Bench 3.0Not measured4.6%Only GLM 5.2 measured
ProgramBenchNot measured0.0%Only GLM 5.2 measured
Neither model has a result on the other 27 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for GLM 5.1 and GLM 5.2
BenchmarkGLM 5.1GLM 5.2Leader
Epoch Capabilities Index150.6153.0GLM 5.2
Neither model has a result on the other 1 board here
Agentic workLike-for-likePublic boards, shown as published, kept out of the index213
Agentic work benchmarks for GLM 5.1 and GLM 5.2
BenchmarkGLM 5.1GLM 5.2Leader
Design Arena: agents building web apps11381184GLM 5.2
Design Arena: agents building full-stack apps12131288GLM 5.2
Design Arena: agents building mobile apps11511152GLM 5.2
Design Arena: agents building Android apps11641162GLM 5.1
Design Arena: agents building Godot games10231142GLM 5.2
Design Arena: agents building games11091156GLM 5.2
Design Arena: HTML slides10731077GLM 5.2
Design Arena: PowerPoint slides11541157GLM 5.2
Design Arena: spreadsheets13151123GLM 5.1
SREBench (Vals AI)Not measured0.0%Only GLM 5.2 measured
Finance Agent (Vals AI)44.8%49.7%GLM 5.2
Legal Research Bench (Vals AI)27.9%31.3%GLM 5.2
Excel Modeling Benchmark (Vals AI)Not measured61.5%Only GLM 5.2 measured
τ²-Bench Telecom97.7%99.1%GLM 5.2
APEX-Agents40.9%45.2%GLM 5.2
PostTrainBenchNot measured30.4%Only GLM 5.2 measured
Vending-Bench 2$5,634$8,314GLM 5.2
MCP Atlas75.6%77.8%GLM 5.2
Toolathlon-VerifiedNot measured59.9%Only GLM 5.2 measured
τ³-BankingNot measured37.1%Only GLM 5.2 measured
Neither model has a result on the other 24 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index18
Reasoning benchmarks for GLM 5.1 and GLM 5.2
BenchmarkGLM 5.1GLM 5.2Leader
GPQA Diamond84.5%85.6%GLM 5.2
GPQA Diamond (Artificial Analysis run)86.8%89.5%GLM 5.2
Humanity's Last Exam (Artificial Analysis run)30.1%41.1%GLM 5.2
HLE-Diamond (Artificial Analysis run)Not measured17.7%Only GLM 5.2 measured
GPQA Diamond (Epoch AI run)89.9%91.9%GLM 5.2
ARC-AGINot measured77.0%Only GLM 5.2 measured
ARC-AGI-2Not measured22.8%Only GLM 5.2 measured
SimpleBench55.1%58.8%GLM 5.2
Chess puzzles20.0%22.0%GLM 5.2
Mystery game puzzlesNot measured19.0%Only GLM 5.2 measured
EBR-benchNot measured9.5%Only GLM 5.2 measured
LMArena Text: hard prompts14721481GLM 5.2
LMArena Text: expert14771488GLM 5.2
LMArena Text: hard prompts in English14821481GLM 5.1
Kagi LLM BenchmarkNot measured62.6%Only GLM 5.2 measured
Neither model has a result on the other 11 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index15
Math benchmarks for GLM 5.1 and GLM 5.2
BenchmarkGLM 5.1GLM 5.2Leader
AIME91.9%Not measuredOnly GLM 5.1 measured
OTIS Mock AIME93.3%86.4%GLM 5.1
FrontierMath, tiers 1 to 336.8%59.2%GLM 5.2
FrontierMath, tier 4Not measured29.3%Only GLM 5.2 measured
ProofBench22.2%35.0%GLM 5.2
LMArena Text: math14721485GLM 5.2
LMArena Text: mathematical work14711490GLM 5.2
MathArena18.4%21.1%GLM 5.2
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index46
Knowledge benchmarks for GLM 5.1 and GLM 5.2
BenchmarkGLM 5.1GLM 5.2Leader
MMLU Pro86.9%86.7%GLM 5.1
LegalBench (Vals AI)84.4%84.1%GLM 5.1
CaseLaw (Vals AI)51.5%Not measuredOnly GLM 5.1 measured
CorpFin (Vals AI)64.5%66.1%GLM 5.2
TaxEval (Vals AI)71.2%73.3%GLM 5.2
MedCode (Vals AI)41.6%40.8%GLM 5.1
AA-OmniscienceNot measured0.6Only GLM 5.2 measured
SimpleQA Verified34.0%34.2%GLM 5.2
LMArena Text: science14791489GLM 5.2
LMArena Text: medicine and healthcare14741476GLM 5.2
LMArena Text: legal and government14661490GLM 5.2
LMArena Text: business and finance14541450GLM 5.1
Neither model has a result on the other 9 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index53
Web design benchmarks for GLM 5.1 and GLM 5.2
BenchmarkGLM 5.1GLM 5.2Leader
Design Arena: websites13091323GLM 5.2
Design Arena: UI components12921271GLM 5.1
Design Arena: game dev12361234GLM 5.1
Design Arena: data viz13661275GLM 5.1
Design Arena: 3D13361247GLM 5.1
Design Arena: all code categories13131328GLM 5.2
Design Arena: SVG12581245GLM 5.1
Design Arena: ASCII art11221174GLM 5.2
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index318
General benchmarks for GLM 5.1 and GLM 5.2
BenchmarkGLM 5.1GLM 5.2Leader
Public Benefits Bench (Vals AI)61.8%Not measuredOnly GLM 5.1 measured
MedScribe (Vals AI)72.3%83.5%GLM 5.2
IFBench76.3%73.3%GLM 5.1
Long context reasoning (AA-LCR)73.7%78.3%GLM 5.2
GDPval-AA11281383GLM 5.2
DTBenchNot measured93.6%Only GLM 5.2 measured
LMCANot measured45.8%Only GLM 5.2 measured
Surface Evolver BenchNot measured55.6%Only GLM 5.2 measured
ExploitBench18.1%Not measuredOnly GLM 5.1 measured
LMArena Text14621470GLM 5.2
LMArena Text: instruction following14521467GLM 5.2
LMArena Text: creative writing14531460GLM 5.2
LMArena Text: English14751475GLM 5.1
LMArena Text: non-English14481458GLM 5.2
LMArena Text: Chinese15171523GLM 5.2
LMArena Text: German14671467GLM 5.2
LMArena Text: Japanese14391452GLM 5.2
LMArena Text: Korean14251430GLM 5.2
LMArena Text: French14701477GLM 5.2
LMArena Text: Spanish14701480GLM 5.2
LMArena Text: Russian14541466GLM 5.2
LMArena Text: Polish14521459GLM 5.2
LMArena Text: multi-turn14721470GLM 5.1
LMArena Text: longer queries14671479GLM 5.2
LMArena Text: writing and language14541462GLM 5.2
LMArena Text: entertainment and media14431448GLM 5.2
EQ-Bench 4Not measured1208Only GLM 5.2 measured
Neither model has a result on the other 22 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GLM 5.1 and GLM 5.2
BenchmarkGLM 5.1GLM 5.2Leader
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.1$0.0036Fits in one request
GLM 5.2$0.0036Fits in one request

Same cost

Repository review

50K input + 3K output tokens

GLM 5.1$0.083Fits in one request
GLM 5.2$0.083Fits in one request

Same cost

Agent loop

200K input + 10K output tokens

GLM 5.1$0.324Exceeds the context window
GLM 5.2$0.324Fits in one request

Same cost

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.1 and GLM 5.2
SpecificationZ.ai GLM 5.1Z.ai GLM 5.2
MakerZ.aiZ.ai
WeightsOpen weightsOpen weights
ReleasedApril 7, 2026June 16, 2026
Context window205K1.05M
Input $/Mtok$1.40$1.40
Output $/Mtok$4.40$4.40
Coding index63.459.7
Independent measurements behind it23
Cost per solved task$0.60$0.86
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5.1 better than GLM 5.2 for coding?

Pick GLM 5.1 for coding: it scores 63.4 on the Vibe Coding Index against 59.7 for GLM 5.2, though on 2 benchmarks against 3. Pick GLM 5.2 for a larger context window (1.05M against 205K tokens) and work measured by LMArena WebDev or SWE-bench Verified (Vals AI), where it leads.

Which is cheaper, GLM 5.1 or GLM 5.2?

GLM 5.1 costs $1.40 per million input tokens and $4.40 per million output tokens; GLM 5.2 costs $1.40 and $4.40. Per solved SWE-bench Verified task, GLM 5.1 costs $0.60 and GLM 5.2 $0.86.

Which has the bigger context window, GLM 5.1 or GLM 5.2?

GLM 5.2, with 1.05M tokens against 205K.

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

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