Enter opens the highlighted result. Esc closes.

GLM 5 vs GPT-4.1

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

GLM 5Z.ai
Coding
41.7
Overall
54.3
Output $/M
$3.20
57
GPT-4.1OpenAI
Coding
No data
Overall
36.5
Output $/M
$8.00
3
vs boards won of 60 shared

GLM 5 or GPT-4.1: which to pick

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

Pick GPT-4.1 for a lower cost per solved task ($0.37 against $0.63) and a larger context window (1.05M against 205K tokens).

Shared results
60
GLM 5 only
16
GPT-4.1 only
32
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 not benchmarked.
Widest category
Agentic work, 51.2 points apart on average over 1 shared benchmark.
Widest single gap
AIME: GLM 5 91.7% against GPT-4.1 39.6%, 52.1 points apart on a 0 to 100 scale.
Output price
GLM 5 $3.20 against GPT-4.1 $8.00 per million output tokens, 2.5x apart.
Context window
GLM 5 takes 205K 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 5BarsGPT-4.1Ties
Coding70
Intelligence20
Agentic work10
Reasoning110
Math40
Knowledge73
Web design60
General190
All shared boards573
CodingLike-for-likeSix of these boards feed the Vibe Coding Index70
Coding benchmarks for GLM 5 and GPT-4.1
BenchmarkGLM 5GPT-4.1Leader
Aider polyglotNot measured52.4%Only GPT-4.1 measured
SWE-bench Verified72.8%39.6%GLM 5
SWE-bench MultimodalNot measured31.1%Only GPT-4.1 measured
SWE-bench Multilingual69.7%Not measuredOnly GLM 5 measured
LMArena WebDev1435Not measuredOnly GLM 5 measured
LiveCodeBench (Vals AI)81.9%54.7%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 measured45.7%Only GPT-4.1 measured
Terminal-Bench Hard (Artificial Analysis run)43.2%13.6%GLM 5
Terminal-Bench52.4%Not measuredOnly GLM 5 measured
WeirdML48.2%39.0%GLM 5
ALE-Bench765.6558.1GLM 5
LMArena Text: coding14611390GLM 5
LMArena Text: software and IT14601391GLM 5
LMArena WebDev: React1424Not measuredOnly GLM 5 measured
LMArena WebDev: HTML1450Not measuredOnly GLM 5 measured
SciCodeNot measured4.6%Only GPT-4.1 measured
Neither model has a result on the other 21 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GLM 5 and GPT-4.1
BenchmarkGLM 5GPT-4.1Leader
AA Intelligence Index27.912.7GLM 5
Epoch Capabilities Index145.8136.7GLM 5
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GLM 5 and GPT-4.1
BenchmarkGLM 5GPT-4.1Leader
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%47.1%GLM 5
Vending-Bench 2$4,432Not measuredOnly GLM 5 measured
Berkeley Function Calling Leaderboard (BFCL)Not measured54.0%Only GPT-4.1 measured
BrowseComp-PlusNot measured36.4%Only GPT-4.1 measured
Neither model has a result on the other 32 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index110
Reasoning benchmarks for GLM 5 and GPT-4.1
BenchmarkGLM 5GPT-4.1Leader
GPQA Diamond83.3%65.4%GLM 5
MMMU Pro (Vals AI)Not measured72.4%Only GPT-4.1 measured
GPQA Diamond (Artificial Analysis run)82.0%66.6%GLM 5
Humanity's Last Exam (Artificial Analysis run)29.3%4.2%GLM 5
GPQA Diamond (Epoch AI run)87.8%66.9%GLM 5
ARC-AGI44.7%5.5%GLM 5
ARC-AGI-24.9%0.4%GLM 5
SimpleBench53.2%27.0%GLM 5
Chess puzzlesNot measured3.0%Only GPT-4.1 measured
LMArena Text: hard prompts14521384GLM 5
LMArena Text: expert14541364GLM 5
LMArena Text: hard prompts in English14601393GLM 5
LMArena Vision: diagramsNot measured1215Only GPT-4.1 measured
LMArena Vision: homeworkNot measured1248Only GPT-4.1 measured
Kagi LLM Benchmark75.0%52.3%GLM 5
Neither model has a result on the other 7 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index40
Math benchmarks for GLM 5 and GPT-4.1
BenchmarkGLM 5GPT-4.1Leader
AIME91.7%39.6%GLM 5
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 AIME80.0%38.3%GLM 5
FrontierMath, tiers 1 to 3Not measured6.0%Only GPT-4.1 measured
MATH level 5Not measured83.0%Only GPT-4.1 measured
LMArena Text: math14401369GLM 5
LMArena Text: mathematical work14511360GLM 5
Neither model has a result on the other 3 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index73
Knowledge benchmarks for GLM 5 and GPT-4.1
BenchmarkGLM 5GPT-4.1Leader
MMLU Pro86.0%80.5%GLM 5
LegalBench (Vals AI)84.1%83.1%GLM 5
CaseLaw (Vals AI)52.5%69.9%GPT-4.1
CorpFin (Vals AI)62.9%63.0%GPT-4.1
TaxEval (Vals AI)70.0%75.1%GPT-4.1
MortgageTax (Vals AI)Not measured65.9%Only GPT-4.1 measured
MedQA (Vals AI)94.3%91.2%GLM 5
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: science14601382GLM 5
LMArena Text: medicine and healthcare14551379GLM 5
LMArena Text: legal and government14531399GLM 5
LMArena Text: business and finance14301369GLM 5
FACTS Benchmark SuiteNot measured45.8%Only GPT-4.1 measured
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 5 and GPT-4.1
BenchmarkGLM 5GPT-4.1Leader
Design Arena: websites12471039GLM 5
Design Arena: UI components12301000GLM 5
Design Arena: game dev12341080GLM 5
Design Arena: data viz12281104GLM 5
Design Arena: 3D1229850GLM 5
Design Arena: all code categories12461026GLM 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
BenchmarkGLM 5GPT-4.1Leader
IFBench72.3%43.0%GLM 5
Long context reasoning (AA-LCR)75.7%68.3%GLM 5
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
CL-bench18.7%Not measuredOnly GLM 5 measured
LMArena Text14461383GLM 5
LMArena Text: instruction following14281367GLM 5
LMArena Text: creative writing14381363GLM 5
LMArena VisionNot measured1210Only GPT-4.1 measured
LMArena Text: English14581392GLM 5
LMArena Text: non-English14301370GLM 5
LMArena Text: Chinese15111382GLM 5
LMArena Text: German14471381GLM 5
LMArena Text: Japanese14161319GLM 5
LMArena Text: Korean14231338GLM 5
LMArena Text: French14561382GLM 5
LMArena Text: Spanish14541376GLM 5
LMArena Text: Russian14361377GLM 5
LMArena Text: Polish14341389GLM 5
LMArena Text: multi-turn14561397GLM 5
LMArena Text: longer queries14461385GLM 5
LMArena Text: writing and language14371371GLM 5
LMArena Text: entertainment and media14261365GLM 5
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 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
BenchmarkGLM 5GPT-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 5$0.0026Fits in one request
GPT-4.1$0.0060Fits in one request

