Enter opens the highlighted result. Esc closes.

GLM 5.2 vs GPT-5.1

Updated October 21, 2026. 70 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

GLM 5.2Z.ai
Coding
57.7
Overall
33.7
Output $/M
$7.00
58
GPT-5.1OpenAI
Coding
53.3
Overall
24.7
Output $/M
$10.00
11
vs boards won of 70 shared, 1 tied

Decision reading

Pick GLM 5.2 for coding: it scores 57.7 on the Vibe Coding Index against 53.3 for GPT-5.1, though on 1 benchmark against 2.

Pick GPT-5.1 when what matters is LiveCodeBench (Vals AI) or GPQA Diamond, where it leads.

Shared results
70
GLM 5.2 only
27
GPT-5.1 only
30
Like-for-like categories
8 of 9

Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.

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 57.7 from 1 benchmark, GPT-5.1 53.3 from 2 benchmarks.
Widest category
Agentic work, 30.0 points apart on average over 2 shared benchmarks.
Widest single gap
LMArena WebDev: React: GLM 5.2 1617 against GPT-5.1 1307, 48.9 points apart on a 0 to 100 scale.
Output price
GLM 5.2 $7.00 against GPT-5.1 $10.00 per million output tokens, 1.4x 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
Coding101
Intelligence20
Agentic work20
Reasoning921 tie
Math21
Knowledge64
Web design80
General193
All shared boards58111 tie
CodingLike-for-likeFour of these boards feed the Vibe Coding Index101
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 WebDev16041396GLM 5.2
AA Coding Index68.849.4GLM 5.2
LiveCodeBench (Vals AI)69.5%86.5%GPT-5.1
SWE-bench Verified (Vals AI)82.8%69.8%GLM 5.2
Vibe Code Bench (Vals AI)64.0%24.6%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-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
ALE-Bench1047.0Not measuredOnly GLM 5.2 measured
LMArena Text: coding14871453GLM 5.2
LMArena Text: software and IT14861454GLM 5.2
LMArena WebDev: React16171307GLM 5.2
LMArena WebDev: HTML15651405GLM 5.2
LMArena WebDev: from an imageNot measured1421Only GPT-5.1 measured
Neither model has a result on the other 15 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GLM 5.2 and GPT-5.1
BenchmarkGLM 5.2GPT-5.1Leader
AA Intelligence Index33.724.7GLM 5.2
Epoch Capabilities Index151.9149.8GLM 5.2
Agentic workLike-for-likePublic boards, shown as published, kept out of the index20
Agentic work benchmarks for GLM 5.2 and GPT-5.1
BenchmarkGLM 5.2GPT-5.1Leader
AA Agentic Index38.4Not measuredOnly GLM 5.2 measured
Design Arena: agents building web apps1222Not measuredOnly GLM 5.2 measured
Design Arena: agents building full-stack apps1241Not measuredOnly GLM 5.2 measured
Design Arena: agents building mobile apps1160Not measuredOnly GLM 5.2 measured
Design Arena: agents building Android apps1184Not measuredOnly GLM 5.2 measured
Design Arena: agents building Godot games1142Not measuredOnly GLM 5.2 measured
Design Arena: agents building games1206Not measuredOnly GLM 5.2 measured
Design Arena: HTML slides1175Not measuredOnly GLM 5.2 measured
Design Arena: PowerPoint slides1195Not 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
PostTrainBench31.7%Not measuredOnly GLM 5.2 measured
Vending-Bench 2$8,314$1,473GLM 5.2
Neither model has a result on the other 21 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
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: expert14871470GLM 5.2
LMArena Text: hard prompts in English14811462GLM 5.2
LMArena Vision: diagramsNot measured1264Only GPT-5.1 measured
LMArena Vision: homeworkNot measured1272Only GPT-5.1 measured
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index21
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
AA Math IndexNot measured94.0Only 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: math14831446GLM 5.2
LMArena Text: mathematical work14891449GLM 5.2
Neither model has a result on the other 3 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
SimpleQA Verified34.2%48.0%GPT-5.1
LMArena Text: science14891459GLM 5.2
LMArena Text: medicine and healthcare14751456GLM 5.2
LMArena Text: legal and government14861459GLM 5.2
LMArena Text: business and finance14511431GLM 5.2
Neither model has a result on the other 3 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: websites12851187GLM 5.2
Design Arena: UI components12961166GLM 5.2
Design Arena: game dev12681179GLM 5.2
Design Arena: data viz12851204GLM 5.2
Design Arena: 3D12881061GLM 5.2
Design Arena: all code categories12881171GLM 5.2
Design Arena: SVG12141149GLM 5.2
Design Arena: ASCII art11901118GLM 5.2
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index193
General benchmarks for GLM 5.2 and GPT-5.1
BenchmarkGLM 5.2GPT-5.1Leader
SAGE (Vals AI)Not measured43.2%Only GPT-5.1 measured
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
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 Text14701443GLM 5.2
LMArena Text: instruction following14661443GLM 5.2
LMArena Text: creative writing14631427GLM 5.2
LMArena VisionNot measured1250Only GPT-5.1 measured
LMArena Text: English14751451GLM 5.2
LMArena Text: non-English14591431GLM 5.2
LMArena Text: Chinese15221495GLM 5.2
LMArena Text: German14701438GLM 5.2
LMArena Text: Japanese14501453GPT-5.1
LMArena Text: Korean14401401GLM 5.2
LMArena Text: French14791450GLM 5.2
LMArena Text: Spanish14781433GLM 5.2
LMArena Text: Russian14681435GLM 5.2
LMArena Text: Polish14561440GLM 5.2
LMArena Text: multi-turn14691450GLM 5.2
LMArena Text: longer queries14801448GLM 5.2
LMArena Text: writing and language14631428GLM 5.2
LMArena Text: entertainment and media14501415GLM 5.2
LMArena Vision: EnglishNot measured1252Only GPT-5.1 measured
LMArena Vision: ChineseNot measured1270Only GPT-5.1 measured
LMArena Vision: reading textNot measured1255Only GPT-5.1 measured
LMArena Vision: humorNot measured1263Only 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 measured1266Only GPT-5.1 measured
LMArena DocumentNot measured1403Only GPT-5.1 measured
Neither model has a result on the other 11 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.0035Fits 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.023Fits 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.077Fits 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$0.0341$1.25
Output $/Mtok$7.00$10.00
Coding index57.753.3
Independent measurements behind it12
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 57.7 on the Vibe Coding Index against 53.3 for GPT-5.1, though on 1 benchmark against 2. Pick GPT-5.1 when what matters is LiveCodeBench (Vals AI) or GPQA Diamond, where it leads.

Which is cheaper, GLM 5.2 or GPT-5.1?

GLM 5.2 costs $0.0341 per million input tokens and $7.00 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 October 21, 2026. GLM 5.2's coding index rests on 1 independent benchmark 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