GLM 4.7 vs GPT-4.1 Mini
Updated October 21, 2026. 60 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 4.7 for coding: it scores 33.6 on the Vibe Coding Index against 28.5 for GPT-4.1 Mini, though on 1 benchmark against 2.
Pick GPT-4.1 Mini when output tokens cost 1.2x less, or when the context window is larger, 1.05M against 205K tokens.
- Shared results
- 60
- GLM 4.7 only
- 20
- GPT-4.1 Mini only
- 24
- 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 4.7
GLM 4.7 scores 33.6 against 28.5.
1 and 2 benchmarks behind the scores
Intelligence
AA Intelligence Index
GLM 4.7
GLM 4.7 leads, 22.2 against 10.2.
Same board, both measured
Reasoning
GPQA Diamond
GLM 4.7
GLM 4.7 leads, 80.0% against 67.9%.
Same board, both measured
Math
AIME
GLM 4.7
GLM 4.7 leads, 93.3% against 49.4%.
Same board, both measured
Knowledge
MMLU Pro
GLM 4.7
GLM 4.7 leads, 82.7% against 77.2%.
Same board, both measured
Web design
Design Arena: websites
GLM 4.7
GLM 4.7 leads, 1226 against 997.
Same board, both measured
Long documents
Listed context window
GPT-4.1 Mini
GPT-4.1 Mini takes 1.05M tokens against 205K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GPT-4.1 Mini
GLM 4.7 $0.0015, GPT-4.1 Mini $0.0012 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
GLM 4.7
GLM 4.7 $0.29, GPT-4.1 Mini $1.818.
Published attempt cost and pass rate
At a glance
- Coding index
- GLM 4.7 33.6 from 1 benchmark, GPT-4.1 Mini 28.5 from 2 benchmarks.
- Widest category
- Agentic work, 43.0 points apart on average over 1 shared benchmark.
- Widest single gap
- AA Math Index: GLM 4.7 95.0 against GPT-4.1 Mini 46.3, 48.7 points apart on a 0 to 100 scale.
- Output price
- GLM 4.7 $1.98 against GPT-4.1 Mini $1.60 per million output tokens, 1.2x apart.
- Context window
- GLM 4.7 takes 205K tokens, GPT-4.1 Mini 1.05M.
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-4.1 Mini | Ties |
|---|---|---|---|---|
| Coding | 6 | 0 | ||
| Intelligence | 2 | 0 | ||
| Agentic work | 1 | 0 | ||
| Reasoning | 8 | 0 | ||
| Math | 7 | 0 | ||
| Knowledge | 9 | 2 | ||
| Web design | 6 | 0 | ||
| General | 19 | 0 | ||
| All shared boards | 58 | 2 |
CodingLike-for-likeFour of these boards feed the Vibe Coding Index60
| Benchmark | GLM 4.7 | GPT-4.1 Mini | Leader |
|---|---|---|---|
| Aider polyglot | Not measured | 32.4% | Only GPT-4.1 Mini measured |
| SWE-bench Verified | Not measured | 23.9% | Only GPT-4.1 Mini measured |
| LMArena WebDev | 1435 | Not measured | Only GLM 4.7 measured |
| AA Coding Index | 45.3 | 20.2 | GLM 4.7 |
| LiveCodeBench (Vals AI) | 82.2% | 58.2% | GLM 4.7 |
| SWE-bench Verified (Vals AI) | 69.4% | Not measured | Only GLM 4.7 measured |
| LiveCodeBench (Artificial Analysis run) | 89.4% | 48.3% | GLM 4.7 |
| Terminal-Bench Hard (Artificial Analysis run) | 31.8% | 7.6% | GLM 4.7 |
| Terminal-Bench | 33.4% | Not measured | Only GLM 4.7 measured |
| WeirdML | Not measured | 37.6% | Only GPT-4.1 Mini measured |
| ALE-Bench | 399.5 | Not measured | Only GLM 4.7 measured |
| LMArena Text: coding | 1454 | 1367 | GLM 4.7 |
| LMArena Text: software and IT | 1453 | 1360 | GLM 4.7 |
| LMArena WebDev: React | 1420 | Not measured | Only GLM 4.7 measured |
| LMArena WebDev: HTML | 1447 | Not measured | Only GLM 4.7 measured |
| Neither model has a result on the other 23 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
| Benchmark | GLM 4.7 | GPT-4.1 Mini | Leader |
|---|---|---|---|
| AA Intelligence Index | 22.2 | 10.2 | GLM 4.7 |
| Epoch Capabilities Index | 143.6 | 134.9 | GLM 4.7 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | GLM 4.7 | GPT-4.1 Mini | Leader |
|---|---|---|---|
| Design Arena: agents building full-stack apps | 1050 | Not measured | Only GLM 4.7 measured |
| Design Arena: agents building mobile apps | 1105 | Not measured | Only GLM 4.7 measured |
| Design Arena: agents building Android apps | 1118 | 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% | 52.9% | GLM 4.7 |
| Vending-Bench 2 | $2,377 | Not measured | Only GLM 4.7 measured |
| Neither model has a result on the other 33 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index80
| Benchmark | GLM 4.7 | GPT-4.1 Mini | Leader |
|---|---|---|---|
| GPQA Diamond | 80.0% | 67.9% | GLM 4.7 |
| MMMU Pro (Vals AI) | Not measured | 70.5% | Only GPT-4.1 Mini measured |
| GPQA Diamond (Artificial Analysis run) | 85.9% | 66.4% | GLM 4.7 |
| Humanity's Last Exam (Artificial Analysis run) | 27.4% | 5.0% | GLM 4.7 |
| GPQA Diamond (Epoch AI run) | 83.3% | 65.8% | GLM 4.7 |
| ARC-AGI | Not measured | 3.5% | Only GPT-4.1 Mini measured |
| ARC-AGI-2 | Not measured | 0.0% | Only GPT-4.1 Mini measured |
| SimpleBench | 47.7% | Not measured | Only GLM 4.7 measured |
| Chess puzzles | 21.0% | 1.0% | GLM 4.7 |
| Mystery game puzzles | Not measured | 7.0% | Only GPT-4.1 Mini measured |
| LMArena Text: hard prompts | 1443 | 1349 | GLM 4.7 |
| LMArena Text: expert | 1424 | 1338 | GLM 4.7 |
| LMArena Text: hard prompts in English | 1452 | 1362 | GLM 4.7 |
| LMArena Vision: diagrams | Not measured | 1182 | Only GPT-4.1 Mini measured |
| LMArena Vision: homework | Not measured | 1214 | Only GPT-4.1 Mini measured |
| Neither model has a result on the other 6 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index70
| Benchmark | GLM 4.7 | GPT-4.1 Mini | Leader |
|---|---|---|---|
| AIME | 93.3% | 49.4% | GLM 4.7 |
| MATH 500 (Vals AI) | Not measured | 88.0% | Only GPT-4.1 Mini measured |
| MGSM (Vals AI) | 88.2% | 87.8% | GLM 4.7 |
| AA Math Index | 95.0 | 46.3 | GLM 4.7 |
| AIME 2025 (Artificial Analysis run) | 95.0% | 46.3% | GLM 4.7 |
| OTIS Mock AIME | 83.3% | 44.7% | GLM 4.7 |
| FrontierMath, tiers 1 to 3 | Not measured | 6.7% | Only GPT-4.1 Mini measured |
| ProofBench | 6.0% | Not measured | Only GLM 4.7 measured |
| MATH level 5 | Not measured | 87.3% | Only GPT-4.1 Mini measured |
| LMArena Text: math | 1424 | 1343 | GLM 4.7 |
| LMArena Text: mathematical work | 1411 | 1347 | GLM 4.7 |
| Neither model has a result on the other 2 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index92
| Benchmark | GLM 4.7 | GPT-4.1 Mini | Leader |
|---|---|---|---|
| MMLU Pro | 82.7% | 77.2% | GLM 4.7 |
| LegalBench (Vals AI) | 83.4% | 78.0% | GLM 4.7 |
| CaseLaw (Vals AI) | 54.9% | Not measured | Only GLM 4.7 measured |
| CorpFin (Vals AI) | 46.4% | 57.9% | GPT-4.1 Mini |
| TaxEval (Vals AI) | 68.8% | 71.9% | GPT-4.1 Mini |
| MortgageTax (Vals AI) | Not measured | 65.5% | Only GPT-4.1 Mini measured |
| MedQA (Vals AI) | 93.7% | 84.6% | GLM 4.7 |
| MedCode (Vals AI) | 32.8% | Not measured | Only GLM 4.7 measured |
| MMLU Pro (Artificial Analysis run) | 85.6% | 78.1% | GLM 4.7 |
| SimpleQA Verified | 32.2% | 12.7% | GLM 4.7 |
| LMArena Text: science | 1457 | 1328 | GLM 4.7 |
| LMArena Text: medicine and healthcare | 1469 | 1324 | GLM 4.7 |
| LMArena Text: legal and government | 1444 | 1343 | GLM 4.7 |
| LMArena Text: business and finance | 1429 | 1322 | GLM 4.7 |
| Neither model has a result on the other 3 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index60
| Benchmark | GLM 4.7 | GPT-4.1 Mini | Leader |
|---|---|---|---|
| Design Arena: websites | 1226 | 997 | GLM 4.7 |
| Design Arena: UI components | 1199 | 961 | GLM 4.7 |
| Design Arena: game dev | 1189 | 1071 | GLM 4.7 |
| Design Arena: data viz | 1195 | 1034 | GLM 4.7 |
| Design Arena: 3D | 1191 | 837 | GLM 4.7 |
| Design Arena: all code categories | 1217 | 994 | GLM 4.7 |
| Design Arena: SVG | 1142 | Not measured | Only GLM 4.7 measured |
| Design Arena: ASCII art | 1165 | Not measured | Only GLM 4.7 measured |
| Neither model has a result on the other 1 board here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index190
| Benchmark | GLM 4.7 | GPT-4.1 Mini | Leader |
|---|---|---|---|
| MedScribe (Vals AI) | 68.6% | Not measured | Only GLM 4.7 measured |
| IFBench | 67.9% | 38.3% | GLM 4.7 |
| Long context reasoning (AA-LCR) | 71.0% | 44.0% | GLM 4.7 |
| DTBench | Not measured | 68.8% | Only GPT-4.1 Mini measured |
| LMCA | Not measured | 21.1% | Only GPT-4.1 Mini measured |
| Fiction.LiveBench | Not measured | 44.4% | Only GPT-4.1 Mini measured |
| CL-bench | 15.9% | Not measured | Only GLM 4.7 measured |
| CL-bench Life | 10.9% | Not measured | Only GLM 4.7 measured |
| LMArena Text | 1435 | 1341 | GLM 4.7 |
| LMArena Text: instruction following | 1412 | 1333 | GLM 4.7 |
| LMArena Text: creative writing | 1401 | 1299 | GLM 4.7 |
| LMArena Vision | Not measured | 1181 | Only GPT-4.1 Mini measured |
| LMArena Text: English | 1453 | 1356 | GLM 4.7 |
| LMArena Text: non-English | 1417 | 1318 | GLM 4.7 |
| LMArena Text: Chinese | 1495 | 1329 | GLM 4.7 |
| LMArena Text: German | 1426 | 1350 | GLM 4.7 |
| LMArena Text: Japanese | 1439 | 1290 | GLM 4.7 |
| LMArena Text: Korean | 1399 | 1298 | GLM 4.7 |
| LMArena Text: French | 1432 | 1358 | GLM 4.7 |
| LMArena Text: Spanish | 1434 | 1319 | GLM 4.7 |
| LMArena Text: Russian | 1423 | 1324 | GLM 4.7 |
| LMArena Text: Polish | 1435 | 1326 | GLM 4.7 |
| LMArena Text: multi-turn | 1446 | 1354 | GLM 4.7 |
| LMArena Text: longer queries | 1432 | 1344 | GLM 4.7 |
| LMArena Text: writing and language | 1411 | 1319 | GLM 4.7 |
| LMArena Text: entertainment and media | 1400 | 1300 | GLM 4.7 |
| LMArena Vision: English | Not measured | 1191 | Only GPT-4.1 Mini measured |
| LMArena Vision: Chinese | Not measured | 1186 | Only GPT-4.1 Mini measured |
| LMArena Vision: reading text | Not measured | 1188 | Only GPT-4.1 Mini measured |
| LMArena Vision: humor | Not measured | 1182 | Only GPT-4.1 Mini measured |
| LMArena Vision: captioning | Not measured | 1174 | Only GPT-4.1 Mini measured |
| LMArena Vision: recognizing things | Not measured | 1187 | Only GPT-4.1 Mini measured |
| LMArena Vision: creative writing | Not measured | 1182 | Only GPT-4.1 Mini measured |
| Neither model has a result on the other 13 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GLM 4.7 | GPT-4.1 Mini | 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
GPT-4.1 Mini costs less
Repository review
50K input + 3K output tokens
GPT-4.1 Mini costs less
Agent loop
200K input + 10K output tokens
GPT-4.1 Mini 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-4.1 Mini |
|---|---|---|
| Maker | Z.ai | OpenAI |
| Weights | Open weights | No public weights listed |
| Released | December 22, 2025 | April 14, 2025 |
| Context window | 205K | 1.05M |
| Input $/Mtok | $0.54 | $0.40 |
| Output $/Mtok | $1.98 | $1.60 |
| Coding index | 33.6 | 28.5 |
| Independent measurements behind it | 1 | 2 |
| Cost per solved task | $0.29 | $1.818 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GLM 4.7 better than GPT-4.1 Mini for coding?
Pick GLM 4.7 for coding: it scores 33.6 on the Vibe Coding Index against 28.5 for GPT-4.1 Mini, though on 1 benchmark against 2. Pick GPT-4.1 Mini when output tokens cost 1.2x less, or when the context window is larger, 1.05M against 205K tokens.
Which is cheaper, GLM 4.7 or GPT-4.1 Mini?
GLM 4.7 costs $0.54 per million input tokens and $1.98 per million output tokens; GPT-4.1 Mini costs $0.40 and $1.60. Per solved SWE-bench Verified task, GLM 4.7 costs $0.29 and GPT-4.1 Mini $1.818.
Which has the bigger context window, GLM 4.7 or GPT-4.1 Mini?
GPT-4.1 Mini, with 1.05M tokens against 205K.
How many benchmarks is the GLM 4.7 vs GPT-4.1 Mini comparison based on?
60 benchmarks have a result for both models as of October 21, 2026. GLM 4.7's coding index rests on 1 independent benchmark and GPT-4.1 Mini's on 2. Where only one model has a result, the page says so instead of naming a winner.