LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

GLM 4.7 vs GPT-4.1

Updated October 21, 2026. 62 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.1OpenAI
Coding
46.5
Overall
12.7
Output $/M
$8.00
4
vs boards won of 62 shared

Decision reading

Pick GPT-4.1 for coding: it scores 46.5 on the Vibe Coding Index against 33.6 for GLM 4.7.

Pick GLM 4.7 when output tokens cost 4.0x less, or when a solved task costs $0.29 against $0.37.

Shared results
62
GLM 4.7 only
18
GPT-4.1 only
25
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 46.5 from 2 benchmarks.
Widest category
Agentic work, 48.8 points apart on average over 1 shared benchmark.
Widest single gap
AIME 2025 (Artificial Analysis run): GLM 4.7 95.0% against GPT-4.1 34.7%, 60.3 points apart on a 0 to 100 scale.
Output price
GLM 4.7 $1.98 against GPT-4.1 $8.00 per million output tokens, 4.0x apart.
Context window
GLM 4.7 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 4.7BarsGPT-4.1Ties
Coding51
Intelligence20
Agentic work10
Reasoning90
Math70
Knowledge93
Web design60
General190
All shared boards584
CodingLike-for-likeFour of these boards feed the Vibe Coding Index51
Coding benchmarks for GLM 4.7 and GPT-4.1
BenchmarkGLM 4.7GPT-4.1Leader
Aider polyglotNot measured52.4%Only GPT-4.1 measured
SWE-bench VerifiedNot measured39.6%Only GPT-4.1 measured
SWE-bench MultimodalNot measured31.1%Only GPT-4.1 measured
LMArena WebDev1435Not measuredOnly GLM 4.7 measured
AA Coding Index45.3Not measuredOnly GLM 4.7 measured
LiveCodeBench (Vals AI)82.2%54.7%GLM 4.7
SWE-bench Verified (Vals AI)69.4%Not measuredOnly GLM 4.7 measured
LiveCodeBench (Artificial Analysis run)89.4%45.7%GLM 4.7
Terminal-Bench Hard (Artificial Analysis run)31.8%13.6%GLM 4.7
Terminal-Bench33.4%Not measuredOnly GLM 4.7 measured
WeirdMLNot measured39.0%Only GPT-4.1 measured
ALE-Bench399.5558.1GPT-4.1
LMArena Text: coding14541390GLM 4.7
LMArena Text: software and IT14531391GLM 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 22 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GLM 4.7 and GPT-4.1
BenchmarkGLM 4.7GPT-4.1Leader
AA Intelligence Index22.212.7GLM 4.7
Epoch Capabilities Index143.6136.7GLM 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
BenchmarkGLM 4.7GPT-4.1Leader
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%47.1%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 index90
Reasoning benchmarks for GLM 4.7 and GPT-4.1
BenchmarkGLM 4.7GPT-4.1Leader
GPQA Diamond80.0%65.4%GLM 4.7
MMMU Pro (Vals AI)Not measured72.4%Only GPT-4.1 measured
GPQA Diamond (Artificial Analysis run)85.9%66.6%GLM 4.7
Humanity's Last Exam (Artificial Analysis run)27.4%4.2%GLM 4.7
GPQA Diamond (Epoch AI run)83.3%66.9%GLM 4.7
ARC-AGINot measured5.5%Only GPT-4.1 measured
ARC-AGI-2Not measured0.4%Only GPT-4.1 measured
SimpleBench47.7%27.0%GLM 4.7
Chess puzzles21.0%3.0%GLM 4.7
LMArena Text: hard prompts14431384GLM 4.7
LMArena Text: expert14241364GLM 4.7
LMArena Text: hard prompts in English14521393GLM 4.7
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.7 and GPT-4.1
BenchmarkGLM 4.7GPT-4.1Leader
AIME93.3%39.6%GLM 4.7
MATH 500 (Vals AI)Not measured87.2%Only GPT-4.1 measured
MGSM (Vals AI)88.2%87.7%GLM 4.7
AA Math Index95.034.7GLM 4.7
AIME 2025 (Artificial Analysis run)95.0%34.7%GLM 4.7
OTIS Mock AIME83.3%38.3%GLM 4.7
FrontierMath, tiers 1 to 3Not measured6.0%Only GPT-4.1 measured
ProofBench6.0%Not measuredOnly GLM 4.7 measured
MATH level 5Not measured83.0%Only GPT-4.1 measured
LMArena Text: math14241369GLM 4.7
LMArena Text: mathematical work14111360GLM 4.7
Neither model has a result on the other 2 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index93
Knowledge benchmarks for GLM 4.7 and GPT-4.1
BenchmarkGLM 4.7GPT-4.1Leader
MMLU Pro82.7%80.5%GLM 4.7
LegalBench (Vals AI)83.4%83.1%GLM 4.7
CaseLaw (Vals AI)54.9%69.9%GPT-4.1
CorpFin (Vals AI)46.4%63.0%GPT-4.1
TaxEval (Vals AI)68.8%75.1%GPT-4.1
MortgageTax (Vals AI)Not measured65.9%Only GPT-4.1 measured
MedQA (Vals AI)93.7%91.2%GLM 4.7
MedCode (Vals AI)32.8%Not measuredOnly GLM 4.7 measured
MMLU Pro (Artificial Analysis run)85.6%80.6%GLM 4.7
SimpleQA Verified32.2%31.1%GLM 4.7
GeoBenchNot measured72.0%Only GPT-4.1 measured
LMArena Text: science14571382GLM 4.7
LMArena Text: medicine and healthcare14691379GLM 4.7
LMArena Text: legal and government14441399GLM 4.7
LMArena Text: business and finance14291369GLM 4.7
Neither model has a result on the other 2 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
BenchmarkGLM 4.7GPT-4.1Leader
Design Arena: websites12261039GLM 4.7
Design Arena: UI components11991000GLM 4.7
Design Arena: game dev11891080GLM 4.7
Design Arena: data viz11951104GLM 4.7
Design Arena: 3D1191850GLM 4.7
Design Arena: all code categories12171026GLM 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
BenchmarkGLM 4.7GPT-4.1Leader
MedScribe (Vals AI)68.6%Not measuredOnly GLM 4.7 measured
IFBench67.9%43.0%GLM 4.7
Long context reasoning (AA-LCR)71.0%68.3%GLM 4.7
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-bench15.9%Not measuredOnly GLM 4.7 measured
CL-bench Life10.9%Not measuredOnly GLM 4.7 measured
LMArena Text14351383GLM 4.7
LMArena Text: instruction following14121367GLM 4.7
LMArena Text: creative writing14011363GLM 4.7
LMArena VisionNot measured1210Only GPT-4.1 measured
LMArena Text: English14531392GLM 4.7
LMArena Text: non-English14171370GLM 4.7
LMArena Text: Chinese14951382GLM 4.7
LMArena Text: German14261381GLM 4.7
LMArena Text: Japanese14391319GLM 4.7
LMArena Text: Korean13991338GLM 4.7
LMArena Text: French14321382GLM 4.7
LMArena Text: Spanish14341376GLM 4.7
LMArena Text: Russian14231377GLM 4.7
LMArena Text: Polish14351389GLM 4.7
LMArena Text: multi-turn14461397GLM 4.7
LMArena Text: longer queries14321385GLM 4.7
LMArena Text: writing and language14111371GLM 4.7
LMArena Text: entertainment and media14001365GLM 4.7
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 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
BenchmarkGLM 4.7GPT-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.7$0.0015Fits in one request
GPT-4.1$0.0060Fits in one request

GLM 4.7 costs less

Repository review

50K input + 3K output tokens

GLM 4.7$0.033Fits in one request
GPT-4.1$0.124Fits in one request

GLM 4.7 costs less

Agent loop

200K input + 10K output tokens

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

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

Questions

Is GLM 4.7 better than GPT-4.1 for coding?

Pick GPT-4.1 for coding: it scores 46.5 on the Vibe Coding Index against 33.6 for GLM 4.7. Pick GLM 4.7 when output tokens cost 4.0x less, or when a solved task costs $0.29 against $0.37.

Which is cheaper, GLM 4.7 or GPT-4.1?

GLM 4.7 costs $0.54 per million input tokens and $1.98 per million output tokens; GPT-4.1 costs $2.00 and $8.00. Per solved SWE-bench Verified task, GLM 4.7 costs $0.29 and GPT-4.1 $0.37.

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

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

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

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

Compare next