LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

GLM 4.7 vs GPT-4.1 Mini

Updated October 21, 2026. 60 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

GLM 4.7Z.ai
Coding
33.6
Overall
22.2
Output $/M
$1.98
58
GPT-4.1 MiniOpenAI
Coding
28.5
Overall
10.2
Output $/M
$1.60
2
vs boards won of 60 shared

Decision reading

Pick GLM 4.7 for coding: it scores 33.6 on the Vibe Coding Index against 28.5 for GPT-4.1 Mini, though on 1 benchmark against 2.

Pick GPT-4.1 Mini when output tokens cost 1.2x less, or when the context window is larger, 1.05M against 205K tokens.

Shared results
60
GLM 4.7 only
20
GPT-4.1 Mini only
24
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 33.6 from 1 benchmark, GPT-4.1 Mini 28.5 from 2 benchmarks.
Widest category
Agentic work, 43.0 points apart on average over 1 shared benchmark.
Widest single gap
AA Math Index: GLM 4.7 95.0 against GPT-4.1 Mini 46.3, 48.7 points apart on a 0 to 100 scale.
Output price
GLM 4.7 $1.98 against GPT-4.1 Mini $1.60 per million output tokens, 1.2x apart.
Context window
GLM 4.7 takes 205K 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.7BarsGPT-4.1 MiniTies
Coding60
Intelligence20
Agentic work10
Reasoning80
Math70
Knowledge92
Web design60
General190
All shared boards582
CodingLike-for-likeFour of these boards feed the Vibe Coding Index60
Coding benchmarks for GLM 4.7 and GPT-4.1 Mini
BenchmarkGLM 4.7GPT-4.1 MiniLeader
Aider polyglotNot measured32.4%Only GPT-4.1 Mini measured
SWE-bench VerifiedNot measured23.9%Only GPT-4.1 Mini measured
LMArena WebDev1435Not measuredOnly GLM 4.7 measured
AA Coding Index45.320.2GLM 4.7
LiveCodeBench (Vals AI)82.2%58.2%GLM 4.7
SWE-bench Verified (Vals AI)69.4%Not measuredOnly GLM 4.7 measured
LiveCodeBench (Artificial Analysis run)89.4%48.3%GLM 4.7
Terminal-Bench Hard (Artificial Analysis run)31.8%7.6%GLM 4.7
Terminal-Bench33.4%Not measuredOnly GLM 4.7 measured
WeirdMLNot measured37.6%Only GPT-4.1 Mini measured
ALE-Bench399.5Not measuredOnly GLM 4.7 measured
LMArena Text: coding14541367GLM 4.7
LMArena Text: software and IT14531360GLM 4.7
LMArena WebDev: React1420Not measuredOnly GLM 4.7 measured
LMArena WebDev: HTML1447Not measuredOnly GLM 4.7 measured
Neither model has a result on the other 23 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GLM 4.7 and GPT-4.1 Mini
BenchmarkGLM 4.7GPT-4.1 MiniLeader
AA Intelligence Index22.210.2GLM 4.7
Epoch Capabilities Index143.6134.9GLM 4.7
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GLM 4.7 and GPT-4.1 Mini
BenchmarkGLM 4.7GPT-4.1 MiniLeader
Design Arena: agents building full-stack apps1050Not measuredOnly GLM 4.7 measured
Design Arena: agents building mobile apps1105Not measuredOnly GLM 4.7 measured
Design Arena: agents building Android apps1118Not measuredOnly GLM 4.7 measured
Design Arena: agents building Godot games1058Not measuredOnly GLM 4.7 measured
τ²-Bench Telecom95.9%52.9%GLM 4.7
Vending-Bench 2$2,377Not measuredOnly GLM 4.7 measured
Neither model has a result on the other 33 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index80
Reasoning benchmarks for GLM 4.7 and GPT-4.1 Mini
BenchmarkGLM 4.7GPT-4.1 MiniLeader
GPQA Diamond80.0%67.9%GLM 4.7
MMMU Pro (Vals AI)Not measured70.5%Only GPT-4.1 Mini measured
GPQA Diamond (Artificial Analysis run)85.9%66.4%GLM 4.7
Humanity's Last Exam (Artificial Analysis run)27.4%5.0%GLM 4.7
GPQA Diamond (Epoch AI run)83.3%65.8%GLM 4.7
ARC-AGINot measured3.5%Only GPT-4.1 Mini measured
ARC-AGI-2Not measured0.0%Only GPT-4.1 Mini measured
SimpleBench47.7%Not measuredOnly GLM 4.7 measured
Chess puzzles21.0%1.0%GLM 4.7
Mystery game puzzlesNot measured7.0%Only GPT-4.1 Mini measured
LMArena Text: hard prompts14431349GLM 4.7
LMArena Text: expert14241338GLM 4.7
LMArena Text: hard prompts in English14521362GLM 4.7
LMArena Vision: diagramsNot measured1182Only GPT-4.1 Mini measured
LMArena Vision: homeworkNot measured1214Only GPT-4.1 Mini measured
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index70
Math benchmarks for GLM 4.7 and GPT-4.1 Mini
BenchmarkGLM 4.7GPT-4.1 MiniLeader
AIME93.3%49.4%GLM 4.7
MATH 500 (Vals AI)Not measured88.0%Only GPT-4.1 Mini measured
MGSM (Vals AI)88.2%87.8%GLM 4.7
AA Math Index95.046.3GLM 4.7
AIME 2025 (Artificial Analysis run)95.0%46.3%GLM 4.7
OTIS Mock AIME83.3%44.7%GLM 4.7
FrontierMath, tiers 1 to 3Not measured6.7%Only GPT-4.1 Mini measured
ProofBench6.0%Not measuredOnly GLM 4.7 measured
MATH level 5Not measured87.3%Only GPT-4.1 Mini measured
LMArena Text: math14241343GLM 4.7
LMArena Text: mathematical work14111347GLM 4.7
Neither model has a result on the other 2 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index92
Knowledge benchmarks for GLM 4.7 and GPT-4.1 Mini
BenchmarkGLM 4.7GPT-4.1 MiniLeader
MMLU Pro82.7%77.2%GLM 4.7
LegalBench (Vals AI)83.4%78.0%GLM 4.7
CaseLaw (Vals AI)54.9%Not measuredOnly GLM 4.7 measured
CorpFin (Vals AI)46.4%57.9%GPT-4.1 Mini
TaxEval (Vals AI)68.8%71.9%GPT-4.1 Mini
MortgageTax (Vals AI)Not measured65.5%Only GPT-4.1 Mini measured
MedQA (Vals AI)93.7%84.6%GLM 4.7
MedCode (Vals AI)32.8%Not measuredOnly GLM 4.7 measured
MMLU Pro (Artificial Analysis run)85.6%78.1%GLM 4.7
SimpleQA Verified32.2%12.7%GLM 4.7
LMArena Text: science14571328GLM 4.7
LMArena Text: medicine and healthcare14691324GLM 4.7
LMArena Text: legal and government14441343GLM 4.7
LMArena Text: business and finance14291322GLM 4.7
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 and GPT-4.1 Mini
BenchmarkGLM 4.7GPT-4.1 MiniLeader
Design Arena: websites1226997GLM 4.7
Design Arena: UI components1199961GLM 4.7
Design Arena: game dev11891071GLM 4.7
Design Arena: data viz11951034GLM 4.7
Design Arena: 3D1191837GLM 4.7
Design Arena: all code categories1217994GLM 4.7
Design Arena: SVG1142Not measuredOnly GLM 4.7 measured
Design Arena: ASCII art1165Not measuredOnly GLM 4.7 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index190
General benchmarks for GLM 4.7 and GPT-4.1 Mini
BenchmarkGLM 4.7GPT-4.1 MiniLeader
MedScribe (Vals AI)68.6%Not measuredOnly GLM 4.7 measured
IFBench67.9%38.3%GLM 4.7
Long context reasoning (AA-LCR)71.0%44.0%GLM 4.7
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
CL-bench15.9%Not measuredOnly GLM 4.7 measured
CL-bench Life10.9%Not measuredOnly GLM 4.7 measured
LMArena Text14351341GLM 4.7
LMArena Text: instruction following14121333GLM 4.7
LMArena Text: creative writing14011299GLM 4.7
LMArena VisionNot measured1181Only GPT-4.1 Mini measured
LMArena Text: English14531356GLM 4.7
LMArena Text: non-English14171318GLM 4.7
LMArena Text: Chinese14951329GLM 4.7
LMArena Text: German14261350GLM 4.7
LMArena Text: Japanese14391290GLM 4.7
LMArena Text: Korean13991298GLM 4.7
LMArena Text: French14321358GLM 4.7
LMArena Text: Spanish14341319GLM 4.7
LMArena Text: Russian14231324GLM 4.7
LMArena Text: Polish14351326GLM 4.7
LMArena Text: multi-turn14461354GLM 4.7
LMArena Text: longer queries14321344GLM 4.7
LMArena Text: writing and language14111319GLM 4.7
LMArena Text: entertainment and media14001300GLM 4.7
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 13 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GLM 4.7 and GPT-4.1 Mini
BenchmarkGLM 4.7GPT-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$0.0015Fits in one request
GPT-4.1 Mini$0.0012Fits in one request

