LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

GLM 4.5 vs GPT-4.1

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

GLM 4.5Z.ai
Coding
64.2
Overall
12.8
Output $/M
$2.20
51
GPT-4.1OpenAI
Coding
46.5
Overall
12.7
Output $/M
$8.00
7
vs boards won of 58 shared

Decision reading

Pick GLM 4.5 for coding: it scores 64.2 on the Vibe Coding Index against 46.5 for GPT-4.1, though on 1 benchmark against 2.

Pick GPT-4.1 when the context window is larger, 1.05M against 131K tokens, or when what matters is ALE-Bench or τ²-Bench Telecom, where it leads.

Shared results
58
GLM 4.5 only
2
GPT-4.1 only
29
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.5 64.2 from 1 benchmark, GPT-4.1 46.5 from 2 benchmarks.
Widest category
Math, 22.3 points apart on average over 7 shared benchmarks.
Widest single gap
AIME: GLM 4.5 86.7% against GPT-4.1 39.6%, 47.1 points apart on a 0 to 100 scale.
Output price
GLM 4.5 $2.20 against GPT-4.1 $8.00 per million output tokens, 3.6x apart.
Context window
GLM 4.5 takes 131K 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.5BarsGPT-4.1Ties
Coding71
Intelligence10
Agentic work01
Reasoning60
Math70
Knowledge64
Web design60
General181
All shared boards517
CodingLike-for-likeFour of these boards feed the Vibe Coding Index71
Coding benchmarks for GLM 4.5 and GPT-4.1
BenchmarkGLM 4.5GPT-4.1Leader
Aider polyglotNot measured52.4%Only GPT-4.1 measured
SWE-bench Verified64.2%39.6%GLM 4.5
SWE-bench MultimodalNot measured31.1%Only GPT-4.1 measured
LiveCodeBench (Vals AI)67.5%54.7%GLM 4.5
LiveCodeBench (Artificial Analysis run)73.8%45.7%GLM 4.5
Terminal-Bench Hard (Artificial Analysis run)22.0%13.6%GLM 4.5
WeirdML40.6%39.0%GLM 4.5
ALE-Bench344.8558.1GPT-4.1
LMArena Text: coding14341390GLM 4.5
LMArena Text: software and IT14401391GLM 4.5
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.5 and GPT-4.1
BenchmarkGLM 4.5GPT-4.1Leader
AA Intelligence Index12.812.7GLM 4.5
Epoch Capabilities IndexNot measured136.7Only GPT-4.1 measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index01
Agentic work benchmarks for GLM 4.5 and GPT-4.1
BenchmarkGLM 4.5GPT-4.1Leader
τ²-Bench Telecom43.0%47.1%GPT-4.1
Neither model has a result on the other 38 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index60
Reasoning benchmarks for GLM 4.5 and GPT-4.1
BenchmarkGLM 4.5GPT-4.1Leader
GPQA Diamond72.2%65.4%GLM 4.5
MMMU Pro (Vals AI)Not measured72.4%Only GPT-4.1 measured
GPQA Diamond (Artificial Analysis run)78.2%66.6%GLM 4.5
Humanity's Last Exam (Artificial Analysis run)13.0%4.2%GLM 4.5
GPQA Diamond (Epoch AI run)Not measured66.9%Only GPT-4.1 measured
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 prompts14291384GLM 4.5
LMArena Text: expert14331364GLM 4.5
LMArena Text: hard prompts in English14291393GLM 4.5
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 index70
Math benchmarks for GLM 4.5 and GPT-4.1
BenchmarkGLM 4.5GPT-4.1Leader
AIME86.7%39.6%GLM 4.5
MATH 500 (Vals AI)94.0%87.2%GLM 4.5
MGSM (Vals AI)90.8%87.7%GLM 4.5
AA Math Index73.734.7GLM 4.5
AIME 2025 (Artificial Analysis run)73.7%34.7%GLM 4.5
OTIS Mock AIMENot measured38.3%Only GPT-4.1 measured
FrontierMath, tiers 1 to 3Not measured6.0%Only GPT-4.1 measured
MATH level 5Not measured83.0%Only GPT-4.1 measured
LMArena Text: math14271369GLM 4.5
LMArena Text: mathematical work14301360GLM 4.5
Neither model has a result on the other 3 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index64
Knowledge benchmarks for GLM 4.5 and GPT-4.1
BenchmarkGLM 4.5GPT-4.1Leader
MMLU Pro81.2%80.5%GLM 4.5
LegalBench (Vals AI)75.6%83.1%GPT-4.1
CaseLaw (Vals AI)Not measured69.9%Only GPT-4.1 measured
CorpFin (Vals AI)61.0%63.0%GPT-4.1
TaxEval (Vals AI)72.4%75.1%GPT-4.1
MortgageTax (Vals AI)Not measured65.9%Only GPT-4.1 measured
MedQA (Vals AI)90.0%91.2%GPT-4.1
MMLU Pro (Artificial Analysis run)83.5%80.6%GLM 4.5
SimpleQA VerifiedNot measured31.1%Only GPT-4.1 measured
GeoBenchNot measured72.0%Only GPT-4.1 measured
LMArena Text: science14441382GLM 4.5
LMArena Text: medicine and healthcare14551379GLM 4.5
LMArena Text: legal and government14381399GLM 4.5
LMArena Text: business and finance14201369GLM 4.5
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.5 and GPT-4.1
BenchmarkGLM 4.5GPT-4.1Leader
Design Arena: websites11701039GLM 4.5
Design Arena: UI components11441000GLM 4.5
Design Arena: game dev11451080GLM 4.5
Design Arena: data viz11591104GLM 4.5
Design Arena: 3D1170850GLM 4.5
Design Arena: all code categories11651026GLM 4.5
Design Arena: SVG1096Not measuredOnly GLM 4.5 measured
Neither model has a result on the other 2 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index181
General benchmarks for GLM 4.5 and GPT-4.1
BenchmarkGLM 4.5GPT-4.1Leader
IFBench44.1%43.0%GLM 4.5
Long context reasoning (AA-LCR)52.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
Creative writing (Lech Mazur)73.4%Not measuredOnly GLM 4.5 measured
LMArena Text14301383GLM 4.5
LMArena Text: instruction following14041367GLM 4.5
LMArena Text: creative writing13951363GLM 4.5
LMArena VisionNot measured1210Only GPT-4.1 measured
LMArena Text: English14371392GLM 4.5
LMArena Text: non-English14171370GLM 4.5
LMArena Text: Chinese14651382GLM 4.5
LMArena Text: German14071381GLM 4.5
LMArena Text: Japanese14151319GLM 4.5
LMArena Text: Korean13801338GLM 4.5
LMArena Text: French14181382GLM 4.5
LMArena Text: Spanish14541376GLM 4.5
LMArena Text: Russian14131377GLM 4.5
LMArena Text: Polish14221389GLM 4.5
LMArena Text: multi-turn14151397GLM 4.5
LMArena Text: longer queries14121385GLM 4.5
LMArena Text: writing and language14031371GLM 4.5
LMArena Text: entertainment and media14041365GLM 4.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 4.5 and GPT-4.1
BenchmarkGLM 4.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 4.5$0.0017Fits in one request
GPT-4.1$0.0060Fits in one request

GLM 4.5 costs less

Repository review

50K input + 3K output tokens

GLM 4.5$0.037Fits in one request
GPT-4.1$0.124Fits in one request

GLM 4.5 costs less

Agent loop

200K input + 10K output tokens

GLM 4.5$0.142Exceeds the context window
GPT-4.1$0.480Fits in one request

GLM 4.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 4.5 and GPT-4.1
SpecificationZ.ai GLM 4.5OpenAI GPT-4.1
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedJuly 25, 2025April 14, 2025
Context window131K1.05M
Input $/Mtok$0.60$2.00
Output $/Mtok$2.20$8.00
Coding index64.246.5
Independent measurements behind it12
Cost per solved taskNot computable$0.37
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 4.5 better than GPT-4.1 for coding?

Pick GLM 4.5 for coding: it scores 64.2 on the Vibe Coding Index against 46.5 for GPT-4.1, though on 1 benchmark against 2. Pick GPT-4.1 when the context window is larger, 1.05M against 131K tokens, or when what matters is ALE-Bench or τ²-Bench Telecom, where it leads.

Which is cheaper, GLM 4.5 or GPT-4.1?

GLM 4.5 costs $0.60 per million input tokens and $2.20 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.5 or GPT-4.1?

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

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

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

Compare next