Enter opens the highlighted result. Esc closes.

GLM 5.2 vs GPT-5.1

GLM 5.2 leads GPT-5.1 on coding, 59.7 to 53.2 on the Vibe Coding Index, and GLM 5.2 costs 2.3x less per output token ($4.40 vs $10.00 per million). Updated December 6, 2026; 70 benchmarks have a result for both.

GLM 5.2Z.ai
Coding
59.7
Overall
65.2
Output $/M
$4.40
58
GPT-5.1OpenAI
Coding
53.2
Overall
62.9
Output $/M
$10.00
11
vs boards won of 70 shared, 1 tied

GLM 5.2 or GPT-5.1: which to pick

Pick GLM 5.2 for coding: it scores 59.7 on the Vibe Coding Index against 53.2 for GPT-5.1.

Pick GPT-5.1 for work measured by LiveCodeBench (Vals AI) or GPQA Diamond, where it leads.

Shared results
70
GLM 5.2 only
41
GPT-5.1 only
33
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, GPT-5.1 53.2 from 2 benchmarks.
Widest category
Agentic work, 29.2 points apart on average over 3 shared benchmarks.
Widest single gap
LMArena WebDev: React: GLM 5.2 1621 against GPT-5.1 1306, 48.9 points apart on a 0 to 100 scale.
Output price
GLM 5.2 $4.40 against GPT-5.1 $10.00 per million output tokens, 2.3x apart.
Context window
GLM 5.2 takes 1.05M tokens, GPT-5.1 400K.

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.2BarsGPT-5.1Ties
Coding81
Intelligence10
Agentic work30
Reasoning921 tie
Math31
Knowledge64
Web design80
General203
All shared boards58111 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index81
Coding benchmarks for GLM 5.2 and GPT-5.1
BenchmarkGLM 5.2GPT-5.1Leader
SWE-bench VerifiedNot measured66.0%Only GPT-5.1 measured
LMArena WebDev16081397GLM 5.2
LiveCodeBench (Vals AI)69.5%86.5%GPT-5.1
SWE-bench Verified (Vals AI)82.8%69.8%GLM 5.2
Code migration (Vals AI)37.9%Not measuredOnly GLM 5.2 measured
ProgramBench (Vals AI)0.5%Not measuredOnly GLM 5.2 measured
Terminal-Bench 2.1 (Vals AI)67.8%Not measuredOnly GLM 5.2 measured
SkillsBench (Vals AI)45.1%Not measuredOnly GLM 5.2 measured
LiveCodeBench (Artificial Analysis run)Not measured86.8%Only GPT-5.1 measured
SciCode51.2%Not measuredOnly GLM 5.2 measured
Terminal-Bench Hard (Artificial Analysis run)50.8%45.5%GLM 5.2
Terminal-Bench 4.0 (Artificial Analysis run)1.0%Not measuredOnly GLM 5.2 measured
Terminal-BenchNot measured47.6%Only GPT-5.1 measured
FrontierCode24.5%Not measuredOnly GLM 5.2 measured
GSO-BenchNot measured13.7%Only GPT-5.1 measured
WeirdML70.1%60.8%GLM 5.2
MirrorCode36.7%Not measuredOnly GLM 5.2 measured
ALE-Bench1047.0Not measuredOnly GLM 5.2 measured
LMArena Text: coding14881453GLM 5.2
LMArena Text: software and IT14871454GLM 5.2
LMArena WebDev: React16211306GLM 5.2
LMArena WebDev: HTML15671406GLM 5.2
LMArena WebDev: from an imageNot measured1419Only GPT-5.1 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.9Not measuredOnly GLM 5.2 measured
Terminal-Bench 2.0Not measured47.6%Only GPT-5.1 measured
Terminal-Bench 3.04.6%Not measuredOnly GLM 5.2 measured
ProgramBench0.0%Not measuredOnly GLM 5.2 measured
Neither model has a result on the other 22 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for GLM 5.2 and GPT-5.1
BenchmarkGLM 5.2GPT-5.1Leader
Epoch Capabilities Index153.0150.9GLM 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 index30
Agentic work benchmarks for GLM 5.2 and GPT-5.1
BenchmarkGLM 5.2GPT-5.1Leader
Design Arena: agents building web apps1184Not measuredOnly GLM 5.2 measured
Design Arena: agents building full-stack apps1288Not measuredOnly GLM 5.2 measured
Design Arena: agents building mobile apps1152Not measuredOnly GLM 5.2 measured
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: spreadsheets1123Not measuredOnly GLM 5.2 measured
SREBench (Vals AI)0.0%Not measuredOnly GLM 5.2 measured
Finance Agent (Vals AI)49.7%Not measuredOnly GLM 5.2 measured
Legal Research Bench (Vals AI)31.3%Not measuredOnly GLM 5.2 measured
Excel Modeling Benchmark (Vals AI)61.5%Not measuredOnly GLM 5.2 measured
τ²-Bench Telecom99.1%81.9%GLM 5.2
APEX-Agents45.2%Not measuredOnly GLM 5.2 measured
DeepResearch BenchNot measured42.8%Only GPT-5.1 measured
PostTrainBench30.4%Not measuredOnly GLM 5.2 measured
Vending-Bench 2$8,314$1,473GLM 5.2
LMArena SearchNot measured1199Only GPT-5.1 measured
MCP Atlas77.8%50.1%GLM 5.2
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 22 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index92
Reasoning benchmarks for GLM 5.2 and GPT-5.1
BenchmarkGLM 5.2GPT-5.1Leader
GPQA Diamond85.6%86.6%GPT-5.1
MMMU Pro (Vals AI)Not measured83.2%Only GPT-5.1 measured
GPQA Diamond (Artificial Analysis run)89.5%87.3%GLM 5.2
Humanity's Last Exam (Artificial Analysis run)41.1%28.5%GLM 5.2
HLE-Diamond (Artificial Analysis run)17.7%Not measuredOnly GLM 5.2 measured
GPQA Diamond (Epoch AI run)91.9%87.6%GLM 5.2
ARC-AGI77.0%72.8%GLM 5.2
ARC-AGI-222.8%17.6%GLM 5.2
SimpleBench58.8%53.2%GLM 5.2
Chess puzzles22.0%42.0%GPT-5.1
Mystery game puzzles19.0%19.0%Tie
EBR-bench9.5%Not measuredOnly GLM 5.2 measured
VPCTNot measured58.7%Only GPT-5.1 measured
LMArena Text: hard prompts14811457GLM 5.2
LMArena Text: expert14881469GLM 5.2
LMArena Text: hard prompts in English14811462GLM 5.2
LMArena Vision: diagramsNot measured1264Only GPT-5.1 measured
LMArena Vision: homeworkNot measured1274Only GPT-5.1 measured
Kagi LLM Benchmark62.6%Not measuredOnly GLM 5.2 measured
Neither model has a result on the other 7 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index31
Math benchmarks for GLM 5.2 and GPT-5.1
BenchmarkGLM 5.2GPT-5.1Leader
AIMENot measured93.3%Only GPT-5.1 measured
MGSM (Vals AI)Not measured93.0%Only GPT-5.1 measured
AIME 2025 (Artificial Analysis run)Not measured94.0%Only GPT-5.1 measured
OTIS Mock AIME86.4%88.6%GPT-5.1
FrontierMath, tiers 1 to 359.2%Not measuredOnly GLM 5.2 measured
FrontierMath, tier 429.3%Not measuredOnly GLM 5.2 measured
ProofBench35.0%Not measuredOnly GLM 5.2 measured
LMArena Text: math14851447GLM 5.2
LMArena Text: mathematical work14901450GLM 5.2
MathArena21.1%16.0%GLM 5.2
Neither model has a result on the other 4 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index64
Knowledge benchmarks for GLM 5.2 and GPT-5.1
BenchmarkGLM 5.2GPT-5.1Leader
MMLU Pro86.7%86.4%GLM 5.2
LegalBench (Vals AI)84.1%85.7%GPT-5.1
CaseLaw (Vals AI)Not measured73.4%Only GPT-5.1 measured
CorpFin (Vals AI)66.1%63.8%GLM 5.2
TaxEval (Vals AI)73.3%74.9%GPT-5.1
MortgageTax (Vals AI)Not measured61.4%Only GPT-5.1 measured
MedQA (Vals AI)Not measured96.4%Only GPT-5.1 measured
MedCode (Vals AI)40.8%52.7%GPT-5.1
MMLU Pro (Artificial Analysis run)Not measured87.0%Only GPT-5.1 measured
AA-Omniscience0.6Not measuredOnly GLM 5.2 measured
SimpleQA Verified34.2%48.0%GPT-5.1
LMArena Text: science14891459GLM 5.2
LMArena Text: medicine and healthcare14761456GLM 5.2
LMArena Text: legal and government14901459GLM 5.2
LMArena Text: business and finance14501431GLM 5.2
PRBench FinanceNot measured48.0%Only GPT-5.1 measured
PRBench LegalNot measured48.0%Only GPT-5.1 measured
Neither model has a result on the other 4 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index80
Web design benchmarks for GLM 5.2 and GPT-5.1
BenchmarkGLM 5.2GPT-5.1Leader
Design Arena: websites13231227GLM 5.2
Design Arena: UI components12711146GLM 5.2
Design Arena: game dev12341149GLM 5.2
Design Arena: data viz12751198GLM 5.2
Design Arena: 3D1247986GLM 5.2
Design Arena: all code categories13281210GLM 5.2
Design Arena: SVG12451190GLM 5.2
Design Arena: ASCII art11741096GLM 5.2
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index203
General benchmarks for GLM 5.2 and GPT-5.1
BenchmarkGLM 5.2GPT-5.1Leader
MedScribe (Vals AI)83.5%88.1%GPT-5.1
IFBench73.3%72.9%GLM 5.2
Long context reasoning (AA-LCR)78.3%80.0%GPT-5.1
GDPval-AA1383837GLM 5.2
DTBench93.6%90.1%GLM 5.2
LMCA45.8%43.9%GLM 5.2
CL-benchNot measured23.7%Only GPT-5.1 measured
Surface Evolver Bench55.6%Not measuredOnly GLM 5.2 measured
CL-bench LifeNot measured17.3%Only GPT-5.1 measured
LMArena Text14701442GLM 5.2
LMArena Text: instruction following14671442GLM 5.2
LMArena Text: creative writing14601427GLM 5.2
LMArena VisionNot measured1249Only GPT-5.1 measured
LMArena Text: English14751451GLM 5.2
LMArena Text: non-English14581431GLM 5.2
LMArena Text: Chinese15231495GLM 5.2
LMArena Text: German14671438GLM 5.2
LMArena Text: Japanese14521455GPT-5.1
LMArena Text: Korean14301400GLM 5.2
LMArena Text: French14771450GLM 5.2
LMArena Text: Spanish14801432GLM 5.2
LMArena Text: Russian14661435GLM 5.2
LMArena Text: Polish14591440GLM 5.2
LMArena Text: multi-turn14701450GLM 5.2
LMArena Text: longer queries14791447GLM 5.2
LMArena Text: writing and language14621428GLM 5.2
LMArena Text: entertainment and media14481414GLM 5.2
LMArena Vision: EnglishNot measured1251Only GPT-5.1 measured
LMArena Vision: ChineseNot measured1271Only GPT-5.1 measured
LMArena Vision: reading textNot measured1254Only GPT-5.1 measured
LMArena Vision: humorNot measured1264Only GPT-5.1 measured
LMArena Vision: captioningNot measured1252Only GPT-5.1 measured
LMArena Vision: recognizing thingsNot measured1232Only GPT-5.1 measured
LMArena Vision: creative writingNot measured1267Only GPT-5.1 measured
LMArena DocumentNot measured1403Only GPT-5.1 measured
MultiChallengeNot measured63.4%Only GPT-5.1 measured
EQ-Bench 41208Not measuredOnly GLM 5.2 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 GPT-5.1
BenchmarkGLM 5.2GPT-5.1Leader
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
GPT-5.1$0.0063Fits in one request

GLM 5.2 costs less

Repository review

50K input + 3K output tokens

GLM 5.2$0.083Fits in one request
GPT-5.1$0.092Fits in one request

GLM 5.2 costs less

Agent loop

200K input + 10K output tokens

GLM 5.2$0.324Fits in one request
GPT-5.1$0.350Fits 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 GPT-5.1
SpecificationZ.ai GLM 5.2OpenAI GPT-5.1
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedJune 16, 2026November 13, 2025
Context window1.05M400K
Input $/Mtok$1.40$1.25
Output $/Mtok$4.40$10.00
Coding index59.753.2
Independent measurements behind it32
Cost per solved task$0.86$1.02
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5.2 better than GPT-5.1 for coding?

Pick GLM 5.2 for coding: it scores 59.7 on the Vibe Coding Index against 53.2 for GPT-5.1. Pick GPT-5.1 for work measured by LiveCodeBench (Vals AI) or GPQA Diamond, where it leads.

Which is cheaper, GLM 5.2 or GPT-5.1?

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

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

GLM 5.2, with 1.05M tokens against 400K.

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

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