GLM 5.2 vs GPT-5.2
GLM 5.2 leads GPT-5.2 on coding, 61.1 to 55.9 on the Vibe Coding Index, and GLM 5.2 costs 3.2x less per output token ($4.40 vs $14.00 per million). Updated October 22, 2026; 79 benchmarks have a result for both.
GLM 5.2 or GPT-5.2: which to pick
Pick GLM 5.2 for coding: it scores 61.1 on the Vibe Coding Index against 55.9 for GPT-5.2.
Pick GPT-5.2 for work measured by LiveCodeBench (Vals AI) or WeirdML, where it leads.
- Shared results
- 79
- GLM 5.2 only
- 19
- GPT-5.2 only
- 35
- 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.
Coding
Vibe Coding Index, six public coding benchmarks
GLM 5.2
GLM 5.2 scores 61.1 against 55.9.
4 and 3 benchmarks behind the scores
Intelligence
AA Intelligence Index
GLM 5.2
GLM 5.2 leads, 33.7 against 30.4.
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.2
GPT-5.2 leads, 91.7% against 85.6%.
Same board, both measured
Math
AIME
No call
Only GPT-5.2 has a AIME result, 96.9%.
Directional only
Knowledge
MMLU Pro
GLM 5.2
GLM 5.2 leads, 86.7% against 86.2%.
Same board, both measured
Web design
Design Arena: websites
GLM 5.2
GLM 5.2 leads, 1285 against 1195.
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.0036, GPT-5.2 $0.0088 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
GLM 5.2
GLM 5.2 $0.86, GPT-5.2 $1.91.
Published attempt cost and pass rate
At a glance
- Coding index
- GLM 5.2 61.1 from 4 benchmarks, GPT-5.2 55.9 from 3 benchmarks.
- Widest category
- Agentic work, 15.5 points apart on average over 7 shared benchmarks.
- Widest single gap
- ARC-AGI-2: GLM 5.2 22.8% against GPT-5.2 52.9%, 30.1 points apart on a 0 to 100 scale.
- Output price
- GLM 5.2 $4.40 against GPT-5.2 $14.00 per million output tokens, 3.2x apart.
- Context window
- GLM 5.2 takes 1.05M 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.2 | Bars | GPT-5.2 | Ties |
|---|---|---|---|---|
| Coding | 7 | 3 | ||
| Intelligence | 1 | 1 | ||
| Agentic work | 6 | 0 | 1 tie | |
| Reasoning | 6 | 8 | ||
| Math | 3 | 3 | ||
| Knowledge | 7 | 3 | ||
| Web design | 8 | 0 | ||
| General | 19 | 3 | ||
| All shared boards | 57 | 21 | 1 tie |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index73
| Benchmark | GLM 5.2 | 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 | 1604 | 1417 | GLM 5.2 |
| AA Coding Index | 68.8 | Not measured | Only GLM 5.2 measured |
| LiveCodeBench (Vals AI) | 69.5% | 85.4% | GPT-5.2 |
| SWE-bench Verified (Vals AI) | 82.8% | 75.8% | GLM 5.2 |
| Vibe Code Bench (Vals AI) | 64.0% | 53.5% | 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 | 89.4% | Only GPT-5.2 measured |
| SciCode | 51.2% | Not measured | Only GLM 5.2 measured |
| Terminal-Bench Hard (Artificial Analysis run) | 50.8% | 47.0% | GLM 5.2 |
| Terminal-Bench | Not measured | 64.9% | Only GPT-5.2 measured |
| FrontierCode | 24.5% | Not measured | Only GLM 5.2 measured |
| GSO-Bench | Not measured | 27.5% | Only GPT-5.2 measured |
| WeirdML | 70.1% | 72.2% | GPT-5.2 |
| ALE-Bench | 1047.0 | 1293.5 | GPT-5.2 |
| LMArena Text: coding | 1487 | 1442 | GLM 5.2 |
| LMArena Text: software and IT | 1486 | 1434 | GLM 5.2 |
| LMArena WebDev: React | 1617 | Not measured | Only GLM 5.2 measured |
| LMArena WebDev: HTML | 1565 | 1427 | GLM 5.2 |
| Neither model has a result on the other 16 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index11
| Benchmark | GLM 5.2 | GPT-5.2 | Leader |
|---|---|---|---|
| AA Intelligence Index | 33.7 | 30.4 | GLM 5.2 |
| Epoch Capabilities Index | 151.9 | 153.7 | GPT-5.2 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index60
| Benchmark | GLM 5.2 | GPT-5.2 | Leader |
|---|---|---|---|
| AA Agentic Index | 38.4 | Not measured | Only GLM 5.2 measured |
| Design Arena: agents building web apps | 1222 | 1086 | GLM 5.2 |
| Design Arena: agents building full-stack apps | 1241 | 1043 | GLM 5.2 |
| Design Arena: agents building mobile apps | 1159 | 1093 | GLM 5.2 |
| Design Arena: agents building Android apps | 1178 | 1059 | GLM 5.2 |
| Design Arena: agents building Godot games | 1142 | 1142 | Tie |
| Design Arena: agents building games | 1206 | Not measured | Only GLM 5.2 measured |
| Design Arena: HTML slides | 1125 | Not measured | Only GLM 5.2 measured |
| Design Arena: PowerPoint slides | 1170 | 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% | 84.8% | GLM 5.2 |
| APEX-Agents | 45.2% | Not measured | Only GLM 5.2 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 |
| PostTrainBench | 31.7% | Not measured | Only GLM 5.2 measured |
| Vending-Bench 2 | $8,314 | $3,591 | GLM 5.2 |
| Berkeley Function Calling Leaderboard (BFCL) | Not measured | 55.9% | Only GPT-5.2 measured |
| Neither model has a result on the other 19 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index68
| Benchmark | GLM 5.2 | GPT-5.2 | Leader |
|---|---|---|---|
| GPQA Diamond | 85.6% | 91.7% | GPT-5.2 |
| MMMU Pro (Vals AI) | Not measured | 86.7% | Only GPT-5.2 measured |
| GPQA Diamond (Artificial Analysis run) | 89.5% | 90.3% | GPT-5.2 |
| Humanity's Last Exam (Artificial Analysis run) | 41.1% | 37.7% | GLM 5.2 |
| GPQA Diamond (Epoch AI run) | 91.9% | 91.4% | GLM 5.2 |
| ARC-AGI | 77.0% | 86.2% | GPT-5.2 |
| ARC-AGI-2 | 22.8% | 52.9% | GPT-5.2 |
| SimpleBench | 58.8% | 45.8% | GLM 5.2 |
| Chess puzzles | 22.0% | 48.0% | GPT-5.2 |
| Mystery game puzzles | 19.0% | 23.0% | GPT-5.2 |
| EBR-bench | 9.5% | 23.0% | GPT-5.2 |
| VPCT | Not measured | 84.0% | Only GPT-5.2 measured |
| LMArena Text: hard prompts | 1481 | 1428 | GLM 5.2 |
| LMArena Text: expert | 1487 | 1445 | GLM 5.2 |
| LMArena Text: hard prompts in English | 1481 | 1431 | GLM 5.2 |
| LMArena Vision: diagrams | Not measured | 1265 | Only GPT-5.2 measured |
| LMArena Vision: homework | Not measured | 1276 | Only GPT-5.2 measured |
| Kagi LLM Benchmark | 62.6% | 73.3% | GPT-5.2 |
| 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.2 | GPT-5.2 | Leader |
|---|---|---|---|
| AIME | Not measured | 96.9% | Only GPT-5.2 measured |
| 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 | 86.4% | 96.1% | GPT-5.2 |
| FrontierMath, tiers 1 to 3 | 59.2% | 67.4% | GPT-5.2 |
| FrontierMath, tier 4 | 29.3% | 31.7% | GPT-5.2 |
| ProofBench | 35.0% | 15.0% | GLM 5.2 |
| LMArena Text: math | 1483 | 1440 | GLM 5.2 |
| LMArena Text: mathematical work | 1489 | 1442 | 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 index73
| Benchmark | GLM 5.2 | GPT-5.2 | Leader |
|---|---|---|---|
| MMLU Pro | 86.7% | 86.2% | GLM 5.2 |
| LegalBench (Vals AI) | 84.1% | 82.8% | GLM 5.2 |
| CaseLaw (Vals AI) | Not measured | 66.0% | Only GPT-5.2 measured |
| CorpFin (Vals AI) | 66.1% | 65.9% | GLM 5.2 |
| TaxEval (Vals AI) | 73.3% | 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) | 40.8% | 49.8% | GPT-5.2 |
| MMLU Pro (Artificial Analysis run) | Not measured | 87.4% | Only GPT-5.2 measured |
| SimpleQA Verified | 34.2% | 37.1% | GPT-5.2 |
| LMArena Text: science | 1489 | 1425 | GLM 5.2 |
| LMArena Text: medicine and healthcare | 1475 | 1425 | GLM 5.2 |
| LMArena Text: legal and government | 1486 | 1427 | GLM 5.2 |
| LMArena Text: business and finance | 1451 | 1414 | GLM 5.2 |
| FACTS Benchmark Suite | Not measured | 48.5% | Only GPT-5.2 measured |
| 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.2 | Leader |
|---|---|---|---|
| Design Arena: websites | 1285 | 1195 | GLM 5.2 |
| Design Arena: UI components | 1294 | 1190 | GLM 5.2 |
| Design Arena: game dev | 1268 | 1195 | GLM 5.2 |
| Design Arena: data viz | 1285 | 1202 | GLM 5.2 |
| Design Arena: 3D | 1287 | 1079 | GLM 5.2 |
| Design Arena: all code categories | 1287 | 1170 | GLM 5.2 |
| Design Arena: SVG | 1213 | 1139 | GLM 5.2 |
| Design Arena: ASCII art | 1191 | 1152 | 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.2 | Leader |
|---|---|---|---|
| SAGE (Vals AI) | Not measured | 49.3% | Only GPT-5.2 measured |
| MedScribe (Vals AI) | 83.5% | 84.4% | GPT-5.2 |
| IFBench | 73.3% | 75.4% | GPT-5.2 |
| Long context reasoning (AA-LCR) | 78.3% | 82.7% | GPT-5.2 |
| DTBench | 93.6% | 90.9% | GLM 5.2 |
| LMCA | 45.8% | 43.9% | GLM 5.2 |
| CL-bench | Not measured | 18.2% | Only GPT-5.2 measured |
| Surface Evolver Bench | 55.6% | Not measured | Only GLM 5.2 measured |
| Furniture assembly | Not measured | 38.3% | Only GPT-5.2 measured |
| LMArena Text | 1470 | 1416 | GLM 5.2 |
| LMArena Text: instruction following | 1466 | 1409 | GLM 5.2 |
| LMArena Text: creative writing | 1463 | 1376 | GLM 5.2 |
| LMArena Vision | Not measured | 1246 | Only GPT-5.2 measured |
| LMArena Text: English | 1475 | 1422 | GLM 5.2 |
| LMArena Text: non-English | 1459 | 1405 | GLM 5.2 |
| LMArena Text: Chinese | 1522 | 1447 | GLM 5.2 |
| LMArena Text: German | 1470 | 1444 | GLM 5.2 |
| LMArena Text: Japanese | 1450 | 1420 | GLM 5.2 |
| LMArena Text: Korean | 1440 | 1374 | GLM 5.2 |
| LMArena Text: French | 1479 | 1454 | GLM 5.2 |
| LMArena Text: Spanish | 1478 | 1413 | GLM 5.2 |
| LMArena Text: Russian | 1468 | 1415 | GLM 5.2 |
| LMArena Text: Polish | 1456 | 1426 | GLM 5.2 |
| LMArena Text: multi-turn | 1469 | 1419 | GLM 5.2 |
| LMArena Text: longer queries | 1480 | 1413 | GLM 5.2 |
| LMArena Text: writing and language | 1463 | 1392 | GLM 5.2 |
| LMArena Text: entertainment and media | 1450 | 1378 | GLM 5.2 |
| 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 11 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GLM 5.2 | 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.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.2 |
|---|---|---|
| Maker | Z.ai | OpenAI |
| Weights | Open weights | No public weights listed |
| Released | June 16, 2026 | December 10, 2025 |
| Context window | 1.05M | 400K |
| Input $/Mtok | $1.40 | $1.75 |
| Output $/Mtok | $4.40 | $14.00 |
| Coding index | 61.1 | 55.9 |
| Independent measurements behind it | 4 | 3 |
| Cost per solved task | $0.86 | $1.91 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GLM 5.2 better than GPT-5.2 for coding?
Pick GLM 5.2 for coding: it scores 61.1 on the Vibe Coding Index against 55.9 for GPT-5.2. Pick GPT-5.2 for work measured by LiveCodeBench (Vals AI) or WeirdML, where it leads.
Which is cheaper, GLM 5.2 or GPT-5.2?
GLM 5.2 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.2 costs $0.86 and GPT-5.2 $1.91.
Which has the bigger context window, GLM 5.2 or GPT-5.2?
GLM 5.2, with 1.05M tokens against 400K.
How many benchmarks is the GLM 5.2 vs GPT-5.2 comparison based on?
79 benchmarks have a result for both models as of October 22, 2026. GLM 5.2's coding index rests on 4 independent benchmarks and GPT-5.2's on 3. Where only one model has a result, the page says so instead of naming a winner.