Enter opens the highlighted result. Esc closes.

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 FlashZ.ai
Coding
No data
Overall
42.1
Output $/M
$0.40
32
GPT-4.1 MiniOpenAI
Coding
No data
Overall
31.9
Output $/M
$1.60
10
vs boards won of 42 shared

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.

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.

Boards won, where both have a result
CategoryGLM 4.7 FlashBarsGPT-4.1 MiniTies
Coding30
Intelligence10
Agentic work10
Reasoning42
Math30
Knowledge40
Web design60
General108
All shared boards3210
CodingLike-for-likeSix of these boards feed the Vibe Coding Index30
Coding benchmarks for GLM 4.7 Flash and GPT-4.1 Mini
BenchmarkGLM 4.7 FlashGPT-4.1 MiniLeader
Aider polyglotNot measured32.4%Only GPT-4.1 Mini measured
SWE-bench VerifiedNot measured23.9%Only GPT-4.1 Mini measured
AA Coding IndexNot measured20.2Only GPT-4.1 Mini measured
LiveCodeBench (Vals AI)Not measured58.2%Only GPT-4.1 Mini measured
LiveCodeBench (Artificial Analysis run)Not measured48.3%Only GPT-4.1 Mini measured
Terminal-Bench Hard (Artificial Analysis run)22.0%7.6%GLM 4.7 Flash
WeirdMLNot measured37.6%Only GPT-4.1 Mini measured
LMArena Text: coding13821367GLM 4.7 Flash
LMArena Text: software and IT13891360GLM 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
Intelligence benchmarks for GLM 4.7 Flash and GPT-4.1 Mini
BenchmarkGLM 4.7 FlashGPT-4.1 MiniLeader
AA Intelligence Index14.910.2GLM 4.7 Flash
Epoch Capabilities IndexNot measured134.9Only GPT-4.1 Mini 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 Mini
BenchmarkGLM 4.7 FlashGPT-4.1 MiniLeader
τ²-Bench Telecom98.8%52.9%GLM 4.7 Flash
Berkeley Function Calling Leaderboard (BFCL)Not measured50.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
Reasoning benchmarks for GLM 4.7 Flash and GPT-4.1 Mini
BenchmarkGLM 4.7 FlashGPT-4.1 MiniLeader
GPQA DiamondNot measured67.9%Only GPT-4.1 Mini measured
MMMU Pro (Vals AI)Not measured70.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-AGINot measured3.5%Only GPT-4.1 Mini measured
ARC-AGI-2Not measured0.0%Only GPT-4.1 Mini measured
Chess puzzlesNot measured1.0%Only GPT-4.1 Mini measured
Mystery game puzzlesNot measured7.0%Only GPT-4.1 Mini measured
LMArena Text: hard prompts13561349GLM 4.7 Flash
LMArena Text: expert13571338GLM 4.7 Flash
LMArena Text: hard prompts in English13691362GLM 4.7 Flash
LMArena Vision: diagramsNot measured1182Only GPT-4.1 Mini measured
LMArena Vision: homeworkNot measured1214Only GPT-4.1 Mini measured
Kagi LLM BenchmarkNot measured48.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
Math benchmarks for GLM 4.7 Flash and GPT-4.1 Mini
BenchmarkGLM 4.7 FlashGPT-4.1 MiniLeader
AIMENot measured49.4%Only GPT-4.1 Mini measured
MATH 500 (Vals AI)Not measured88.0%Only GPT-4.1 Mini measured
MGSM (Vals AI)Not measured87.8%Only GPT-4.1 Mini measured
AA Math IndexNot measured46.3Only GPT-4.1 Mini measured
AIME 2025 (Artificial Analysis run)Not measured46.3%Only GPT-4.1 Mini measured
OTIS Mock AIME58.3%44.7%GLM 4.7 Flash
FrontierMath, tiers 1 to 3Not measured6.7%Only GPT-4.1 Mini measured
MATH level 5Not measured87.3%Only GPT-4.1 Mini measured
LMArena Text: math13551343GLM 4.7 Flash
LMArena Text: mathematical work13691347GLM 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
Knowledge benchmarks for GLM 4.7 Flash and GPT-4.1 Mini
BenchmarkGLM 4.7 FlashGPT-4.1 MiniLeader
MMLU ProNot measured77.2%Only GPT-4.1 Mini measured
LegalBench (Vals AI)Not measured78.0%Only GPT-4.1 Mini measured
CorpFin (Vals AI)Not measured57.9%Only GPT-4.1 Mini measured
TaxEval (Vals AI)Not measured71.9%Only GPT-4.1 Mini measured
MortgageTax (Vals AI)Not measured65.5%Only GPT-4.1 Mini measured
MedQA (Vals AI)Not measured84.6%Only GPT-4.1 Mini measured
MMLU Pro (Artificial Analysis run)Not measured78.1%Only GPT-4.1 Mini measured
SimpleQA VerifiedNot measured12.7%Only GPT-4.1 Mini measured
LMArena Text: science13581328GLM 4.7 Flash
LMArena Text: medicine and healthcare13431324GLM 4.7 Flash
LMArena Text: legal and government13571343GLM 4.7 Flash
LMArena Text: business and finance13431322GLM 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
Web design benchmarks for GLM 4.7 Flash and GPT-4.1 Mini
BenchmarkGLM 4.7 FlashGPT-4.1 MiniLeader
Design Arena: websites1194997GLM 4.7 Flash
Design Arena: UI components1208961GLM 4.7 Flash
Design Arena: game dev11351071GLM 4.7 Flash
Design Arena: data viz11231034GLM 4.7 Flash
Design Arena: 3D1121837GLM 4.7 Flash
Design Arena: all code categories1178994GLM 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 index108
General benchmarks for GLM 4.7 Flash and GPT-4.1 Mini
BenchmarkGLM 4.7 FlashGPT-4.1 MiniLeader
IFBench60.8%38.3%GLM 4.7 Flash
Long context reasoning (AA-LCR)41.7%44.0%GPT-4.1 Mini
DTBenchNot measured68.8%Only GPT-4.1 Mini measured
LMCANot measured21.1%Only GPT-4.1 Mini measured
Fiction.LiveBenchNot measured44.4%Only GPT-4.1 Mini measured
LMArena Text13511341GLM 4.7 Flash
LMArena Text: instruction following13271333GPT-4.1 Mini
LMArena Text: creative writing12961299GPT-4.1 Mini
LMArena VisionNot measured1181Only GPT-4.1 Mini measured
LMArena Text: English13731356GLM 4.7 Flash
LMArena Text: non-English13301318GLM 4.7 Flash
LMArena Text: Chinese14031329GLM 4.7 Flash
LMArena Text: German13361350GPT-4.1 Mini
LMArena Text: JapaneseNot measured1290Only GPT-4.1 Mini measured
LMArena Text: Korean12831298GPT-4.1 Mini
LMArena Text: French13321358GPT-4.1 Mini
LMArena Text: Spanish13501319GLM 4.7 Flash
LMArena Text: Russian13331324GLM 4.7 Flash
LMArena Text: Polish12911326GPT-4.1 Mini
LMArena Text: multi-turn13421354GPT-4.1 Mini
LMArena Text: longer queries13451344GLM 4.7 Flash
LMArena Text: writing and language13201319GLM 4.7 Flash
LMArena Text: entertainment and media13041300GLM 4.7 Flash
LMArena Vision: EnglishNot measured1191Only GPT-4.1 Mini measured
LMArena Vision: ChineseNot measured1186Only GPT-4.1 Mini measured
LMArena Vision: reading textNot measured1188Only GPT-4.1 Mini measured
LMArena Vision: humorNot measured1182Only GPT-4.1 Mini measured
LMArena Vision: captioningNot measured1174Only GPT-4.1 Mini measured
LMArena Vision: recognizing thingsNot measured1187Only GPT-4.1 Mini measured
LMArena Vision: creative writingNot measured1182Only 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
Image generation benchmarks for GLM 4.7 Flash and GPT-4.1 Mini
BenchmarkGLM 4.7 FlashGPT-4.1 MiniLeader
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 Mini$0.0012Fits 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 Mini$0.025Fits 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 Mini$0.096Fits 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 Mini
SpecificationZ.ai GLM 4.7 FlashOpenAI GPT-4.1 Mini
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedJanuary 19, 2026April 14, 2025
Context window200K1.05M
Input $/Mtok$0.0653$0.40
Output $/Mtok$0.40$1.60
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it00
Cost per solved taskNot computable$1.818
SourceOpenRouter listingOpenRouter 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.

Compare next