GLM 4.7 Flash vs o4 Mini
o4 Mini leads GLM 4.7 Flash on the Artificial Analysis Intelligence Index, 16.7 to 14.9, and GLM 4.7 Flash costs 11.0x less per output token ($0.40 vs $4.40 per million). Updated October 21, 2026; 42 benchmarks have a result for both.
GLM 4.7 Flash or o4 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 11.0x cheaper ($0.40 vs $4.40 per million) and work measured by AA Intelligence Index or GPQA Diamond (Artificial Analysis run), where it leads.
- Shared results
- 42
- GLM 4.7 Flash only
- 1
- o4 Mini only
- 56
- 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
o4 Mini
o4 Mini leads, 16.7 against 14.9.
Same board, both measured
Reasoning
GPQA Diamond
No call
Only o4 Mini has a GPQA Diamond result, 74.5%.
Directional only
Math
AIME
No call
Only o4 Mini has a AIME result, 83.7%.
Directional only
Knowledge
MMLU Pro
No call
Only o4 Mini has a MMLU Pro result, 80.6%.
Directional only
Web design
Design Arena: websites
GLM 4.7 Flash
GLM 4.7 Flash leads, 1194 against 985.
Same board, both measured
Long documents
Listed context window
No call
Both take 200K tokens.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GLM 4.7 Flash
GLM 4.7 Flash $0.0003, o4 Mini $0.0033 per turn.
List prices
At a glance
- Coding index
- GLM 4.7 Flash not benchmarked, o4 Mini not benchmarked.
- Widest category
- Agentic work, 43.3 points apart on average over 1 shared benchmark.
- Widest single gap
- τ²-Bench Telecom: GLM 4.7 Flash 98.8% against o4 Mini 55.6%, 43.3 points apart on a 0 to 100 scale.
- Output price
- GLM 4.7 Flash $0.40 against o4 Mini $4.40 per million output tokens, 11.0x apart.
- Context window
- Both take 200K tokens.
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 | o4 Mini | Ties |
|---|---|---|---|---|
| Coding | 3 | 0 | ||
| Intelligence | 0 | 1 | ||
| Agentic work | 1 | 0 | ||
| Reasoning | 3 | 3 | ||
| Math | 0 | 3 | ||
| Knowledge | 3 | 1 | ||
| Web design | 6 | 0 | ||
| General | 8 | 10 | ||
| All shared boards | 24 | 18 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index30
| Benchmark | GLM 4.7 Flash | o4 Mini | Leader |
|---|---|---|---|
| Aider polyglot | Not measured | 72.0% | Only o4 Mini measured |
| SWE-bench Verified | Not measured | 64.6% | Only o4 Mini measured |
| SWE-bench Multimodal | Not measured | 33.9% | Only o4 Mini measured |
| LiveCodeBench (Vals AI) | Not measured | 82.2% | Only o4 Mini measured |
| LiveCodeBench (Artificial Analysis run) | Not measured | 85.9% | Only o4 Mini measured |
| Terminal-Bench Hard (Artificial Analysis run) | 22.0% | 15.2% | GLM 4.7 Flash |
| GSO-Bench | Not measured | 3.6% | Only o4 Mini measured |
| WeirdML | Not measured | 52.6% | Only o4 Mini measured |
| LMArena Text: coding | 1382 | 1368 | GLM 4.7 Flash |
| LMArena Text: software and IT | 1389 | 1367 | GLM 4.7 Flash |
| SciCode | Not measured | 10.8% | Only o4 Mini measured |
| Neither model has a result on the other 28 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
| Benchmark | GLM 4.7 Flash | o4 Mini | Leader |
|---|---|---|---|
| AA Intelligence Index | 14.9 | 16.7 | o4 Mini |
| Epoch Capabilities Index | Not measured | 145.5 | Only o4 Mini measured |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | GLM 4.7 Flash | o4 Mini | Leader |
|---|---|---|---|
| τ²-Bench Telecom | 98.8% | 55.6% | GLM 4.7 Flash |
| METR time horizons | Not measured | 63.9% | Only o4 Mini measured |
| Berkeley Function Calling Leaderboard (BFCL) | Not measured | 53.2% | Only o4 Mini measured |
| Neither model has a result on the other 38 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index33
| Benchmark | GLM 4.7 Flash | o4 Mini | Leader |
|---|---|---|---|
| GPQA Diamond | Not measured | 74.5% | Only o4 Mini measured |
| MMMU Pro (Vals AI) | Not measured | 79.7% | Only o4 Mini measured |
| GPQA Diamond (Artificial Analysis run) | 58.1% | 78.4% | o4 Mini |
| Humanity's Last Exam (Artificial Analysis run) | 7.6% | 16.5% | o4 Mini |
| GPQA Diamond (Epoch AI run) | 60.5% | 79.6% | o4 Mini |
| ARC-AGI | Not measured | 58.7% | Only o4 Mini measured |
| ARC-AGI-2 | Not measured | 6.1% | Only o4 Mini measured |
| SimpleBench | Not measured | 38.7% | Only o4 Mini measured |
| Chess puzzles | Not measured | 22.0% | Only o4 Mini measured |
| Mystery game puzzles | Not measured | 5.0% | Only o4 Mini measured |
| VPCT | Not measured | 57.5% | Only o4 Mini measured |
| LMArena Text: hard prompts | 1356 | 1351 | GLM 4.7 Flash |
| LMArena Text: expert | 1357 | 1343 | GLM 4.7 Flash |
| LMArena Text: hard prompts in English | 1369 | 1366 | GLM 4.7 Flash |
| LMArena Vision: diagrams | Not measured | 1197 | Only o4 Mini measured |
| LMArena Vision: homework | Not measured | 1234 | Only o4 Mini measured |
| Kagi LLM Benchmark | Not measured | 67.6% | Only o4 Mini measured |
| Neither model has a result on the other 5 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index03
| Benchmark | GLM 4.7 Flash | o4 Mini | Leader |
|---|---|---|---|
| AIME | Not measured | 83.7% | Only o4 Mini measured |
| MATH 500 (Vals AI) | Not measured | 94.2% | Only o4 Mini measured |
| MGSM (Vals AI) | Not measured | 93.4% | Only o4 Mini measured |
| AA Math Index | Not measured | 90.7 | Only o4 Mini measured |
| AIME 2025 (Artificial Analysis run) | Not measured | 90.7% | Only o4 Mini measured |
| OTIS Mock AIME | 58.3% | 81.7% | o4 Mini |
| FrontierMath, tiers 1 to 3 | Not measured | 36.1% | Only o4 Mini measured |
| FrontierMath, tier 4 | Not measured | 4.9% | Only o4 Mini measured |
| MATH level 5 | Not measured | 97.8% | Only o4 Mini measured |
| LMArena Text: math | 1355 | 1389 | o4 Mini |
| LMArena Text: mathematical work | 1369 | 1379 | o4 Mini |
| Neither model has a result on the other 2 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index31
| Benchmark | GLM 4.7 Flash | o4 Mini | Leader |
|---|---|---|---|
| MMLU Pro | Not measured | 80.6% | Only o4 Mini measured |
| LegalBench (Vals AI) | Not measured | 79.2% | Only o4 Mini measured |
| CorpFin (Vals AI) | Not measured | 59.0% | Only o4 Mini measured |
| TaxEval (Vals AI) | Not measured | 74.8% | Only o4 Mini measured |
| MortgageTax (Vals AI) | Not measured | 64.8% | Only o4 Mini measured |
| MedQA (Vals AI) | Not measured | 96.0% | Only o4 Mini measured |
| MedCode (Vals AI) | Not measured | 33.8% | Only o4 Mini measured |
| MMLU Pro (Artificial Analysis run) | Not measured | 83.2% | Only o4 Mini measured |
| SimpleQA Verified | Not measured | 19.6% | Only o4 Mini measured |
| GeoBench | Not measured | 64.0% | Only o4 Mini measured |
| LMArena Text: science | 1358 | 1354 | GLM 4.7 Flash |
| LMArena Text: medicine and healthcare | 1343 | 1361 | o4 Mini |
| LMArena Text: legal and government | 1357 | 1350 | GLM 4.7 Flash |
| LMArena Text: business and finance | 1343 | 1325 | GLM 4.7 Flash |
| FACTS Benchmark Suite | Not measured | 28.1% | Only o4 Mini measured |
| 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 | o4 Mini | Leader |
|---|---|---|---|
| Design Arena: websites | 1194 | 985 | GLM 4.7 Flash |
| Design Arena: UI components | 1208 | 983 | GLM 4.7 Flash |
| Design Arena: game dev | 1135 | 1003 | GLM 4.7 Flash |
| Design Arena: data viz | 1123 | 990 | GLM 4.7 Flash |
| Design Arena: 3D | 1121 | 854 | GLM 4.7 Flash |
| Design Arena: all code categories | 1178 | 976 | 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 index810
| Benchmark | GLM 4.7 Flash | o4 Mini | Leader |
|---|---|---|---|
| SAGE (Vals AI) | Not measured | 41.1% | Only o4 Mini measured |
| MedScribe (Vals AI) | Not measured | 69.1% | Only o4 Mini measured |
| IFBench | 60.8% | 68.7% | o4 Mini |
| Long context reasoning (AA-LCR) | 41.7% | 61.0% | o4 Mini |
| DTBench | Not measured | 77.6% | Only o4 Mini measured |
| LMCA | Not measured | 26.5% | Only o4 Mini measured |
| Fiction.LiveBench | Not measured | 77.8% | Only o4 Mini measured |
| Creative writing (Lech Mazur) | Not measured | 75.0% | Only o4 Mini measured |
| LMArena Text | 1351 | 1353 | o4 Mini |
| LMArena Text: instruction following | 1327 | 1320 | GLM 4.7 Flash |
| LMArena Text: creative writing | 1296 | 1294 | GLM 4.7 Flash |
| LMArena Vision | Not measured | 1194 | Only o4 Mini measured |
| LMArena Text: English | 1373 | 1367 | GLM 4.7 Flash |
| LMArena Text: non-English | 1330 | 1337 | o4 Mini |
| LMArena Text: Chinese | 1403 | 1354 | GLM 4.7 Flash |
| LMArena Text: German | 1336 | 1336 | GLM 4.7 Flash |
| LMArena Text: Japanese | Not measured | 1308 | Only o4 Mini measured |
| LMArena Text: Korean | 1283 | 1312 | o4 Mini |
| LMArena Text: French | 1332 | 1364 | o4 Mini |
| LMArena Text: Spanish | 1350 | 1346 | GLM 4.7 Flash |
| LMArena Text: Russian | 1333 | 1334 | o4 Mini |
| LMArena Text: Polish | 1291 | 1358 | o4 Mini |
| LMArena Text: multi-turn | 1342 | 1350 | o4 Mini |
| LMArena Text: longer queries | 1345 | 1315 | GLM 4.7 Flash |
| LMArena Text: writing and language | 1320 | 1316 | GLM 4.7 Flash |
| LMArena Text: entertainment and media | 1304 | 1308 | o4 Mini |
| LMArena Vision: English | Not measured | 1200 | Only o4 Mini measured |
| LMArena Vision: Chinese | Not measured | 1218 | Only o4 Mini measured |
| LMArena Vision: reading text | Not measured | 1197 | Only o4 Mini measured |
| LMArena Vision: humor | Not measured | 1199 | Only o4 Mini measured |
| LMArena Vision: captioning | Not measured | 1204 | Only o4 Mini measured |
| LMArena Vision: recognizing things | Not measured | 1218 | Only o4 Mini measured |
| LMArena Vision: creative writing | Not measured | 1166 | Only o4 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 Flash | o4 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 o4 Mini |
|---|---|---|
| Maker | Z.ai | OpenAI |
| Weights | Open weights | No public weights listed |
| Released | January 19, 2026 | April 16, 2025 |
| Context window | 200K | 200K |
| Input $/Mtok | $0.0653 | $1.10 |
| Output $/Mtok | $0.40 | $4.40 |
| Coding index | Not benchmarked | Not benchmarked |
| Independent measurements behind it | 0 | 0 |
| Cost per solved task | Not computable | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GLM 4.7 Flash better than o4 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 11.0x cheaper ($0.40 vs $4.40 per million) and work measured by AA Intelligence Index or GPQA Diamond (Artificial Analysis run), where it leads.
Which is cheaper, GLM 4.7 Flash or o4 Mini?
GLM 4.7 Flash costs $0.0653 per million input tokens and $0.40 per million output tokens; o4 Mini costs $1.10 and $4.40. Cost per solved task is known for neither of them.
Which has the bigger context window, GLM 4.7 Flash or o4 Mini?
Neither: both take 200K tokens.
How many benchmarks is the GLM 4.7 Flash vs o4 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 o4 Mini's on 0. Where only one model has a result, the page says so instead of naming a winner.