GLM 4.7 Flash vs GPT-5
Updated October 21, 2026. 43 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.
Decision reading
Only GPT-5 has a coding score, 38.8 on the Vibe Coding Index; GLM 4.7 Flash has none, so the two cannot be ranked on coding.
GLM 4.7 Flash has the edge where output tokens cost 25.0x less, and where what matters is τ²-Bench Telecom or Design Arena: websites, where it leads.
- Shared results
- 43
- GLM 4.7 Flash only
- 0
- GPT-5 only
- 66
- 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
Only GPT-5 has a coding score, so no call is made.
One side not measured
Intelligence
AA Intelligence Index
GPT-5
GPT-5 leads, 23.0 against 14.9.
Same board, both measured
Reasoning
GPQA Diamond
No call
Only GPT-5 has a GPQA Diamond result, 85.6%.
Directional only
Math
AIME
No call
Only GPT-5 has a AIME result, 93.4%.
Directional only
Knowledge
MMLU Pro
No call
Only GPT-5 has a MMLU Pro result, 86.5%.
Directional only
Web design
Design Arena: websites
GLM 4.7 Flash
GLM 4.7 Flash leads, 1194 against 1185.
Same board, both measured
Long documents
Listed context window
GPT-5
GPT-5 takes 400K tokens against 200K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GLM 4.7 Flash
GLM 4.7 Flash $0.0003, GPT-5 $0.0063 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only GPT-5 has the number, $0.39.
Directional only
At a glance
- Coding index
- GLM 4.7 Flash not benchmarked, GPT-5 38.8 from 3 benchmarks.
- Widest category
- Reasoning, 17.1 points apart on average over 6 shared benchmarks.
- Widest single gap
- Long context reasoning (AA-LCR): GLM 4.7 Flash 41.7% against GPT-5 78.2%, 36.5 points apart on a 0 to 100 scale.
- Output price
- GLM 4.7 Flash $0.40 against GPT-5 $10.00 per million output tokens, 25.0x apart.
- Context window
- GLM 4.7 Flash takes 200K tokens, GPT-5 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 Flash | Bars | GPT-5 | Ties |
|---|---|---|---|---|
| Coding | 0 | 3 | ||
| Intelligence | 0 | 1 | ||
| Agentic work | 1 | 0 | ||
| Reasoning | 0 | 6 | ||
| Math | 0 | 3 | ||
| Knowledge | 0 | 4 | ||
| Web design | 4 | 3 | ||
| General | 0 | 18 | ||
| All shared boards | 5 | 38 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index03
| Benchmark | GLM 4.7 Flash | GPT-5 | Leader |
|---|---|---|---|
| Aider polyglot | Not measured | 88.0% | Only GPT-5 measured |
| SWE-bench Verified | Not measured | 74.4% | Only GPT-5 measured |
| LMArena WebDev | Not measured | 1418 | Only GPT-5 measured |
| AA Coding Index | Not measured | 37.8 | Only GPT-5 measured |
| LiveCodeBench (Vals AI) | Not measured | 85.9% | Only GPT-5 measured |
| SWE-bench Verified (Vals AI) | Not measured | 69.0% | Only GPT-5 measured |
| Vibe Code Bench (Vals AI) | Not measured | 20.1% | Only GPT-5 measured |
| LiveCodeBench (Artificial Analysis run) | Not measured | 84.6% | Only GPT-5 measured |
| Terminal-Bench Hard (Artificial Analysis run) | 22.0% | 37.9% | GPT-5 |
| Terminal-Bench | Not measured | 49.6% | Only GPT-5 measured |
| GSO-Bench | Not measured | 6.9% | Only GPT-5 measured |
| WeirdML | Not measured | 60.7% | Only GPT-5 measured |
| ALE-Bench | Not measured | 807.6 | Only GPT-5 measured |
| LMArena Text: coding | 1382 | 1436 | GPT-5 |
| LMArena Text: software and IT | 1389 | 1420 | GPT-5 |
| LMArena WebDev: HTML | Not measured | 1427 | Only GPT-5 measured |
| Neither model has a result on the other 22 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
| Benchmark | GLM 4.7 Flash | GPT-5 | Leader |
|---|---|---|---|
| AA Intelligence Index | 14.9 | 23.0 | GPT-5 |
| Epoch Capabilities Index | Not measured | 150.0 | Only GPT-5 measured |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | GLM 4.7 Flash | GPT-5 | Leader |
|---|---|---|---|
| τ²-Bench Telecom | 98.8% | 86.5% | GLM 4.7 Flash |
| METR time horizons | Not measured | 69.6% | Only GPT-5 measured |
| Remote Labor Index | Not measured | 1.7% | Only GPT-5 measured |
| GDPval | Not measured | 34.8% | Only GPT-5 measured |
| BALROG | Not measured | 32.8% | Only GPT-5 measured |
| DeepResearch Bench | Not measured | 49.6% | Only GPT-5 measured |
| Neither model has a result on the other 33 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index06
| Benchmark | GLM 4.7 Flash | GPT-5 | Leader |
|---|---|---|---|
| GPQA Diamond | Not measured | 85.6% | Only GPT-5 measured |
| MMMU Pro (Vals AI) | Not measured | 81.5% | Only GPT-5 measured |
| GPQA Diamond (Artificial Analysis run) | 58.1% | 85.4% | GPT-5 |
| Humanity's Last Exam (Artificial Analysis run) | 7.6% | 28.5% | GPT-5 |
| GPQA Diamond (Epoch AI run) | 60.5% | 86.2% | GPT-5 |
| ARC-AGI | Not measured | 65.7% | Only GPT-5 measured |
| ARC-AGI-2 | Not measured | 9.9% | Only GPT-5 measured |
| SimpleBench | Not measured | 56.7% | Only GPT-5 measured |
| Chess puzzles | Not measured | 36.0% | Only GPT-5 measured |
| Mystery game puzzles | Not measured | 23.0% | Only GPT-5 measured |
| EBR-bench | Not measured | 12.7% | Only GPT-5 measured |
| VPCT | Not measured | 66.0% | Only GPT-5 measured |
| LMArena Text: hard prompts | 1356 | 1415 | GPT-5 |
| LMArena Text: expert | 1357 | 1419 | GPT-5 |
| LMArena Text: hard prompts in English | 1369 | 1419 | GPT-5 |
| LMArena Vision: diagrams | Not measured | 1252 | Only GPT-5 measured |
| LMArena Vision: homework | Not measured | 1278 | Only GPT-5 measured |
| Neither model has a result on the other 4 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index03
| Benchmark | GLM 4.7 Flash | GPT-5 | Leader |
|---|---|---|---|
| AIME | Not measured | 93.4% | Only GPT-5 measured |
| MATH 500 (Vals AI) | Not measured | 96.0% | Only GPT-5 measured |
| MGSM (Vals AI) | Not measured | 92.8% | Only GPT-5 measured |
| AA Math Index | Not measured | 94.3 | Only GPT-5 measured |
| AIME 2025 (Artificial Analysis run) | Not measured | 94.3% | Only GPT-5 measured |
| OTIS Mock AIME | 58.3% | 91.4% | GPT-5 |
| FrontierMath, tiers 1 to 3 | Not measured | 55.4% | Only GPT-5 measured |
| FrontierMath, tier 4 | Not measured | 22.0% | Only GPT-5 measured |
| ProofBench | Not measured | 18.0% | Only GPT-5 measured |
| MATH level 5 | Not measured | 98.1% | Only GPT-5 measured |
| LMArena Text: math | 1355 | 1407 | GPT-5 |
| LMArena Text: mathematical work | 1369 | 1405 | GPT-5 |
| Neither model has a result on the other 1 board here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index04
| Benchmark | GLM 4.7 Flash | GPT-5 | Leader |
|---|---|---|---|
| MMLU Pro | Not measured | 86.5% | Only GPT-5 measured |
| LegalBench (Vals AI) | Not measured | 86.0% | Only GPT-5 measured |
| CaseLaw (Vals AI) | Not measured | 66.5% | Only GPT-5 measured |
| CorpFin (Vals AI) | Not measured | 61.1% | Only GPT-5 measured |
| TaxEval (Vals AI) | Not measured | 73.4% | Only GPT-5 measured |
| MortgageTax (Vals AI) | Not measured | 65.5% | Only GPT-5 measured |
| MedQA (Vals AI) | Not measured | 96.3% | Only GPT-5 measured |
| MedCode (Vals AI) | Not measured | 49.6% | Only GPT-5 measured |
| MMLU Pro (Artificial Analysis run) | Not measured | 87.1% | Only GPT-5 measured |
| SimpleQA Verified | Not measured | 50.1% | Only GPT-5 measured |
| GeoBench | Not measured | 81.0% | Only GPT-5 measured |
| LMArena Text: science | 1358 | 1416 | GPT-5 |
| LMArena Text: medicine and healthcare | 1343 | 1413 | GPT-5 |
| LMArena Text: legal and government | 1357 | 1431 | GPT-5 |
| LMArena Text: business and finance | 1343 | 1400 | GPT-5 |
| Neither model has a result on the other 2 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index43
| Benchmark | GLM 4.7 Flash | GPT-5 | Leader |
|---|---|---|---|
| Design Arena: websites | 1194 | 1185 | GLM 4.7 Flash |
| Design Arena: UI components | 1208 | 1180 | GLM 4.7 Flash |
| Design Arena: game dev | 1135 | 1185 | GPT-5 |
| Design Arena: data viz | 1123 | 1221 | GPT-5 |
| Design Arena: 3D | 1121 | 1056 | GLM 4.7 Flash |
| Design Arena: all code categories | 1178 | 1168 | GLM 4.7 Flash |
| Design Arena: SVG | 1038 | 1189 | GPT-5 |
| Design Arena: ASCII art | Not measured | 1140 | Only GPT-5 measured |
| Neither model has a result on the other 1 board here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index018
| Benchmark | GLM 4.7 Flash | GPT-5 | Leader |
|---|---|---|---|
| SAGE (Vals AI) | Not measured | 43.7% | Only GPT-5 measured |
| MedScribe (Vals AI) | Not measured | 83.7% | Only GPT-5 measured |
| IFBench | 60.8% | 73.1% | GPT-5 |
| Long context reasoning (AA-LCR) | 41.7% | 78.2% | GPT-5 |
| DTBench | Not measured | 90.7% | Only GPT-5 measured |
| LMCA | Not measured | 40.0% | Only GPT-5 measured |
| Fiction.LiveBench | Not measured | 97.2% | Only GPT-5 measured |
| Creative writing (Lech Mazur) | Not measured | 86.0% | Only GPT-5 measured |
| LMArena Text | 1351 | 1406 | GPT-5 |
| LMArena Text: instruction following | 1327 | 1388 | GPT-5 |
| LMArena Text: creative writing | 1296 | 1365 | GPT-5 |
| LMArena Vision | Not measured | 1232 | Only GPT-5 measured |
| LMArena Text: English | 1373 | 1409 | GPT-5 |
| LMArena Text: non-English | 1330 | 1397 | GPT-5 |
| LMArena Text: Chinese | 1403 | 1422 | GPT-5 |
| LMArena Text: German | 1336 | 1416 | GPT-5 |
| LMArena Text: Japanese | Not measured | 1409 | Only GPT-5 measured |
| LMArena Text: Korean | 1283 | 1360 | GPT-5 |
| LMArena Text: French | 1332 | 1409 | GPT-5 |
| LMArena Text: Spanish | 1350 | 1399 | GPT-5 |
| LMArena Text: Russian | 1333 | 1407 | GPT-5 |
| LMArena Text: Polish | 1291 | 1431 | GPT-5 |
| LMArena Text: multi-turn | 1342 | 1426 | GPT-5 |
| LMArena Text: longer queries | 1345 | 1399 | GPT-5 |
| LMArena Text: writing and language | 1320 | 1384 | GPT-5 |
| LMArena Text: entertainment and media | 1304 | 1379 | GPT-5 |
| LMArena Vision: English | Not measured | 1231 | Only GPT-5 measured |
| LMArena Vision: Chinese | Not measured | 1267 | Only GPT-5 measured |
| LMArena Vision: reading text | Not measured | 1246 | Only GPT-5 measured |
| LMArena Vision: humor | Not measured | 1219 | Only GPT-5 measured |
| LMArena Vision: captioning | Not measured | 1212 | Only GPT-5 measured |
| LMArena Vision: recognizing things | Not measured | 1263 | Only GPT-5 measured |
| LMArena Vision: creative writing | Not measured | 1210 | Only GPT-5 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 | GPT-5 | 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-5 |
|---|---|---|
| Maker | Z.ai | OpenAI |
| Weights | Open weights | No public weights listed |
| Released | January 19, 2026 | August 7, 2025 |
| Context window | 200K | 400K |
| Input $/Mtok | $0.0653 | $1.25 |
| Output $/Mtok | $0.40 | $10.00 |
| Coding index | Not benchmarked | 38.8 |
| Independent measurements behind it | 0 | 3 |
| Cost per solved task | Not computable | $0.39 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GLM 4.7 Flash better than GPT-5 for coding?
Only GPT-5 has a coding score, 38.8 on the Vibe Coding Index; GLM 4.7 Flash has none, so the two cannot be ranked on coding. GLM 4.7 Flash has the edge where output tokens cost 25.0x less, and where what matters is τ²-Bench Telecom or Design Arena: websites, where it leads.
Which is cheaper, GLM 4.7 Flash or GPT-5?
GLM 4.7 Flash costs $0.0653 per million input tokens and $0.40 per million output tokens; GPT-5 costs $1.25 and $10.00. Cost per solved task is known for GPT-5 only.
Which has the bigger context window, GLM 4.7 Flash or GPT-5?
GPT-5, with 400K tokens against 200K.
How many benchmarks is the GLM 4.7 Flash vs GPT-5 comparison based on?
43 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-5's on 3. Where only one model has a result, the page says so instead of naming a winner.