GLM 5.1 vs GPT-5.2
Updated October 21, 2026. 73 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.
Decision reading
Pick GPT-5.2 for coding: it scores 58.9 on the Vibe Coding Index against 44.0 for GLM 5.1.
Pick GLM 5.1 when output tokens cost 3.2x less, or when a solved task costs $0.60 against $1.91.
- Shared results
- 73
- GLM 5.1 only
- 16
- GPT-5.2 only
- 38
- 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
GPT-5.2
GPT-5.2 scores 58.9 against 44.0.
1 and 2 benchmarks behind the scores
Intelligence
AA Intelligence Index
GPT-5.2
GPT-5.2 leads, 30.4 against 26.1.
Same board, both measured
Agentic work
AA Agentic Index
No call
Only GLM 5.1 has a AA Agentic Index result, 23.9.
Directional only
Reasoning
GPQA Diamond
GPT-5.2
GPT-5.2 leads, 91.7% against 84.5%.
Same board, both measured
Math
AIME
GPT-5.2
GPT-5.2 leads, 96.9% against 91.9%.
Same board, both measured
Knowledge
MMLU Pro
GLM 5.1
GLM 5.1 leads, 86.9% against 86.2%.
Same board, both measured
Web design
Design Arena: websites
GLM 5.1
GLM 5.1 leads, 1290 against 1196.
Same board, both measured
Long documents
Listed context window
GPT-5.2
GPT-5.2 takes 400K tokens against 205K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GLM 5.1
GLM 5.1 $0.0036, GPT-5.2 $0.0088 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
GLM 5.1
GLM 5.1 $0.60, GPT-5.2 $1.91.
Published attempt cost and pass rate
At a glance
- Coding index
- GLM 5.1 44.0 from 1 benchmark, GPT-5.2 58.9 from 2 benchmarks.
- Widest category
- Web design, 13.7 points apart on average over 8 shared benchmarks.
- Widest single gap
- Design Arena: 3D: GLM 5.1 1336 against GPT-5.2 1079, 32.1 points apart on a 0 to 100 scale.
- Output price
- GLM 5.1 $4.40 against GPT-5.2 $14.00 per million output tokens, 3.2x apart.
- Context window
- GLM 5.1 takes 205K tokens, GPT-5.2 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.1 | Bars | GPT-5.2 | Ties |
|---|---|---|---|---|
| Coding | 5 | 5 | ||
| Intelligence | 0 | 2 | ||
| Agentic work | 6 | 1 | ||
| Reasoning | 4 | 5 | ||
| Math | 3 | 3 | ||
| Knowledge | 6 | 5 | ||
| Web design | 7 | 1 | ||
| General | 18 | 2 | ||
| All shared boards | 49 | 24 |
CodingLike-for-likeFour of these boards feed the Vibe Coding Index55
| Benchmark | GLM 5.1 | GPT-5.2 | Leader |
|---|---|---|---|
| SWE-bench Verified | Not measured | 72.8% | Only GPT-5.2 measured |
| SWE-bench Multilingual | Not measured | 66.7% | Only GPT-5.2 measured |
| LMArena WebDev | 1508 | 1417 | GLM 5.1 |
| AA Coding Index | 55.8 | Not measured | Only GLM 5.1 measured |
| LiveCodeBench (Vals AI) | 81.4% | 85.4% | GPT-5.2 |
| SWE-bench Verified (Vals AI) | 76.4% | 75.8% | GLM 5.1 |
| Vibe Code Bench (Vals AI) | 31.5% | 53.5% | GPT-5.2 |
| Code migration (Vals AI) | 25.8% | Not measured | Only GLM 5.1 measured |
| ProgramBench (Vals AI) | 0.0% | Not measured | Only GLM 5.1 measured |
| Terminal-Bench 2.1 (Vals AI) | 56.9% | Not measured | Only GLM 5.1 measured |
| LiveCodeBench (Artificial Analysis run) | Not measured | 89.4% | Only GPT-5.2 measured |
| SciCode | 44.8% | Not measured | Only GLM 5.1 measured |
| Terminal-Bench Hard (Artificial Analysis run) | 43.2% | 47.0% | GPT-5.2 |
| Terminal-Bench | Not measured | 64.9% | Only GPT-5.2 measured |
| GSO-Bench | Not measured | 27.5% | Only GPT-5.2 measured |
| WeirdML | 57.1% | 72.2% | GPT-5.2 |
| ALE-Bench | 887.1 | 1293.5 | GPT-5.2 |
| LMArena Text: coding | 1485 | 1442 | GLM 5.1 |
| LMArena Text: software and IT | 1484 | 1434 | GLM 5.1 |
| LMArena WebDev: React | 1505 | Not measured | Only GLM 5.1 measured |
| LMArena WebDev: HTML | 1508 | 1427 | GLM 5.1 |
| Neither model has a result on the other 17 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | GLM 5.1 | GPT-5.2 | Leader |
|---|---|---|---|
| AA Intelligence Index | 26.1 | 30.4 | GPT-5.2 |
| Epoch Capabilities Index | 149.8 | 153.7 | GPT-5.2 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index61
| Benchmark | GLM 5.1 | GPT-5.2 | Leader |
|---|---|---|---|
| AA Agentic Index | 23.9 | Not measured | Only GLM 5.1 measured |
| Design Arena: agents building web apps | 1175 | 1086 | GLM 5.1 |
| Design Arena: agents building full-stack apps | 1167 | 1043 | GLM 5.1 |
| Design Arena: agents building mobile apps | 1162 | 1094 | GLM 5.1 |
| Design Arena: agents building Android apps | 1186 | 1064 | GLM 5.1 |
| Design Arena: agents building Godot games | 1053 | 1142 | GPT-5.2 |
| Design Arena: agents building games | 1164 | Not measured | Only GLM 5.1 measured |
| Design Arena: HTML slides | 1170 | Not measured | Only GLM 5.1 measured |
| Design Arena: PowerPoint slides | 1189 | Not measured | Only GLM 5.1 measured |
| Design Arena: spreadsheets | 1315 | Not measured | Only GLM 5.1 measured |
| Finance Agent (Vals AI) | 44.8% | Not measured | Only GLM 5.1 measured |
| Legal Research Bench (Vals AI) | 27.9% | Not measured | Only GLM 5.1 measured |
| τ²-Bench Telecom | 97.7% | 84.8% | GLM 5.1 |
| APEX-Agents | 40.9% | Not measured | Only GLM 5.1 measured |
| METR time horizons | Not measured | 75.3% | Only GPT-5.2 measured |
| Remote Labor Index | Not measured | 2.5% | Only GPT-5.2 measured |
| GDPval | Not measured | 49.7% | Only GPT-5.2 measured |
| DeepResearch Bench | Not measured | 41.1% | Only GPT-5.2 measured |
| Vending-Bench 2 | $5,634 | $3,591 | GLM 5.1 |
| Neither model has a result on the other 20 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index45
| Benchmark | GLM 5.1 | GPT-5.2 | Leader |
|---|---|---|---|
| GPQA Diamond | 84.5% | 91.7% | GPT-5.2 |
| MMMU Pro (Vals AI) | Not measured | 86.7% | Only GPT-5.2 measured |
| GPQA Diamond (Artificial Analysis run) | 86.8% | 90.3% | GPT-5.2 |
| Humanity's Last Exam (Artificial Analysis run) | 30.1% | 37.7% | GPT-5.2 |
| GPQA Diamond (Epoch AI run) | 89.9% | 91.4% | GPT-5.2 |
| ARC-AGI | Not measured | 86.2% | Only GPT-5.2 measured |
| ARC-AGI-2 | Not measured | 52.9% | Only GPT-5.2 measured |
| SimpleBench | 55.1% | 45.8% | GLM 5.1 |
| Chess puzzles | 20.0% | 48.0% | GPT-5.2 |
| Mystery game puzzles | Not measured | 23.0% | Only GPT-5.2 measured |
| EBR-bench | Not measured | 23.0% | Only GPT-5.2 measured |
| VPCT | Not measured | 84.0% | Only GPT-5.2 measured |
| LMArena Text: hard prompts | 1473 | 1428 | GLM 5.1 |
| LMArena Text: expert | 1478 | 1445 | GLM 5.1 |
| LMArena Text: hard prompts in English | 1482 | 1431 | GLM 5.1 |
| LMArena Vision: diagrams | Not measured | 1265 | Only GPT-5.2 measured |
| LMArena Vision: homework | Not measured | 1276 | Only GPT-5.2 measured |
| Neither model has a result on the other 4 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index33
| Benchmark | GLM 5.1 | GPT-5.2 | Leader |
|---|---|---|---|
| AIME | 91.9% | 96.9% | GPT-5.2 |
| MGSM (Vals AI) | Not measured | 94.0% | Only GPT-5.2 measured |
| AA Math Index | Not measured | 99.0 | Only GPT-5.2 measured |
| AIME 2025 (Artificial Analysis run) | Not measured | 99.0% | Only GPT-5.2 measured |
| OTIS Mock AIME | 93.3% | 96.1% | GPT-5.2 |
| FrontierMath, tiers 1 to 3 | 36.8% | 67.4% | GPT-5.2 |
| FrontierMath, tier 4 | Not measured | 31.7% | Only GPT-5.2 measured |
| ProofBench | 22.2% | 15.0% | GLM 5.1 |
| LMArena Text: math | 1473 | 1440 | GLM 5.1 |
| LMArena Text: mathematical work | 1470 | 1442 | GLM 5.1 |
| Neither model has a result on the other 3 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index65
| Benchmark | GLM 5.1 | GPT-5.2 | Leader |
|---|---|---|---|
| MMLU Pro | 86.9% | 86.2% | GLM 5.1 |
| LegalBench (Vals AI) | 84.4% | 82.8% | GLM 5.1 |
| CaseLaw (Vals AI) | 51.5% | 66.0% | GPT-5.2 |
| CorpFin (Vals AI) | 64.5% | 65.9% | GPT-5.2 |
| TaxEval (Vals AI) | 71.2% | 75.8% | GPT-5.2 |
| MortgageTax (Vals AI) | Not measured | 67.1% | Only GPT-5.2 measured |
| MedQA (Vals AI) | Not measured | 94.1% | Only GPT-5.2 measured |
| MedCode (Vals AI) | 41.6% | 49.8% | GPT-5.2 |
| MMLU Pro (Artificial Analysis run) | Not measured | 87.4% | Only GPT-5.2 measured |
| SimpleQA Verified | 34.0% | 37.1% | GPT-5.2 |
| LMArena Text: science | 1478 | 1425 | GLM 5.1 |
| LMArena Text: medicine and healthcare | 1474 | 1425 | GLM 5.1 |
| LMArena Text: legal and government | 1465 | 1427 | GLM 5.1 |
| LMArena Text: business and finance | 1452 | 1414 | GLM 5.1 |
| Neither model has a result on the other 3 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index71
| Benchmark | GLM 5.1 | GPT-5.2 | Leader |
|---|---|---|---|
| Design Arena: websites | 1290 | 1196 | GLM 5.1 |
| Design Arena: UI components | 1292 | 1190 | GLM 5.1 |
| Design Arena: game dev | 1265 | 1196 | GLM 5.1 |
| Design Arena: data viz | 1366 | 1202 | GLM 5.1 |
| Design Arena: 3D | 1336 | 1079 | GLM 5.1 |
| Design Arena: all code categories | 1268 | 1171 | GLM 5.1 |
| Design Arena: SVG | 1217 | 1137 | GLM 5.1 |
| Design Arena: ASCII art | 1142 | 1153 | GPT-5.2 |
| Neither model has a result on the other 1 board here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index182
| Benchmark | GLM 5.1 | GPT-5.2 | Leader |
|---|---|---|---|
| Public Benefits Bench (Vals AI) | 61.8% | Not measured | Only GLM 5.1 measured |
| SAGE (Vals AI) | Not measured | 49.3% | Only GPT-5.2 measured |
| MedScribe (Vals AI) | 72.3% | 84.4% | GPT-5.2 |
| IFBench | 76.3% | 75.4% | GLM 5.1 |
| Long context reasoning (AA-LCR) | 73.7% | 82.7% | GPT-5.2 |
| DTBench | Not measured | 90.9% | Only GPT-5.2 measured |
| LMCA | Not measured | 43.9% | Only GPT-5.2 measured |
| CL-bench | Not measured | 18.2% | Only GPT-5.2 measured |
| Furniture assembly | Not measured | 38.3% | Only GPT-5.2 measured |
| ExploitBench | 18.1% | Not measured | Only GLM 5.1 measured |
| LMArena Text | 1463 | 1416 | GLM 5.1 |
| LMArena Text: instruction following | 1453 | 1409 | GLM 5.1 |
| LMArena Text: creative writing | 1453 | 1376 | GLM 5.1 |
| LMArena Vision | Not measured | 1246 | Only GPT-5.2 measured |
| LMArena Text: English | 1476 | 1422 | GLM 5.1 |
| LMArena Text: non-English | 1448 | 1405 | GLM 5.1 |
| LMArena Text: Chinese | 1515 | 1447 | GLM 5.1 |
| LMArena Text: German | 1467 | 1444 | GLM 5.1 |
| LMArena Text: Japanese | 1435 | 1420 | GLM 5.1 |
| LMArena Text: Korean | 1424 | 1374 | GLM 5.1 |
| LMArena Text: French | 1470 | 1454 | GLM 5.1 |
| LMArena Text: Spanish | 1468 | 1413 | GLM 5.1 |
| LMArena Text: Russian | 1454 | 1415 | GLM 5.1 |
| LMArena Text: Polish | 1449 | 1426 | GLM 5.1 |
| LMArena Text: multi-turn | 1473 | 1419 | GLM 5.1 |
| LMArena Text: longer queries | 1467 | 1413 | GLM 5.1 |
| LMArena Text: writing and language | 1454 | 1392 | GLM 5.1 |
| LMArena Text: entertainment and media | 1442 | 1378 | GLM 5.1 |
| LMArena Vision: English | Not measured | 1243 | Only GPT-5.2 measured |
| LMArena Vision: Chinese | Not measured | 1305 | Only GPT-5.2 measured |
| LMArena Vision: reading text | Not measured | 1257 | Only GPT-5.2 measured |
| LMArena Vision: humor | Not measured | 1227 | Only GPT-5.2 measured |
| LMArena Vision: captioning | Not measured | 1267 | Only GPT-5.2 measured |
| LMArena Vision: recognizing things | Not measured | 1232 | Only GPT-5.2 measured |
| LMArena Vision: creative writing | Not measured | 1225 | Only GPT-5.2 measured |
| LMArena Document | Not measured | 1405 | Only GPT-5.2 measured |
| Neither model has a result on the other 10 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GLM 5.1 | GPT-5.2 | 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.1 costs less
Repository review
50K input + 3K output tokens
GLM 5.1 costs less
Agent loop
200K input + 10K output tokens
GLM 5.1 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.1 | OpenAI GPT-5.2 |
|---|---|---|
| Maker | Z.ai | OpenAI |
| Weights | Open weights | No public weights listed |
| Released | April 7, 2026 | December 10, 2025 |
| Context window | 205K | 400K |
| Input $/Mtok | $1.40 | $1.75 |
| Output $/Mtok | $4.40 | $14.00 |
| Coding index | 44.0 | 58.9 |
| Independent measurements behind it | 1 | 2 |
| Cost per solved task | $0.60 | $1.91 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GLM 5.1 better than GPT-5.2 for coding?
Pick GPT-5.2 for coding: it scores 58.9 on the Vibe Coding Index against 44.0 for GLM 5.1. Pick GLM 5.1 when output tokens cost 3.2x less, or when a solved task costs $0.60 against $1.91.
Which is cheaper, GLM 5.1 or GPT-5.2?
GLM 5.1 costs $1.40 per million input tokens and $4.40 per million output tokens; GPT-5.2 costs $1.75 and $14.00. Per solved SWE-bench Verified task, GLM 5.1 costs $0.60 and GPT-5.2 $1.91.
Which has the bigger context window, GLM 5.1 or GPT-5.2?
GPT-5.2, with 400K tokens against 205K.
How many benchmarks is the GLM 5.1 vs GPT-5.2 comparison based on?
73 benchmarks have a result for both models as of October 21, 2026. GLM 5.1's coding index rests on 1 independent benchmark and GPT-5.2's on 2. Where only one model has a result, the page says so instead of naming a winner.