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.
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.
Coding
Vibe Coding Index, four public coding benchmarks
GLM 5.2
GLM 5.2 scores 57.7 against 53.3.
1 and 2 benchmarks behind the scores
Intelligence
AA Intelligence Index
GLM 5.2
GLM 5.2 leads, 33.7 against 24.7.
Same board, both measured
Agentic work
AA Agentic Index
No call
Only GLM 5.2 has a AA Agentic Index result, 38.4.
Directional only
Reasoning
GPQA Diamond
GPT-5.1
GPT-5.1 leads, 86.6% against 85.6%.
Same board, both measured
Math
AIME
No call
Only GPT-5.1 has a AIME result, 93.3%.
Directional only
Knowledge
MMLU Pro
GLM 5.2
GLM 5.2 leads, 86.7% against 86.4%.
Same board, both measured
Web design
Design Arena: websites
GLM 5.2
GLM 5.2 leads, 1285 against 1187.
Same board, both measured
Long documents
Listed context window
GLM 5.2
GLM 5.2 takes 1.05M tokens against 400K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GLM 5.2
GLM 5.2 $0.0035, GPT-5.1 $0.0063 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
GLM 5.2
GLM 5.2 $0.86, GPT-5.1 $1.02.
Published attempt cost and pass rate
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.
| Category | GLM 5.2 | Bars | GPT-5.1 | Ties |
|---|---|---|---|---|
| Coding | 10 | 1 | ||
| Intelligence | 2 | 0 | ||
| Agentic work | 2 | 0 | ||
| Reasoning | 9 | 2 | 1 tie | |
| Math | 2 | 1 | ||
| Knowledge | 6 | 4 | ||
| Web design | 8 | 0 | ||
| General | 19 | 3 | ||
| All shared boards | 58 | 11 | 1 tie |
CodingLike-for-likeFour of these boards feed the Vibe Coding Index101
| Benchmark | GLM 5.2 | GPT-5.1 | Leader |
|---|---|---|---|
| SWE-bench Verified | Not measured | 66.0% | Only GPT-5.1 measured |
| LMArena WebDev | 1604 | 1396 | GLM 5.2 |
| AA Coding Index | 68.8 | 49.4 | GLM 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 measured | Only GLM 5.2 measured |
| ProgramBench (Vals AI) | 0.5% | Not measured | Only GLM 5.2 measured |
| Terminal-Bench 2.1 (Vals AI) | 67.8% | Not measured | Only GLM 5.2 measured |
| SkillsBench (Vals AI) | 45.1% | Not measured | Only GLM 5.2 measured |
| LiveCodeBench (Artificial Analysis run) | Not measured | 86.8% | Only GPT-5.1 measured |
| SciCode | 51.2% | Not measured | Only GLM 5.2 measured |
| Terminal-Bench Hard (Artificial Analysis run) | 50.8% | 45.5% | GLM 5.2 |
| Terminal-Bench | Not measured | 47.6% | Only GPT-5.1 measured |
| FrontierCode | 24.5% | Not measured | Only GLM 5.2 measured |
| GSO-Bench | Not measured | 13.7% | Only GPT-5.1 measured |
| WeirdML | 70.1% | 60.8% | GLM 5.2 |
| ALE-Bench | 1047.0 | Not measured | Only GLM 5.2 measured |
| LMArena Text: coding | 1487 | 1453 | GLM 5.2 |
| LMArena Text: software and IT | 1486 | 1454 | GLM 5.2 |
| LMArena WebDev: React | 1617 | 1307 | GLM 5.2 |
| LMArena WebDev: HTML | 1565 | 1405 | GLM 5.2 |
| LMArena WebDev: from an image | Not measured | 1421 | Only 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
| Benchmark | GLM 5.2 | GPT-5.1 | Leader |
|---|---|---|---|
| AA Intelligence Index | 33.7 | 24.7 | GLM 5.2 |
| Epoch Capabilities Index | 151.9 | 149.8 | GLM 5.2 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index20
| Benchmark | GLM 5.2 | GPT-5.1 | Leader |
|---|---|---|---|
| AA Agentic Index | 38.4 | Not measured | Only GLM 5.2 measured |
| Design Arena: agents building web apps | 1222 | Not measured | Only GLM 5.2 measured |
| Design Arena: agents building full-stack apps | 1241 | Not measured | Only GLM 5.2 measured |
| Design Arena: agents building mobile apps | 1160 | Not measured | Only GLM 5.2 measured |
| Design Arena: agents building Android apps | 1184 | Not measured | Only GLM 5.2 measured |
| Design Arena: agents building Godot games | 1142 | Not measured | Only GLM 5.2 measured |
| Design Arena: agents building games | 1206 | Not measured | Only GLM 5.2 measured |
| Design Arena: HTML slides | 1175 | Not measured | Only GLM 5.2 measured |
| Design Arena: PowerPoint slides | 1195 | Not measured | Only GLM 5.2 measured |
| SREBench (Vals AI) | 0.0% | Not measured | Only GLM 5.2 measured |
| Finance Agent (Vals AI) | 49.7% | Not measured | Only GLM 5.2 measured |
| Legal Research Bench (Vals AI) | 31.3% | Not measured | Only GLM 5.2 measured |
| Excel Modeling Benchmark (Vals AI) | 61.5% | Not measured | Only GLM 5.2 measured |
| τ²-Bench Telecom | 99.1% | 81.9% | GLM 5.2 |
| APEX-Agents | 45.2% | Not measured | Only GLM 5.2 measured |
| DeepResearch Bench | Not measured | 42.8% | Only GPT-5.1 measured |
| PostTrainBench | 31.7% | Not measured | Only GLM 5.2 measured |
| Vending-Bench 2 | $8,314 | $1,473 | GLM 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
| Benchmark | GLM 5.2 | GPT-5.1 | Leader |
|---|---|---|---|
| GPQA Diamond | 85.6% | 86.6% | GPT-5.1 |
| MMMU Pro (Vals AI) | Not measured | 83.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-AGI | 77.0% | 72.8% | GLM 5.2 |
| ARC-AGI-2 | 22.8% | 17.6% | GLM 5.2 |
| SimpleBench | 58.8% | 53.2% | GLM 5.2 |
| Chess puzzles | 22.0% | 42.0% | GPT-5.1 |
| Mystery game puzzles | 19.0% | 19.0% | Tie |
| EBR-bench | 9.5% | Not measured | Only GLM 5.2 measured |
| VPCT | Not measured | 58.7% | Only GPT-5.1 measured |
| LMArena Text: hard prompts | 1481 | 1457 | GLM 5.2 |
| LMArena Text: expert | 1487 | 1470 | GLM 5.2 |
| LMArena Text: hard prompts in English | 1481 | 1462 | GLM 5.2 |
| LMArena Vision: diagrams | Not measured | 1264 | Only GPT-5.1 measured |
| LMArena Vision: homework | Not measured | 1272 | Only 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
| Benchmark | GLM 5.2 | GPT-5.1 | Leader |
|---|---|---|---|
| AIME | Not measured | 93.3% | Only GPT-5.1 measured |
| MGSM (Vals AI) | Not measured | 93.0% | Only GPT-5.1 measured |
| AA Math Index | Not measured | 94.0 | Only GPT-5.1 measured |
| AIME 2025 (Artificial Analysis run) | Not measured | 94.0% | Only GPT-5.1 measured |
| OTIS Mock AIME | 86.4% | 88.6% | GPT-5.1 |
| FrontierMath, tiers 1 to 3 | 59.2% | Not measured | Only GLM 5.2 measured |
| FrontierMath, tier 4 | 29.3% | Not measured | Only GLM 5.2 measured |
| ProofBench | 35.0% | Not measured | Only GLM 5.2 measured |
| LMArena Text: math | 1483 | 1446 | GLM 5.2 |
| LMArena Text: mathematical work | 1489 | 1449 | GLM 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
| Benchmark | GLM 5.2 | GPT-5.1 | Leader |
|---|---|---|---|
| MMLU Pro | 86.7% | 86.4% | GLM 5.2 |
| LegalBench (Vals AI) | 84.1% | 85.7% | GPT-5.1 |
| CaseLaw (Vals AI) | Not measured | 73.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 measured | 61.4% | Only GPT-5.1 measured |
| MedQA (Vals AI) | Not measured | 96.4% | Only GPT-5.1 measured |
| MedCode (Vals AI) | 40.8% | 52.7% | GPT-5.1 |
| MMLU Pro (Artificial Analysis run) | Not measured | 87.0% | Only GPT-5.1 measured |
| SimpleQA Verified | 34.2% | 48.0% | GPT-5.1 |
| LMArena Text: science | 1489 | 1459 | GLM 5.2 |
| LMArena Text: medicine and healthcare | 1475 | 1456 | GLM 5.2 |
| LMArena Text: legal and government | 1486 | 1459 | GLM 5.2 |
| LMArena Text: business and finance | 1451 | 1431 | GLM 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
| Benchmark | GLM 5.2 | GPT-5.1 | Leader |
|---|---|---|---|
| Design Arena: websites | 1285 | 1187 | GLM 5.2 |
| Design Arena: UI components | 1296 | 1166 | GLM 5.2 |
| Design Arena: game dev | 1268 | 1179 | GLM 5.2 |
| Design Arena: data viz | 1285 | 1204 | GLM 5.2 |
| Design Arena: 3D | 1288 | 1061 | GLM 5.2 |
| Design Arena: all code categories | 1288 | 1171 | GLM 5.2 |
| Design Arena: SVG | 1214 | 1149 | GLM 5.2 |
| Design Arena: ASCII art | 1190 | 1118 | GLM 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
| Benchmark | GLM 5.2 | GPT-5.1 | Leader |
|---|---|---|---|
| SAGE (Vals AI) | Not measured | 43.2% | Only GPT-5.1 measured |
| MedScribe (Vals AI) | 83.5% | 88.1% | GPT-5.1 |
| IFBench | 73.3% | 72.9% | GLM 5.2 |
| Long context reasoning (AA-LCR) | 78.3% | 80.0% | GPT-5.1 |
| DTBench | 93.6% | 90.1% | GLM 5.2 |
| LMCA | 45.8% | 43.9% | GLM 5.2 |
| CL-bench | Not measured | 23.7% | Only GPT-5.1 measured |
| Surface Evolver Bench | 55.6% | Not measured | Only GLM 5.2 measured |
| CL-bench Life | Not measured | 17.3% | Only GPT-5.1 measured |
| LMArena Text | 1470 | 1443 | GLM 5.2 |
| LMArena Text: instruction following | 1466 | 1443 | GLM 5.2 |
| LMArena Text: creative writing | 1463 | 1427 | GLM 5.2 |
| LMArena Vision | Not measured | 1250 | Only GPT-5.1 measured |
| LMArena Text: English | 1475 | 1451 | GLM 5.2 |
| LMArena Text: non-English | 1459 | 1431 | GLM 5.2 |
| LMArena Text: Chinese | 1522 | 1495 | GLM 5.2 |
| LMArena Text: German | 1470 | 1438 | GLM 5.2 |
| LMArena Text: Japanese | 1450 | 1453 | GPT-5.1 |
| LMArena Text: Korean | 1440 | 1401 | GLM 5.2 |
| LMArena Text: French | 1479 | 1450 | GLM 5.2 |
| LMArena Text: Spanish | 1478 | 1433 | GLM 5.2 |
| LMArena Text: Russian | 1468 | 1435 | GLM 5.2 |
| LMArena Text: Polish | 1456 | 1440 | GLM 5.2 |
| LMArena Text: multi-turn | 1469 | 1450 | GLM 5.2 |
| LMArena Text: longer queries | 1480 | 1448 | GLM 5.2 |
| LMArena Text: writing and language | 1463 | 1428 | GLM 5.2 |
| LMArena Text: entertainment and media | 1450 | 1415 | GLM 5.2 |
| LMArena Vision: English | Not measured | 1252 | Only GPT-5.1 measured |
| LMArena Vision: Chinese | Not measured | 1270 | Only GPT-5.1 measured |
| LMArena Vision: reading text | Not measured | 1255 | Only GPT-5.1 measured |
| LMArena Vision: humor | Not measured | 1263 | Only GPT-5.1 measured |
| LMArena Vision: captioning | Not measured | 1252 | Only GPT-5.1 measured |
| LMArena Vision: recognizing things | Not measured | 1232 | Only GPT-5.1 measured |
| LMArena Vision: creative writing | Not measured | 1266 | Only GPT-5.1 measured |
| LMArena Document | Not measured | 1403 | Only 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
| Benchmark | GLM 5.2 | GPT-5.1 | Leader |
|---|---|---|---|
| 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 costs less
Repository review
50K input + 3K output tokens
GLM 5.2 costs less
Agent loop
200K input + 10K output tokens
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.
| Specification | Z.ai GLM 5.2 | OpenAI GPT-5.1 |
|---|---|---|
| Maker | Z.ai | OpenAI |
| Weights | Open weights | No public weights listed |
| Released | June 16, 2026 | November 13, 2025 |
| Context window | 1.05M | 400K |
| Input $/Mtok | $0.0341 | $1.25 |
| Output $/Mtok | $7.00 | $10.00 |
| Coding index | 57.7 | 53.3 |
| Independent measurements behind it | 1 | 2 |
| Cost per solved task | $0.86 | $1.02 |
| Source | OpenRouter listing | OpenRouter 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.