GLM 4.7 Flash vs GPT-4.1 Mini
GLM 4.7 Flash leads GPT-4.1 Mini on the Artificial Analysis Intelligence Index, 14.9 to 10.2, and GLM 4.7 Flash costs 4.0x less per output token ($0.40 vs $1.60 per million). Updated October 21, 2026; 42 benchmarks have a result for both.
GLM 4.7 Flash or GPT-4.1 Mini: which to pick
Neither model has a coding score yet, so the two cannot be ranked on coding.
Pick GLM 4.7 Flash for output tokens 4.0x cheaper ($0.40 vs $1.60 per million) and work measured by GPQA Diamond (Artificial Analysis run) or GPQA Diamond (Epoch AI run), where it leads.
- Shared results
- 42
- GLM 4.7 Flash only
- 1
- GPT-4.1 Mini only
- 44
- 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
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 10.2.
Same board, both measured
Reasoning
GPQA Diamond
No call
Only GPT-4.1 Mini has a GPQA Diamond result, 67.9%.
Directional only
Math
AIME
No call
Only GPT-4.1 Mini has a AIME result, 49.4%.
Directional only
Knowledge
MMLU Pro
No call
Only GPT-4.1 Mini has a MMLU Pro result, 77.2%.
Directional only
Web design
Design Arena: websites
GLM 4.7 Flash
GLM 4.7 Flash leads, 1194 against 997.
Same board, both measured
Long documents
Listed context window
GPT-4.1 Mini
GPT-4.1 Mini 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 Mini $0.0012 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only GPT-4.1 Mini has the number, $1.818.
Directional only
At a glance
- Coding index
- GLM 4.7 Flash not benchmarked, GPT-4.1 Mini not benchmarked.
- Widest category
- Agentic work, 45.9 points apart on average over 1 shared benchmark.
- Widest single gap
- τ²-Bench Telecom: GLM 4.7 Flash 98.8% against GPT-4.1 Mini 52.9%, 45.9 points apart on a 0 to 100 scale.
- Output price
- GLM 4.7 Flash $0.40 against GPT-4.1 Mini $1.60 per million output tokens, 4.0x apart.
- Context window
- GLM 4.7 Flash takes 200K 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 Flash | Bars | GPT-4.1 Mini | Ties |
|---|---|---|---|---|
| Coding | 3 | 0 | ||
| Intelligence | 1 | 0 | ||
| Agentic work | 1 | 0 | ||
| Reasoning | 4 | 2 | ||
| Math | 3 | 0 | ||
| Knowledge | 4 | 0 | ||
| Web design | 6 | 0 | ||
| General | 10 | 8 | ||
| All shared boards | 32 | 10 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index30
| Benchmark | GLM 4.7 Flash | 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 |
| AA Coding Index | Not measured | 20.2 | Only GPT-4.1 Mini measured |
| LiveCodeBench (Vals AI) | Not measured | 58.2% | Only GPT-4.1 Mini measured |
| LiveCodeBench (Artificial Analysis run) | Not measured | 48.3% | Only GPT-4.1 Mini measured |
| Terminal-Bench Hard (Artificial Analysis run) | 22.0% | 7.6% | GLM 4.7 Flash |
| WeirdML | Not measured | 37.6% | Only GPT-4.1 Mini measured |
| LMArena Text: coding | 1382 | 1367 | GLM 4.7 Flash |
| LMArena Text: software and IT | 1389 | 1360 | GLM 4.7 Flash |
| Neither model has a result on the other 30 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | GLM 4.7 Flash | GPT-4.1 Mini | Leader |
|---|---|---|---|
| AA Intelligence Index | 14.9 | 10.2 | GLM 4.7 Flash |
| Epoch Capabilities Index | Not measured | 134.9 | Only GPT-4.1 Mini measured |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | GLM 4.7 Flash | GPT-4.1 Mini | Leader |
|---|---|---|---|
| τ²-Bench Telecom | 98.8% | 52.9% | GLM 4.7 Flash |
| Berkeley Function Calling Leaderboard (BFCL) | Not measured | 50.4% | Only GPT-4.1 Mini measured |
| Neither model has a result on the other 39 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index42
| Benchmark | GLM 4.7 Flash | GPT-4.1 Mini | Leader |
|---|---|---|---|
| GPQA Diamond | Not measured | 67.9% | Only GPT-4.1 Mini measured |
| MMMU Pro (Vals AI) | Not measured | 70.5% | Only GPT-4.1 Mini measured |
| GPQA Diamond (Artificial Analysis run) | 58.1% | 66.4% | GPT-4.1 Mini |
| Humanity's Last Exam (Artificial Analysis run) | 7.6% | 5.0% | GLM 4.7 Flash |
| GPQA Diamond (Epoch AI run) | 60.5% | 65.8% | GPT-4.1 Mini |
| 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 |
| Chess puzzles | Not measured | 1.0% | Only GPT-4.1 Mini measured |
| Mystery game puzzles | Not measured | 7.0% | Only GPT-4.1 Mini measured |
| LMArena Text: hard prompts | 1356 | 1349 | GLM 4.7 Flash |
| LMArena Text: expert | 1357 | 1338 | GLM 4.7 Flash |
| LMArena Text: hard prompts in English | 1369 | 1362 | GLM 4.7 Flash |
| LMArena Vision: diagrams | Not measured | 1182 | Only GPT-4.1 Mini measured |
| LMArena Vision: homework | Not measured | 1214 | Only GPT-4.1 Mini measured |
| Kagi LLM Benchmark | Not measured | 48.6% | Only GPT-4.1 Mini measured |
| Neither model has a result on the other 7 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index30
| Benchmark | GLM 4.7 Flash | GPT-4.1 Mini | Leader |
|---|---|---|---|
| AIME | Not measured | 49.4% | Only GPT-4.1 Mini measured |
| MATH 500 (Vals AI) | Not measured | 88.0% | Only GPT-4.1 Mini measured |
| MGSM (Vals AI) | Not measured | 87.8% | Only GPT-4.1 Mini measured |
| AA Math Index | Not measured | 46.3 | Only GPT-4.1 Mini measured |
| AIME 2025 (Artificial Analysis run) | Not measured | 46.3% | Only GPT-4.1 Mini measured |
| OTIS Mock AIME | 58.3% | 44.7% | GLM 4.7 Flash |
| FrontierMath, tiers 1 to 3 | Not measured | 6.7% | Only GPT-4.1 Mini measured |
| MATH level 5 | Not measured | 87.3% | Only GPT-4.1 Mini measured |
| LMArena Text: math | 1355 | 1343 | GLM 4.7 Flash |
| LMArena Text: mathematical work | 1369 | 1347 | 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 index40
| Benchmark | GLM 4.7 Flash | GPT-4.1 Mini | Leader |
|---|---|---|---|
| MMLU Pro | Not measured | 77.2% | Only GPT-4.1 Mini measured |
| LegalBench (Vals AI) | Not measured | 78.0% | Only GPT-4.1 Mini measured |
| CorpFin (Vals AI) | Not measured | 57.9% | Only GPT-4.1 Mini measured |
| TaxEval (Vals AI) | Not measured | 71.9% | Only GPT-4.1 Mini measured |
| MortgageTax (Vals AI) | Not measured | 65.5% | Only GPT-4.1 Mini measured |
| MedQA (Vals AI) | Not measured | 84.6% | Only GPT-4.1 Mini measured |
| MMLU Pro (Artificial Analysis run) | Not measured | 78.1% | Only GPT-4.1 Mini measured |
| SimpleQA Verified | Not measured | 12.7% | Only GPT-4.1 Mini measured |
| LMArena Text: science | 1358 | 1328 | GLM 4.7 Flash |
| LMArena Text: medicine and healthcare | 1343 | 1324 | GLM 4.7 Flash |
| LMArena Text: legal and government | 1357 | 1343 | GLM 4.7 Flash |
| LMArena Text: business and finance | 1343 | 1322 | GLM 4.7 Flash |
| Neither model has a result on the other 6 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index60
| Benchmark | GLM 4.7 Flash | GPT-4.1 Mini | Leader |
|---|---|---|---|
| Design Arena: websites | 1194 | 997 | GLM 4.7 Flash |
| Design Arena: UI components | 1208 | 961 | GLM 4.7 Flash |
| Design Arena: game dev | 1135 | 1071 | GLM 4.7 Flash |
| Design Arena: data viz | 1123 | 1034 | GLM 4.7 Flash |
| Design Arena: 3D | 1121 | 837 | GLM 4.7 Flash |
| Design Arena: all code categories | 1178 | 994 | 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 index108
| Benchmark | GLM 4.7 Flash | GPT-4.1 Mini | Leader |
|---|---|---|---|
| IFBench | 60.8% | 38.3% | GLM 4.7 Flash |
| Long context reasoning (AA-LCR) | 41.7% | 44.0% | GPT-4.1 Mini |
| 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 |
| LMArena Text | 1351 | 1341 | GLM 4.7 Flash |
| LMArena Text: instruction following | 1327 | 1333 | GPT-4.1 Mini |
| LMArena Text: creative writing | 1296 | 1299 | GPT-4.1 Mini |
| LMArena Vision | Not measured | 1181 | Only GPT-4.1 Mini measured |
| LMArena Text: English | 1373 | 1356 | GLM 4.7 Flash |
| LMArena Text: non-English | 1330 | 1318 | GLM 4.7 Flash |
| LMArena Text: Chinese | 1403 | 1329 | GLM 4.7 Flash |
| LMArena Text: German | 1336 | 1350 | GPT-4.1 Mini |
| LMArena Text: Japanese | Not measured | 1290 | Only GPT-4.1 Mini measured |
| LMArena Text: Korean | 1283 | 1298 | GPT-4.1 Mini |
| LMArena Text: French | 1332 | 1358 | GPT-4.1 Mini |
| LMArena Text: Spanish | 1350 | 1319 | GLM 4.7 Flash |
| LMArena Text: Russian | 1333 | 1324 | GLM 4.7 Flash |
| LMArena Text: Polish | 1291 | 1326 | GPT-4.1 Mini |
| LMArena Text: multi-turn | 1342 | 1354 | GPT-4.1 Mini |
| LMArena Text: longer queries | 1345 | 1344 | GLM 4.7 Flash |
| LMArena Text: writing and language | 1320 | 1319 | GLM 4.7 Flash |
| LMArena Text: entertainment and media | 1304 | 1300 | GLM 4.7 Flash |
| 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 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 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
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 Mini |
|---|---|---|
| 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 | $0.40 |
| Output $/Mtok | $0.40 | $1.60 |
| Coding index | Not benchmarked | Not benchmarked |
| Independent measurements behind it | 0 | 0 |
| Cost per solved task | Not computable | $1.818 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GLM 4.7 Flash better than GPT-4.1 Mini for coding?
Neither model has a coding score yet, so the two cannot be ranked on coding. Pick GLM 4.7 Flash for output tokens 4.0x cheaper ($0.40 vs $1.60 per million) and work measured by GPQA Diamond (Artificial Analysis run) or GPQA Diamond (Epoch AI run), where it leads.
Which is cheaper, GLM 4.7 Flash or GPT-4.1 Mini?
GLM 4.7 Flash costs $0.0653 per million input tokens and $0.40 per million output tokens; GPT-4.1 Mini costs $0.40 and $1.60. Cost per solved task is known for GPT-4.1 Mini only.
Which has the bigger context window, GLM 4.7 Flash or GPT-4.1 Mini?
GPT-4.1 Mini, with 1.05M tokens against 200K.
How many benchmarks is the GLM 4.7 Flash vs GPT-4.1 Mini 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 Mini's on 0. Where only one model has a result, the page says so instead of naming a winner.