GLM 4.7 vs GPT-5.1
GLM 4.7 leads GPT-5.1 on coding, 55.1 to 53.2 on the Vibe Coding Index, and GLM 4.7 costs 4.5x less per output token ($2.20 vs $10.00 per million). Updated December 6, 2026; 74 benchmarks have a result for both.
GLM 4.7 or GPT-5.1: which to pick
GLM 4.7 and GPT-5.1 are level for coding, 55.1 against 53.2 on the Vibe Coding Index, so price and context decide.
Pick GPT-5.1 for a larger context window (400K against 203K tokens) and work measured by LiveCodeBench (Vals AI) or SWE-bench Verified (Vals AI), where it leads. Pick GLM 4.7 for output tokens 4.5x cheaper ($2.20 vs $10.00 per million) and a lower cost per solved task ($0.29 against $1.02).
- Shared results
- 74
- GLM 4.7 only
- 7
- GPT-5.1 only
- 29
- 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
No call
Level: 55.1 against 53.2, inside 2 points.
2 benchmarks behind each score
Reasoning
GPQA Diamond
GPT-5.1
GPT-5.1 leads, 86.6% against 80.0%.
Same board, both measured
Math
AIME
No call
Tied at 93.3%.
Same board, both measured
Knowledge
MMLU Pro
GPT-5.1
GPT-5.1 leads, 86.4% against 82.7%.
Same board, both measured
Web design
Design Arena: websites
GLM 4.7
GLM 4.7 leads, 1266 against 1227.
Same board, both measured
Long documents
Listed context window
GPT-5.1
GPT-5.1 takes 400K tokens against 203K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GLM 4.7
GLM 4.7 $0.0017, GPT-5.1 $0.0063 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
GLM 4.7
GLM 4.7 $0.29, GPT-5.1 $1.02.
Published attempt cost and pass rate
At a glance
- Coding index
- GLM 4.7 55.1 from 2 benchmarks, GPT-5.1 53.2 from 2 benchmarks.
- Widest category
- Intelligence, 9.4 points apart on average over 1 shared benchmark.
- Widest single gap
- Chess puzzles: GLM 4.7 21.0% against GPT-5.1 42.0%, 21.0 points apart on a 0 to 100 scale.
- Output price
- GLM 4.7 $2.20 against GPT-5.1 $10.00 per million output tokens, 4.5x apart.
- Context window
- GLM 4.7 takes 203K 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 4.7 | Bars | GPT-5.1 | Ties |
|---|---|---|---|---|
| Coding | 5 | 6 | ||
| Intelligence | 0 | 1 | ||
| Agentic work | 3 | 0 | ||
| Reasoning | 0 | 9 | ||
| Math | 1 | 4 | 1 tie | |
| Knowledge | 1 | 12 | ||
| Web design | 6 | 2 | ||
| General | 3 | 20 | ||
| All shared boards | 19 | 54 | 1 tie |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index56
| Benchmark | GLM 4.7 | GPT-5.1 | Leader |
|---|---|---|---|
| SWE-bench Verified | Not measured | 66.0% | Only GPT-5.1 measured |
| LMArena WebDev | 1436 | 1397 | GLM 4.7 |
| LiveCodeBench (Vals AI) | 82.2% | 86.5% | GPT-5.1 |
| SWE-bench Verified (Vals AI) | 69.4% | 69.8% | GPT-5.1 |
| LiveCodeBench (Artificial Analysis run) | 89.4% | 86.8% | GLM 4.7 |
| Terminal-Bench Hard (Artificial Analysis run) | 31.8% | 45.5% | GPT-5.1 |
| Terminal-Bench | 33.4% | 47.6% | GPT-5.1 |
| GSO-Bench | Not measured | 13.7% | Only GPT-5.1 measured |
| WeirdML | Not measured | 60.8% | Only GPT-5.1 measured |
| ALE-Bench | 399.5 | Not measured | Only GLM 4.7 measured |
| LMArena Text: coding | 1454 | 1453 | GLM 4.7 |
| LMArena Text: software and IT | 1453 | 1454 | GPT-5.1 |
| LMArena WebDev: React | 1421 | 1306 | GLM 4.7 |
| LMArena WebDev: HTML | 1447 | 1406 | GLM 4.7 |
| LMArena WebDev: from an image | Not measured | 1419 | Only GPT-5.1 measured |
| Terminal-Bench 2.0 | 33.4% | 47.6% | GPT-5.1 |
| Neither model has a result on the other 36 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
| Benchmark | GLM 4.7 | GPT-5.1 | Leader |
|---|---|---|---|
| Epoch Capabilities Index | 143.4 | 150.9 | GPT-5.1 |
| Neither model has a result on the other 1 board here | |||
Agentic workLike-for-likePublic boards, shown as published, kept out of the index30
| Benchmark | GLM 4.7 | GPT-5.1 | Leader |
|---|---|---|---|
| Design Arena: agents building full-stack apps | 1096 | Not measured | Only GLM 4.7 measured |
| Design Arena: agents building mobile apps | 1094 | Not measured | Only GLM 4.7 measured |
| Design Arena: agents building Android apps | 1091 | Not measured | Only GLM 4.7 measured |
| Design Arena: agents building Godot games | 1058 | Not measured | Only GLM 4.7 measured |
| τ²-Bench Telecom | 95.9% | 81.9% | GLM 4.7 |
| DeepResearch Bench | Not measured | 42.8% | Only GPT-5.1 measured |
| Vending-Bench 2 | $2,377 | $1,473 | GLM 4.7 |
| LMArena Search | Not measured | 1199 | Only GPT-5.1 measured |
| BrowseComp-Plus | 64.7% | Not measured | Only GLM 4.7 measured |
| MCP Atlas | 58.1% | 50.1% | GLM 4.7 |
| Neither model has a result on the other 34 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index09
| Benchmark | GLM 4.7 | GPT-5.1 | Leader |
|---|---|---|---|
| GPQA Diamond | 80.0% | 86.6% | GPT-5.1 |
| MMMU Pro (Vals AI) | Not measured | 83.2% | Only GPT-5.1 measured |
| GPQA Diamond (Artificial Analysis run) | 85.9% | 87.3% | GPT-5.1 |
| Humanity's Last Exam (Artificial Analysis run) | 27.4% | 28.5% | GPT-5.1 |
| GPQA Diamond (Epoch AI run) | 83.3% | 87.6% | GPT-5.1 |
| ARC-AGI | Not measured | 72.8% | Only GPT-5.1 measured |
| ARC-AGI-2 | Not measured | 17.6% | Only GPT-5.1 measured |
| SimpleBench | 47.7% | 53.2% | GPT-5.1 |
| Chess puzzles | 21.0% | 42.0% | GPT-5.1 |
| Mystery game puzzles | Not measured | 19.0% | Only GPT-5.1 measured |
| VPCT | Not measured | 58.7% | Only GPT-5.1 measured |
| LMArena Text: hard prompts | 1443 | 1457 | GPT-5.1 |
| LMArena Text: expert | 1424 | 1469 | GPT-5.1 |
| LMArena Text: hard prompts in English | 1452 | 1462 | GPT-5.1 |
| LMArena Vision: diagrams | Not measured | 1264 | Only GPT-5.1 measured |
| LMArena Vision: homework | Not measured | 1274 | Only GPT-5.1 measured |
| Neither model has a result on the other 10 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index14
| Benchmark | GLM 4.7 | GPT-5.1 | Leader |
|---|---|---|---|
| AIME | 93.3% | 93.3% | Tie |
| MGSM (Vals AI) | 88.2% | 93.0% | GPT-5.1 |
| AIME 2025 (Artificial Analysis run) | 95.0% | 94.0% | GLM 4.7 |
| OTIS Mock AIME | 83.3% | 88.6% | GPT-5.1 |
| ProofBench | 6.0% | Not measured | Only GLM 4.7 measured |
| LMArena Text: math | 1423 | 1447 | GPT-5.1 |
| LMArena Text: mathematical work | 1411 | 1450 | GPT-5.1 |
| MathArena | Not measured | 16.0% | Only GPT-5.1 measured |
| Neither model has a result on the other 6 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index112
| Benchmark | GLM 4.7 | GPT-5.1 | Leader |
|---|---|---|---|
| MMLU Pro | 82.7% | 86.4% | GPT-5.1 |
| LegalBench (Vals AI) | 83.4% | 85.7% | GPT-5.1 |
| CaseLaw (Vals AI) | 54.9% | 73.4% | GPT-5.1 |
| CorpFin (Vals AI) | 46.4% | 63.8% | GPT-5.1 |
| TaxEval (Vals AI) | 68.8% | 74.9% | GPT-5.1 |
| MortgageTax (Vals AI) | Not measured | 61.4% | Only GPT-5.1 measured |
| MedQA (Vals AI) | 93.7% | 96.4% | GPT-5.1 |
| MedCode (Vals AI) | 32.8% | 52.7% | GPT-5.1 |
| MMLU Pro (Artificial Analysis run) | 85.6% | 87.0% | GPT-5.1 |
| SimpleQA Verified | 32.2% | 48.0% | GPT-5.1 |
| LMArena Text: science | 1457 | 1459 | GPT-5.1 |
| LMArena Text: medicine and healthcare | 1470 | 1456 | GLM 4.7 |
| LMArena Text: legal and government | 1445 | 1459 | GPT-5.1 |
| LMArena Text: business and finance | 1429 | 1431 | GPT-5.1 |
| PRBench Finance | Not measured | 48.0% | Only GPT-5.1 measured |
| PRBench Legal | Not measured | 48.0% | Only GPT-5.1 measured |
| Neither model has a result on the other 5 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index62
| Benchmark | GLM 4.7 | GPT-5.1 | Leader |
|---|---|---|---|
| Design Arena: websites | 1266 | 1227 | GLM 4.7 |
| Design Arena: UI components | 1178 | 1146 | GLM 4.7 |
| Design Arena: game dev | 1156 | 1149 | GLM 4.7 |
| Design Arena: data viz | 1187 | 1198 | GPT-5.1 |
| Design Arena: 3D | 1152 | 986 | GLM 4.7 |
| Design Arena: all code categories | 1259 | 1210 | GLM 4.7 |
| Design Arena: SVG | 1184 | 1190 | GPT-5.1 |
| Design Arena: ASCII art | 1142 | 1096 | GLM 4.7 |
| Neither model has a result on the other 1 board here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index320
| Benchmark | GLM 4.7 | GPT-5.1 | Leader |
|---|---|---|---|
| MedScribe (Vals AI) | 68.6% | 88.1% | GPT-5.1 |
| IFBench | 67.9% | 72.9% | GPT-5.1 |
| Long context reasoning (AA-LCR) | 71.0% | 80.0% | GPT-5.1 |
| GDPval-AA | 1025 | 837 | GLM 4.7 |
| DTBench | Not measured | 90.1% | Only GPT-5.1 measured |
| LMCA | Not measured | 43.9% | Only GPT-5.1 measured |
| CL-bench | 15.9% | 23.7% | GPT-5.1 |
| CL-bench Life | 10.9% | 17.3% | GPT-5.1 |
| LMArena Text | 1435 | 1442 | GPT-5.1 |
| LMArena Text: instruction following | 1412 | 1442 | GPT-5.1 |
| LMArena Text: creative writing | 1402 | 1427 | GPT-5.1 |
| LMArena Vision | Not measured | 1249 | Only GPT-5.1 measured |
| LMArena Text: English | 1453 | 1451 | GLM 4.7 |
| LMArena Text: non-English | 1417 | 1431 | GPT-5.1 |
| LMArena Text: Chinese | 1494 | 1495 | GPT-5.1 |
| LMArena Text: German | 1426 | 1438 | GPT-5.1 |
| LMArena Text: Japanese | 1439 | 1455 | GPT-5.1 |
| LMArena Text: Korean | 1398 | 1400 | GPT-5.1 |
| LMArena Text: French | 1430 | 1450 | GPT-5.1 |
| LMArena Text: Spanish | 1434 | 1432 | GLM 4.7 |
| LMArena Text: Russian | 1425 | 1435 | GPT-5.1 |
| LMArena Text: Polish | 1435 | 1440 | GPT-5.1 |
| LMArena Text: multi-turn | 1446 | 1450 | GPT-5.1 |
| LMArena Text: longer queries | 1432 | 1447 | GPT-5.1 |
| LMArena Text: writing and language | 1411 | 1428 | GPT-5.1 |
| LMArena Text: entertainment and media | 1400 | 1414 | GPT-5.1 |
| LMArena Vision: English | Not measured | 1251 | Only GPT-5.1 measured |
| LMArena Vision: Chinese | Not measured | 1271 | Only GPT-5.1 measured |
| LMArena Vision: reading text | Not measured | 1254 | Only GPT-5.1 measured |
| LMArena Vision: humor | Not measured | 1264 | 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 | 1267 | Only GPT-5.1 measured |
| LMArena Document | Not measured | 1403 | Only GPT-5.1 measured |
| MultiChallenge | Not measured | 63.4% | Only GPT-5.1 measured |
| Neither model has a result on the other 14 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GLM 4.7 | 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 4.7 costs less
Repository review
50K input + 3K output tokens
GLM 4.7 costs less
Agent loop
200K input + 10K output tokens
GLM 4.7 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 4.7 | OpenAI GPT-5.1 |
|---|---|---|
| Maker | Z.ai | OpenAI |
| Weights | Open weights | No public weights listed |
| Released | December 22, 2025 | November 13, 2025 |
| Context window | 203K | 400K |
| Input $/Mtok | $0.60 | $1.25 |
| Output $/Mtok | $2.20 | $10.00 |
| Coding index | 55.1 | 53.2 |
| Independent measurements behind it | 2 | 2 |
| Cost per solved task | $0.29 | $1.02 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GLM 4.7 better than GPT-5.1 for coding?
GLM 4.7 and GPT-5.1 are level for coding, 55.1 against 53.2 on the Vibe Coding Index, so price and context decide. Pick GPT-5.1 for a larger context window (400K against 203K tokens) and work measured by LiveCodeBench (Vals AI) or SWE-bench Verified (Vals AI), where it leads. Pick GLM 4.7 for output tokens 4.5x cheaper ($2.20 vs $10.00 per million) and a lower cost per solved task ($0.29 against $1.02).
Which is cheaper, GLM 4.7 or GPT-5.1?
GLM 4.7 costs $0.60 per million input tokens and $2.20 per million output tokens; GPT-5.1 costs $1.25 and $10.00. Per solved SWE-bench Verified task, GLM 4.7 costs $0.29 and GPT-5.1 $1.02.
Which has the bigger context window, GLM 4.7 or GPT-5.1?
GPT-5.1, with 400K tokens against 203K.
How many benchmarks is the GLM 4.7 vs GPT-5.1 comparison based on?
74 benchmarks have a result for both models as of December 6, 2026. GLM 4.7's coding index rests on 2 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.