GLM 5 costs less

Repository review

50K input + 3K output tokens

GLM 5$0.060Fits in one request
GPT-4.1$0.124Fits in one request

GLM 5 costs less

Agent loop

200K input + 10K output tokens

GLM 5$0.232Exceeds the context window
GPT-4.1$0.480Fits in one request

GLM 5 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
SpecificationZ.ai GLM 5OpenAI GPT-4.1
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedFebruary 11, 2026April 14, 2025
Context window205K1.05M
Input $/Mtok$1.00$2.00
Output $/Mtok$3.20$8.00
Coding index41.7Not benchmarked
Independent measurements behind it30
Cost per solved task$0.63$0.37
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5 better than GPT-4.1 for coding?

Only GLM 5 has a coding score, 41.7 on the Vibe Coding Index; GPT-4.1 has none, so the two cannot be ranked on coding. Pick GPT-4.1 for a lower cost per solved task ($0.37 against $0.63) and a larger context window (1.05M against 205K tokens).

Which is cheaper, GLM 5 or GPT-4.1?

GLM 5 costs $1.00 per million input tokens and $3.20 per million output tokens; GPT-4.1 costs $2.00 and $8.00. Per solved SWE-bench Verified task, GLM 5 costs $0.63 and GPT-4.1 $0.37.

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

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

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

60 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's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next