GPT-4.1 Mini costs less

Repository review

50K input + 3K output tokens

GLM 4.7$0.033Fits in one request
GPT-4.1 Mini$0.025Fits in one request

GPT-4.1 Mini costs less

Agent loop

200K input + 10K output tokens

GLM 4.7$0.128Exceeds the context window
GPT-4.1 Mini$0.096Fits in one request

GPT-4.1 Mini 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 and GPT-4.1 Mini
SpecificationZ.ai GLM 4.7OpenAI GPT-4.1 Mini
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedDecember 22, 2025April 14, 2025
Context window205K1.05M
Input $/Mtok$0.54$0.40
Output $/Mtok$1.98$1.60
Coding index33.628.5
Independent measurements behind it12
Cost per solved task$0.29$1.818
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 4.7 better than GPT-4.1 Mini for coding?

Pick GLM 4.7 for coding: it scores 33.6 on the Vibe Coding Index against 28.5 for GPT-4.1 Mini, though on 1 benchmark against 2. Pick GPT-4.1 Mini when output tokens cost 1.2x less, or when the context window is larger, 1.05M against 205K tokens.

Which is cheaper, GLM 4.7 or GPT-4.1 Mini?

GLM 4.7 costs $0.54 per million input tokens and $1.98 per million output tokens; GPT-4.1 Mini costs $0.40 and $1.60. Per solved SWE-bench Verified task, GLM 4.7 costs $0.29 and GPT-4.1 Mini $1.818.

Which has the bigger context window, GLM 4.7 or GPT-4.1 Mini?

GPT-4.1 Mini, with 1.05M tokens against 205K.

How many benchmarks is the GLM 4.7 vs GPT-4.1 Mini comparison based on?

60 benchmarks have a result for both models as of October 21, 2026. GLM 4.7's coding index rests on 1 independent benchmark and GPT-4.1 Mini's on 2. Where only one model has a result, the page says so instead of naming a winner.

Compare next