Enter opens the highlighted result. Esc closes.

GLM 5 vs GPT-4.1 Mini

GLM 5 leads GPT-4.1 Mini on the Artificial Analysis Intelligence Index, 27.9 to 10.2, and GPT-4.1 Mini costs 2.0x less per output token ($1.60 vs $3.20 per million). Updated October 21, 2026; 57 benchmarks have a result for both.

GLM 5Z.ai
Coding
41.7
Overall
54.3
Output $/M
$3.20
56
GPT-4.1 MiniOpenAI
Coding
No data
Overall
31.9
Output $/M
$1.60
1
vs boards won of 57 shared

GLM 5 or GPT-4.1 Mini: which to pick

Only GLM 5 has a coding score, 41.7 on the Vibe Coding Index; GPT-4.1 Mini has none, so the two cannot be ranked on coding.

Pick GPT-4.1 Mini for output tokens 2.0x cheaper ($1.60 vs $3.20 per million) and a larger context window (1.05M against 205K tokens).

Shared results
57
GLM 5 only
19
GPT-4.1 Mini only
29
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 5 41.7 from 3 benchmarks, GPT-4.1 Mini not benchmarked.
Widest category
Agentic work, 45.3 points apart on average over 1 shared benchmark.
Widest single gap
Design Arena: 3D: GLM 5 1229 against GPT-4.1 Mini 837, 49.0 points apart on a 0 to 100 scale.
Output price
GLM 5 $3.20 against GPT-4.1 Mini $1.60 per million output tokens, 2.0x apart.
Context window
GLM 5 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 5BarsGPT-4.1 MiniTies
Coding60
Intelligence20
Agentic work10
Reasoning100
Math40
Knowledge81
Web design60
General190
All shared boards561
CodingLike-for-likeSix of these boards feed the Vibe Coding Index60
Coding benchmarks for GLM 5 and GPT-4.1 Mini
BenchmarkGLM 5GPT-4.1 MiniLeader
Aider polyglotNot measured32.4%Only GPT-4.1 Mini measured
SWE-bench Verified72.8%23.9%GLM 5
SWE-bench Multilingual69.7%Not measuredOnly GLM 5 measured
LMArena WebDev1435Not measuredOnly GLM 5 measured
AA Coding IndexNot measured20.2Only GPT-4.1 Mini measured
LiveCodeBench (Vals AI)81.9%58.2%GLM 5
SWE-bench Verified (Vals AI)71.4%Not measuredOnly GLM 5 measured
Vibe Code Bench (Vals AI)23.4%Not measuredOnly GLM 5 measured
LiveCodeBench (Artificial Analysis run)Not measured48.3%Only GPT-4.1 Mini measured
Terminal-Bench Hard (Artificial Analysis run)43.2%7.6%GLM 5
Terminal-Bench52.4%Not measuredOnly GLM 5 measured
WeirdML48.2%37.6%GLM 5
ALE-Bench765.6Not measuredOnly GLM 5 measured
LMArena Text: coding14611367GLM 5
LMArena Text: software and IT14601360GLM 5
LMArena WebDev: React1424Not measuredOnly GLM 5 measured
LMArena WebDev: HTML1450Not measuredOnly GLM 5 measured
Neither model has a result on the other 22 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GLM 5 and GPT-4.1 Mini
BenchmarkGLM 5GPT-4.1 MiniLeader
AA Intelligence Index27.910.2GLM 5
Epoch Capabilities Index145.8134.9GLM 5
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GLM 5 and GPT-4.1 Mini
BenchmarkGLM 5GPT-4.1 MiniLeader
Design Arena: agents building full-stack apps1123Not measuredOnly GLM 5 measured
Design Arena: agents building mobile apps1136Not measuredOnly GLM 5 measured
Design Arena: agents building Android apps1146Not measuredOnly GLM 5 measured
Design Arena: agents building Godot games1144Not measuredOnly GLM 5 measured
Design Arena: HTML slides1148Not measuredOnly GLM 5 measured
τ²-Bench Telecom98.2%52.9%GLM 5
Vending-Bench 2$4,432Not measuredOnly GLM 5 measured
Berkeley Function Calling Leaderboard (BFCL)Not measured50.4%Only GPT-4.1 Mini measured
Neither model has a result on the other 33 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index100
Reasoning benchmarks for GLM 5 and GPT-4.1 Mini
BenchmarkGLM 5GPT-4.1 MiniLeader
GPQA Diamond83.3%67.9%GLM 5
MMMU Pro (Vals AI)Not measured70.5%Only GPT-4.1 Mini measured
GPQA Diamond (Artificial Analysis run)82.0%66.4%GLM 5
Humanity's Last Exam (Artificial Analysis run)29.3%5.0%GLM 5
GPQA Diamond (Epoch AI run)87.8%65.8%GLM 5
ARC-AGI44.7%3.5%GLM 5
ARC-AGI-24.9%0.0%GLM 5
SimpleBench53.2%Not measuredOnly GLM 5 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 prompts14521349GLM 5
LMArena Text: expert14541338GLM 5
LMArena Text: hard prompts in English14601362GLM 5
LMArena Vision: diagramsNot measured1182Only GPT-4.1 Mini measured
LMArena Vision: homeworkNot measured1214Only GPT-4.1 Mini measured
Kagi LLM Benchmark75.0%48.6%GLM 5
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index40
Math benchmarks for GLM 5 and GPT-4.1 Mini
BenchmarkGLM 5GPT-4.1 MiniLeader
AIME91.7%49.4%GLM 5
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 AIME80.0%44.7%GLM 5
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: math14401343GLM 5
LMArena Text: mathematical work14511347GLM 5
Neither model has a result on the other 3 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index81
Knowledge benchmarks for GLM 5 and GPT-4.1 Mini
BenchmarkGLM 5GPT-4.1 MiniLeader
MMLU Pro86.0%77.2%GLM 5
LegalBench (Vals AI)84.1%78.0%GLM 5
CaseLaw (Vals AI)52.5%Not measuredOnly GLM 5 measured
CorpFin (Vals AI)62.9%57.9%GLM 5
TaxEval (Vals AI)70.0%71.9%GPT-4.1 Mini
MortgageTax (Vals AI)Not measured65.5%Only GPT-4.1 Mini measured
MedQA (Vals AI)94.3%84.6%GLM 5
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: science14601328GLM 5
LMArena Text: medicine and healthcare14551324GLM 5
LMArena Text: legal and government14531343GLM 5
LMArena Text: business and finance14301322GLM 5
Neither model has a result on the other 5 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index60
Web design benchmarks for GLM 5 and GPT-4.1 Mini
BenchmarkGLM 5GPT-4.1 MiniLeader
Design Arena: websites1247997GLM 5
Design Arena: UI components1230961GLM 5
Design Arena: game dev12341071GLM 5
Design Arena: data viz12281034GLM 5
Design Arena: 3D1229837GLM 5
Design Arena: all code categories1246994GLM 5
Design Arena: SVG1168Not measuredOnly GLM 5 measured
Design Arena: ASCII art1147Not measuredOnly GLM 5 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 5 and GPT-4.1 Mini
BenchmarkGLM 5GPT-4.1 MiniLeader
IFBench72.3%38.3%GLM 5
Long context reasoning (AA-LCR)75.7%44.0%GLM 5
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-bench18.7%Not measuredOnly GLM 5 measured
LMArena Text14461341GLM 5
LMArena Text: instruction following14281333GLM 5
LMArena Text: creative writing14381299GLM 5
LMArena VisionNot measured1181Only GPT-4.1 Mini measured
LMArena Text: English14581356GLM 5
LMArena Text: non-English14301318GLM 5
LMArena Text: Chinese15111329GLM 5
LMArena Text: German14471350GLM 5
LMArena Text: Japanese14161290GLM 5
LMArena Text: Korean14231298GLM 5
LMArena Text: French14561358GLM 5
LMArena Text: Spanish14541319GLM 5
LMArena Text: Russian14361324GLM 5
LMArena Text: Polish14341326GLM 5
LMArena Text: multi-turn14561354GLM 5
LMArena Text: longer queries14461344GLM 5
LMArena Text: writing and language14371319GLM 5
LMArena Text: entertainment and media14261300GLM 5
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 15 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GLM 5 and GPT-4.1 Mini
BenchmarkGLM 5GPT-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 5$0.0026Fits 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 5$0.060Fits 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 5$0.232Exceeds 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 5 and GPT-4.1 Mini
SpecificationZ.ai GLM 5OpenAI GPT-4.1 Mini
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedFebruary 11, 2026April 14, 2025
Context window205K1.05M
Input $/Mtok$1.00$0.40
Output $/Mtok$3.20$1.60
Coding index41.7Not benchmarked
Independent measurements behind it30
Cost per solved task$0.63$1.818
SourceOpenRouter listingOpenRouter listing

Questions

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

Only GLM 5 has a coding score, 41.7 on the Vibe Coding Index; GPT-4.1 Mini has none, so the two cannot be ranked on coding. Pick GPT-4.1 Mini for output tokens 2.0x cheaper ($1.60 vs $3.20 per million) and a larger context window (1.05M against 205K tokens).

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

GLM 5 costs $1.00 per million input tokens and $3.20 per million output tokens; GPT-4.1 Mini costs $0.40 and $1.60. Per solved SWE-bench Verified task, GLM 5 costs $0.63 and GPT-4.1 Mini $1.818.

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

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

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

57 benchmarks have a result for both models as of October 21, 2026. GLM 5's coding index rests on 3 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