Enter opens the highlighted result. Esc closes.

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.

GLM 4.7 FlashZ.ai
Coding
No data
Overall
14.9
Output $/M
$0.40
14
GPT-4.1OpenAI
Coding
No data
Overall
12.7
Output $/M
$8.00
28
vs boards won of 42 shared

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.

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.

Boards won, where both have a result
CategoryGLM 4.7 FlashBarsGPT-4.1Ties
Coding12
Intelligence10
Agentic work10
Reasoning15
Math21
Knowledge04
Web design60
General216
All shared boards1428
CodingLike-for-likeSix of these boards feed the Vibe Coding Index12
Coding benchmarks for GLM 4.7 Flash and GPT-4.1
BenchmarkGLM 4.7 FlashGPT-4.1Leader
Aider polyglotNot measured52.4%Only GPT-4.1 measured
SWE-bench VerifiedNot measured39.6%Only GPT-4.1 measured
SWE-bench MultimodalNot measured31.1%Only GPT-4.1 measured
LiveCodeBench (Vals AI)Not measured54.7%Only GPT-4.1 measured
LiveCodeBench (Artificial Analysis run)Not measured45.7%Only GPT-4.1 measured
Terminal-Bench Hard (Artificial Analysis run)22.0%13.6%GLM 4.7 Flash
WeirdMLNot measured39.0%Only GPT-4.1 measured
ALE-BenchNot measured558.1Only GPT-4.1 measured
LMArena Text: coding13821390GPT-4.1
LMArena Text: software and IT13891391GPT-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
Intelligence benchmarks for GLM 4.7 Flash and GPT-4.1
BenchmarkGLM 4.7 FlashGPT-4.1Leader
AA Intelligence Index14.912.7GLM 4.7 Flash
Epoch Capabilities IndexNot measured136.7Only GPT-4.1 measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GLM 4.7 Flash and GPT-4.1
BenchmarkGLM 4.7 FlashGPT-4.1Leader
τ²-Bench Telecom98.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
Reasoning benchmarks for GLM 4.7 Flash and GPT-4.1
BenchmarkGLM 4.7 FlashGPT-4.1Leader
GPQA DiamondNot measured65.4%Only GPT-4.1 measured
MMMU Pro (Vals AI)Not measured72.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-AGINot measured5.5%Only GPT-4.1 measured
ARC-AGI-2Not measured0.4%Only GPT-4.1 measured
SimpleBenchNot measured27.0%Only GPT-4.1 measured
Chess puzzlesNot measured3.0%Only GPT-4.1 measured
LMArena Text: hard prompts13561384GPT-4.1
LMArena Text: expert13571364GPT-4.1
LMArena Text: hard prompts in English13691393GPT-4.1
LMArena Vision: diagramsNot measured1215Only GPT-4.1 measured
LMArena Vision: homeworkNot measured1248Only 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
Math benchmarks for GLM 4.7 Flash and GPT-4.1
BenchmarkGLM 4.7 FlashGPT-4.1Leader
AIMENot measured39.6%Only GPT-4.1 measured
MATH 500 (Vals AI)Not measured87.2%Only GPT-4.1 measured
MGSM (Vals AI)Not measured87.7%Only GPT-4.1 measured
AA Math IndexNot measured34.7Only GPT-4.1 measured
AIME 2025 (Artificial Analysis run)Not measured34.7%Only GPT-4.1 measured
OTIS Mock AIME58.3%38.3%GLM 4.7 Flash
FrontierMath, tiers 1 to 3Not measured6.0%Only GPT-4.1 measured
MATH level 5Not measured83.0%Only GPT-4.1 measured
LMArena Text: math13551369GPT-4.1
LMArena Text: mathematical work13691360GLM 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
Knowledge benchmarks for GLM 4.7 Flash and GPT-4.1
BenchmarkGLM 4.7 FlashGPT-4.1Leader
MMLU ProNot measured80.5%Only GPT-4.1 measured
LegalBench (Vals AI)Not measured83.1%Only GPT-4.1 measured
CaseLaw (Vals AI)Not measured69.9%Only GPT-4.1 measured
CorpFin (Vals AI)Not measured63.0%Only GPT-4.1 measured
TaxEval (Vals AI)Not measured75.1%Only GPT-4.1 measured
MortgageTax (Vals AI)Not measured65.9%Only GPT-4.1 measured
MedQA (Vals AI)Not measured91.2%Only GPT-4.1 measured
MMLU Pro (Artificial Analysis run)Not measured80.6%Only GPT-4.1 measured
SimpleQA VerifiedNot measured31.1%Only GPT-4.1 measured
GeoBenchNot measured72.0%Only GPT-4.1 measured
LMArena Text: science13581382GPT-4.1
LMArena Text: medicine and healthcare13431379GPT-4.1
LMArena Text: legal and government13571399GPT-4.1
LMArena Text: business and finance13431369GPT-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
Web design benchmarks for GLM 4.7 Flash and GPT-4.1
BenchmarkGLM 4.7 FlashGPT-4.1Leader
Design Arena: websites11941039GLM 4.7 Flash
Design Arena: UI components12081000GLM 4.7 Flash
Design Arena: game dev11351079GLM 4.7 Flash
Design Arena: data viz11231104GLM 4.7 Flash
Design Arena: 3D1121850GLM 4.7 Flash
Design Arena: all code categories11781026GLM 4.7 Flash
Design Arena: SVG1038Not measuredOnly 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
General benchmarks for GLM 4.7 Flash and GPT-4.1
BenchmarkGLM 4.7 FlashGPT-4.1Leader
IFBench60.8%43.0%GLM 4.7 Flash
Long context reasoning (AA-LCR)41.7%68.3%GPT-4.1
DTBenchNot measured68.3%Only GPT-4.1 measured
LMCANot measured25.6%Only GPT-4.1 measured
Fiction.LiveBenchNot measured63.9%Only GPT-4.1 measured
LMArena Text13511383GPT-4.1
LMArena Text: instruction following13271367GPT-4.1
LMArena Text: creative writing12961363GPT-4.1
LMArena VisionNot measured1210Only GPT-4.1 measured
LMArena Text: English13731392GPT-4.1
LMArena Text: non-English13301370GPT-4.1
LMArena Text: Chinese14031382GLM 4.7 Flash
LMArena Text: German13361381GPT-4.1
LMArena Text: JapaneseNot measured1319Only GPT-4.1 measured
LMArena Text: Korean12831338GPT-4.1
LMArena Text: French13321382GPT-4.1
LMArena Text: Spanish13501376GPT-4.1
LMArena Text: Russian13331377GPT-4.1
LMArena Text: Polish12911389GPT-4.1
LMArena Text: multi-turn13421397GPT-4.1
LMArena Text: longer queries13451385GPT-4.1
LMArena Text: writing and language13201371GPT-4.1
LMArena Text: entertainment and media13041365GPT-4.1
LMArena Vision: EnglishNot measured1209Only GPT-4.1 measured
LMArena Vision: ChineseNot measured1226Only GPT-4.1 measured
LMArena Vision: reading textNot measured1218Only GPT-4.1 measured
LMArena Vision: humorNot measured1196Only GPT-4.1 measured
LMArena Vision: captioningNot measured1207Only GPT-4.1 measured
LMArena Vision: recognizing thingsNot measured1208Only GPT-4.1 measured
LMArena Vision: creative writingNot measured1210Only 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
Image generation benchmarks for GLM 4.7 Flash and GPT-4.1
BenchmarkGLM 4.7 FlashGPT-4.1Leader
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$0.0003Fits in one request
GPT-4.1$0.0060Fits in one request

GLM 4.7 Flash costs less

Repository review

50K input + 3K output tokens

GLM 4.7 Flash$0.0045Fits in one request
GPT-4.1$0.124Fits in one request

GLM 4.7 Flash costs less

Agent loop

200K input + 10K output tokens

GLM 4.7 Flash$0.017Exceeds the context window
GPT-4.1$0.480Fits in one request

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.

Specifications of GLM 4.7 Flash and GPT-4.1
SpecificationZ.ai GLM 4.7 FlashOpenAI GPT-4.1
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedJanuary 19, 2026April 14, 2025
Context window200K1.05M
Input $/Mtok$0.0653$2.00
Output $/Mtok$0.40$8.00
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it00
Cost per solved taskNot computable$0.37
SourceOpenRouter listingOpenRouter 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.

Compare next