GLM 4.7 Flash vs GPT-4.1
Updated October 21, 2026. 42 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.
Decision reading
Neither model has a coding score yet, so the two cannot be ranked on coding.
GLM 4.7 Flash has the edge where output tokens cost 20.0x less, and where what matters is LMArena Text: coding or LMArena Text: software and IT, where it leads.
- Shared results
- 42
- GLM 4.7 Flash only
- 1
- GPT-4.1 only
- 45
- 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, six public coding benchmarks
No call
Neither has a coding score yet.
One side not measured
Intelligence
AA Intelligence Index
GLM 4.7 Flash
GLM 4.7 Flash leads, 14.9 against 12.7.
Same board, both measured
Reasoning
GPQA Diamond
No call
Only GPT-4.1 has a GPQA Diamond result, 65.4%.
Directional only
Math
AIME
No call
Only GPT-4.1 has a AIME result, 39.6%.
Directional only
Knowledge
MMLU Pro
No call
Only GPT-4.1 has a MMLU Pro result, 80.5%.
Directional only
Web design
Design Arena: websites
GLM 4.7 Flash
GLM 4.7 Flash leads, 1194 against 1039.
Same board, both measured
Long documents
Listed context window
GPT-4.1
GPT-4.1 takes 1.05M tokens against 200K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GLM 4.7 Flash
GLM 4.7 Flash $0.0003, GPT-4.1 $0.0060 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only GPT-4.1 has the number, $0.37.
Directional only
At a glance
- Coding index
- GLM 4.7 Flash not benchmarked, GPT-4.1 not benchmarked.
- Widest category
- Agentic work, 51.8 points apart on average over 1 shared benchmark.
- Widest single gap
- τ²-Bench Telecom: GLM 4.7 Flash 98.8% against GPT-4.1 47.1%, 51.8 points apart on a 0 to 100 scale.
- Output price
- GLM 4.7 Flash $0.40 against GPT-4.1 $8.00 per million output tokens, 20.0x apart.
- Context window
- GLM 4.7 Flash takes 200K tokens, GPT-4.1 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 Flash | Bars | GPT-4.1 | Ties |
|---|---|---|---|---|
| Coding | 1 | 2 | ||
| Intelligence | 1 | 0 | ||
| Agentic work | 1 | 0 | ||
| Reasoning | 1 | 5 | ||
| Math | 2 | 1 | ||
| Knowledge | 0 | 4 | ||
| Web design | 6 | 0 | ||
| General | 2 | 16 | ||
| All shared boards | 14 | 28 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index12
| Benchmark | GLM 4.7 Flash | GPT-4.1 | Leader |
|---|---|---|---|
| Aider polyglot | Not measured | 52.4% | Only GPT-4.1 measured |
| SWE-bench Verified | Not measured | 39.6% | Only GPT-4.1 measured |
| SWE-bench Multimodal | Not measured | 31.1% | Only GPT-4.1 measured |
| LiveCodeBench (Vals AI) | Not measured | 54.7% | Only GPT-4.1 measured |
| LiveCodeBench (Artificial Analysis run) | Not measured | 45.7% | Only GPT-4.1 measured |
| Terminal-Bench Hard (Artificial Analysis run) | 22.0% | 13.6% | GLM 4.7 Flash |
| WeirdML | Not measured | 39.0% | Only GPT-4.1 measured |
| ALE-Bench | Not measured | 558.1 | Only GPT-4.1 measured |
| LMArena Text: coding | 1382 | 1390 | GPT-4.1 |
| LMArena Text: software and IT | 1389 | 1391 | GPT-4.1 |
| Neither model has a result on the other 28 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | GLM 4.7 Flash | GPT-4.1 | Leader |
|---|---|---|---|
| AA Intelligence Index | 14.9 | 12.7 | GLM 4.7 Flash |
| Epoch Capabilities Index | Not measured | 136.7 | Only GPT-4.1 measured |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | GLM 4.7 Flash | GPT-4.1 | Leader |
|---|---|---|---|
| τ²-Bench Telecom | 98.8% | 47.1% | GLM 4.7 Flash |
| Neither model has a result on the other 38 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index15
| Benchmark | GLM 4.7 Flash | GPT-4.1 | Leader |
|---|---|---|---|
| GPQA Diamond | Not measured | 65.4% | Only GPT-4.1 measured |
| MMMU Pro (Vals AI) | Not measured | 72.4% | Only GPT-4.1 measured |
| GPQA Diamond (Artificial Analysis run) | 58.1% | 66.6% | GPT-4.1 |
| Humanity's Last Exam (Artificial Analysis run) | 7.6% | 4.2% | GLM 4.7 Flash |
| GPQA Diamond (Epoch AI run) | 60.5% | 66.9% | GPT-4.1 |
| ARC-AGI | Not measured | 5.5% | Only GPT-4.1 measured |
| ARC-AGI-2 | Not measured | 0.4% | Only GPT-4.1 measured |
| SimpleBench | Not measured | 27.0% | Only GPT-4.1 measured |
| Chess puzzles | Not measured | 3.0% | Only GPT-4.1 measured |
| LMArena Text: hard prompts | 1356 | 1384 | GPT-4.1 |
| LMArena Text: expert | 1357 | 1364 | GPT-4.1 |
| LMArena Text: hard prompts in English | 1369 | 1393 | GPT-4.1 |
| LMArena Vision: diagrams | Not measured | 1215 | Only GPT-4.1 measured |
| LMArena Vision: homework | Not measured | 1248 | Only GPT-4.1 measured |
| Neither model has a result on the other 7 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index21
| Benchmark | GLM 4.7 Flash | GPT-4.1 | Leader |
|---|---|---|---|
| AIME | Not measured | 39.6% | Only GPT-4.1 measured |
| MATH 500 (Vals AI) | Not measured | 87.2% | Only GPT-4.1 measured |
| MGSM (Vals AI) | Not measured | 87.7% | Only GPT-4.1 measured |
| AA Math Index | Not measured | 34.7 | Only GPT-4.1 measured |
| AIME 2025 (Artificial Analysis run) | Not measured | 34.7% | Only GPT-4.1 measured |
| OTIS Mock AIME | 58.3% | 38.3% | GLM 4.7 Flash |
| FrontierMath, tiers 1 to 3 | Not measured | 6.0% | Only GPT-4.1 measured |
| MATH level 5 | Not measured | 83.0% | Only GPT-4.1 measured |
| LMArena Text: math | 1355 | 1369 | GPT-4.1 |
| LMArena Text: mathematical work | 1369 | 1360 | GLM 4.7 Flash |
| Neither model has a result on the other 3 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index04
| Benchmark | GLM 4.7 Flash | GPT-4.1 | Leader |
|---|---|---|---|
| MMLU Pro | Not measured | 80.5% | Only GPT-4.1 measured |
| LegalBench (Vals AI) | Not measured | 83.1% | Only GPT-4.1 measured |
| CaseLaw (Vals AI) | Not measured | 69.9% | Only GPT-4.1 measured |
| CorpFin (Vals AI) | Not measured | 63.0% | Only GPT-4.1 measured |
| TaxEval (Vals AI) | Not measured | 75.1% | Only GPT-4.1 measured |
| MortgageTax (Vals AI) | Not measured | 65.9% | Only GPT-4.1 measured |
| MedQA (Vals AI) | Not measured | 91.2% | Only GPT-4.1 measured |
| MMLU Pro (Artificial Analysis run) | Not measured | 80.6% | Only GPT-4.1 measured |
| SimpleQA Verified | Not measured | 31.1% | Only GPT-4.1 measured |
| GeoBench | Not measured | 72.0% | Only GPT-4.1 measured |
| LMArena Text: science | 1358 | 1382 | GPT-4.1 |
| LMArena Text: medicine and healthcare | 1343 | 1379 | GPT-4.1 |
| LMArena Text: legal and government | 1357 | 1399 | GPT-4.1 |
| LMArena Text: business and finance | 1343 | 1369 | GPT-4.1 |
| 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 Flash | GPT-4.1 | Leader |
|---|---|---|---|
| Design Arena: websites | 1194 | 1039 | GLM 4.7 Flash |
| Design Arena: UI components | 1208 | 1000 | GLM 4.7 Flash |
| Design Arena: game dev | 1135 | 1079 | GLM 4.7 Flash |
| Design Arena: data viz | 1123 | 1104 | GLM 4.7 Flash |
| Design Arena: 3D | 1121 | 850 | GLM 4.7 Flash |
| Design Arena: all code categories | 1178 | 1026 | GLM 4.7 Flash |
| Design Arena: SVG | 1038 | Not measured | Only GLM 4.7 Flash measured |
| Neither model has a result on the other 2 boards here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index216
| Benchmark | GLM 4.7 Flash | GPT-4.1 | Leader |
|---|---|---|---|
| IFBench | 60.8% | 43.0% | GLM 4.7 Flash |
| Long context reasoning (AA-LCR) | 41.7% | 68.3% | GPT-4.1 |
| DTBench | Not measured | 68.3% | Only GPT-4.1 measured |
| LMCA | Not measured | 25.6% | Only GPT-4.1 measured |
| Fiction.LiveBench | Not measured | 63.9% | Only GPT-4.1 measured |
| LMArena Text | 1351 | 1383 | GPT-4.1 |
| LMArena Text: instruction following | 1327 | 1367 | GPT-4.1 |
| LMArena Text: creative writing | 1296 | 1363 | GPT-4.1 |
| LMArena Vision | Not measured | 1210 | Only GPT-4.1 measured |
| LMArena Text: English | 1373 | 1392 | GPT-4.1 |
| LMArena Text: non-English | 1330 | 1370 | GPT-4.1 |
| LMArena Text: Chinese | 1403 | 1382 | GLM 4.7 Flash |
| LMArena Text: German | 1336 | 1381 | GPT-4.1 |
| LMArena Text: Japanese | Not measured | 1319 | Only GPT-4.1 measured |
| LMArena Text: Korean | 1283 | 1338 | GPT-4.1 |
| LMArena Text: French | 1332 | 1382 | GPT-4.1 |
| LMArena Text: Spanish | 1350 | 1376 | GPT-4.1 |
| LMArena Text: Russian | 1333 | 1377 | GPT-4.1 |
| LMArena Text: Polish | 1291 | 1389 | GPT-4.1 |
| LMArena Text: multi-turn | 1342 | 1397 | GPT-4.1 |
| LMArena Text: longer queries | 1345 | 1385 | GPT-4.1 |
| LMArena Text: writing and language | 1320 | 1371 | GPT-4.1 |
| LMArena Text: entertainment and media | 1304 | 1365 | GPT-4.1 |
| LMArena Vision: English | Not measured | 1209 | Only GPT-4.1 measured |
| LMArena Vision: Chinese | Not measured | 1226 | Only GPT-4.1 measured |
| LMArena Vision: reading text | Not measured | 1218 | Only GPT-4.1 measured |
| LMArena Vision: humor | Not measured | 1196 | Only GPT-4.1 measured |
| LMArena Vision: captioning | Not measured | 1207 | Only GPT-4.1 measured |
| LMArena Vision: recognizing things | Not measured | 1208 | Only GPT-4.1 measured |
| LMArena Vision: creative writing | Not measured | 1210 | Only GPT-4.1 measured |
| Neither model has a result on the other 16 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GLM 4.7 Flash | GPT-4.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 Flash costs less
Repository review
50K input + 3K output tokens
GLM 4.7 Flash costs less
Agent loop
200K input + 10K output tokens
GLM 4.7 Flash 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 Flash | OpenAI GPT-4.1 |
|---|---|---|
| Maker | Z.ai | OpenAI |
| Weights | Open weights | No public weights listed |
| Released | January 19, 2026 | April 14, 2025 |
| Context window | 200K | 1.05M |
| Input $/Mtok | $0.0653 | $2.00 |
| Output $/Mtok | $0.40 | $8.00 |
| Coding index | Not benchmarked | Not benchmarked |
| Independent measurements behind it | 0 | 0 |
| Cost per solved task | Not computable | $0.37 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GLM 4.7 Flash better than GPT-4.1 for coding?
Neither model has a coding score yet, so the two cannot be ranked on coding. GLM 4.7 Flash has the edge where output tokens cost 20.0x less, and where what matters is LMArena Text: coding or LMArena Text: software and IT, where it leads.
Which is cheaper, GLM 4.7 Flash or GPT-4.1?
GLM 4.7 Flash costs $0.0653 per million input tokens and $0.40 per million output tokens; GPT-4.1 costs $2.00 and $8.00. Cost per solved task is known for GPT-4.1 only.
Which has the bigger context window, GLM 4.7 Flash or GPT-4.1?
GPT-4.1, with 1.05M tokens against 200K.
How many benchmarks is the GLM 4.7 Flash vs GPT-4.1 comparison based on?
42 benchmarks have a result for both models as of October 21, 2026. GLM 4.7 Flash's coding index rests on 0 independent benchmarks and GPT-4.1's on 0. Where only one model has a result, the page says so instead of naming a winner.