Enter opens the highlighted result. Esc closes.

GLM 5.2 vs GPT-4.1 Nano

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

GLM 5.2Z.ai
Coding
57.7
Overall
33.7
Output $/M
$7.00
54
GPT-4.1 NanoOpenAI
Coding
8.9
Overall
7.8
Output $/M
$0.40
0
vs boards won of 54 shared

Decision reading

Pick GLM 5.2 for coding: it scores 57.7 on the Vibe Coding Index against 8.9 for GPT-4.1 Nano.

Pick GPT-4.1 Nano when output tokens cost 17.5x less.

Shared results
54
GLM 5.2 only
43
GPT-4.1 Nano only
15
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 5.2 57.7 from 1 benchmark, GPT-4.1 Nano 8.9 from 1 benchmark.
Widest category
Agentic work, 81.9 points apart on average over 1 shared benchmark.
Widest single gap
τ²-Bench Telecom: GLM 5.2 99.1% against GPT-4.1 Nano 17.3%, 81.9 points apart on a 0 to 100 scale.
Output price
GLM 5.2 $7.00 against GPT-4.1 Nano $0.40 per million output tokens, 17.5x apart.
Context window
GLM 5.2 takes 1.05M tokens, GPT-4.1 Nano 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 5.2BarsGPT-4.1 NanoTies
Coding60
Intelligence20
Agentic work10
Reasoning100
Math30
Knowledge90
Web design60
General170
All shared boards540
CodingLike-for-likeFour of these boards feed the Vibe Coding Index60
Coding benchmarks for GLM 5.2 and GPT-4.1 Nano
BenchmarkGLM 5.2GPT-4.1 NanoLeader
Aider polyglotNot measured8.9%Only GPT-4.1 Nano measured
LMArena WebDev1604Not measuredOnly GLM 5.2 measured
AA Coding Index68.811.1GLM 5.2
LiveCodeBench (Vals AI)69.5%42.7%GLM 5.2
SWE-bench Verified (Vals AI)82.8%Not measuredOnly GLM 5.2 measured
Vibe Code Bench (Vals AI)64.0%Not measuredOnly GLM 5.2 measured
Code migration (Vals AI)37.9%Not measuredOnly GLM 5.2 measured
ProgramBench (Vals AI)0.5%Not measuredOnly GLM 5.2 measured
Terminal-Bench 2.1 (Vals AI)67.8%Not measuredOnly GLM 5.2 measured
SkillsBench (Vals AI)45.1%Not measuredOnly GLM 5.2 measured
LiveCodeBench (Artificial Analysis run)Not measured32.6%Only GPT-4.1 Nano measured
SciCode51.2%Not measuredOnly GLM 5.2 measured
Terminal-Bench Hard (Artificial Analysis run)50.8%3.8%GLM 5.2
FrontierCode24.5%Not measuredOnly GLM 5.2 measured
WeirdML70.1%19.0%GLM 5.2
ALE-Bench1047.0Not measuredOnly GLM 5.2 measured
LMArena Text: coding14871306GLM 5.2
LMArena Text: software and IT14861305GLM 5.2
LMArena WebDev: React1617Not measuredOnly GLM 5.2 measured
LMArena WebDev: HTML1565Not measuredOnly GLM 5.2 measured
Neither model has a result on the other 18 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GLM 5.2 and GPT-4.1 Nano
BenchmarkGLM 5.2GPT-4.1 NanoLeader
AA Intelligence Index33.77.8GLM 5.2
Epoch Capabilities Index151.9129.5GLM 5.2
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GLM 5.2 and GPT-4.1 Nano
BenchmarkGLM 5.2GPT-4.1 NanoLeader
AA Agentic Index38.4Not measuredOnly GLM 5.2 measured
Design Arena: agents building web apps1222Not measuredOnly GLM 5.2 measured
Design Arena: agents building full-stack apps1241Not measuredOnly GLM 5.2 measured
Design Arena: agents building mobile apps1160Not measuredOnly GLM 5.2 measured
Design Arena: agents building Android apps1184Not measuredOnly GLM 5.2 measured
Design Arena: agents building Godot games1142Not measuredOnly GLM 5.2 measured
Design Arena: agents building games1206Not measuredOnly GLM 5.2 measured
Design Arena: HTML slides1175Not measuredOnly GLM 5.2 measured
Design Arena: PowerPoint slides1195Not measuredOnly GLM 5.2 measured
SREBench (Vals AI)0.0%Not measuredOnly GLM 5.2 measured
Finance Agent (Vals AI)49.7%Not measuredOnly GLM 5.2 measured
Legal Research Bench (Vals AI)31.3%Not measuredOnly GLM 5.2 measured
Excel Modeling Benchmark (Vals AI)61.5%Not measuredOnly GLM 5.2 measured
τ²-Bench Telecom99.1%17.3%GLM 5.2
APEX-Agents45.2%Not measuredOnly GLM 5.2 measured
PostTrainBench31.7%Not measuredOnly GLM 5.2 measured
Vending-Bench 2$8,314Not measuredOnly GLM 5.2 measured
Neither model has a result on the other 22 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index100
Reasoning benchmarks for GLM 5.2 and GPT-4.1 Nano
BenchmarkGLM 5.2GPT-4.1 NanoLeader
GPQA Diamond85.6%50.8%GLM 5.2
MMMU Pro (Vals AI)Not measured55.0%Only GPT-4.1 Nano measured
GPQA Diamond (Artificial Analysis run)89.5%51.2%GLM 5.2
Humanity's Last Exam (Artificial Analysis run)41.1%3.8%GLM 5.2
GPQA Diamond (Epoch AI run)91.9%48.9%GLM 5.2
ARC-AGI77.0%0.0%GLM 5.2
ARC-AGI-222.8%0.0%GLM 5.2
SimpleBench58.8%Not measuredOnly GLM 5.2 measured
Chess puzzles22.0%0.0%GLM 5.2
Mystery game puzzles19.0%Not measuredOnly GLM 5.2 measured
EBR-bench9.5%Not measuredOnly GLM 5.2 measured
LMArena Text: hard prompts14811286GLM 5.2
LMArena Text: expert14871271GLM 5.2
LMArena Text: hard prompts in English14811293GLM 5.2
Neither model has a result on the other 7 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index30
Math benchmarks for GLM 5.2 and GPT-4.1 Nano
BenchmarkGLM 5.2GPT-4.1 NanoLeader
AIMENot measured26.5%Only GPT-4.1 Nano measured
MATH 500 (Vals AI)Not measured80.2%Only GPT-4.1 Nano measured
MGSM (Vals AI)Not measured69.3%Only GPT-4.1 Nano measured
AA Math IndexNot measured24.0Only GPT-4.1 Nano measured
AIME 2025 (Artificial Analysis run)Not measured24.0%Only GPT-4.1 Nano measured
OTIS Mock AIME86.4%28.9%GLM 5.2
FrontierMath, tiers 1 to 359.2%Not measuredOnly GLM 5.2 measured
FrontierMath, tier 429.3%Not measuredOnly GLM 5.2 measured
ProofBench35.0%Not measuredOnly GLM 5.2 measured
MATH level 5Not measured70.0%Only GPT-4.1 Nano measured
LMArena Text: math14831274GLM 5.2
LMArena Text: mathematical work14891274GLM 5.2
Neither model has a result on the other 1 board here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index90
Knowledge benchmarks for GLM 5.2 and GPT-4.1 Nano
BenchmarkGLM 5.2GPT-4.1 NanoLeader
MMLU Pro86.7%63.5%GLM 5.2
LegalBench (Vals AI)84.1%61.1%GLM 5.2
CorpFin (Vals AI)66.1%42.1%GLM 5.2
TaxEval (Vals AI)73.3%60.8%GLM 5.2
MortgageTax (Vals AI)Not measured52.8%Only GPT-4.1 Nano measured
MedQA (Vals AI)Not measured68.2%Only GPT-4.1 Nano measured
MedCode (Vals AI)40.8%Not measuredOnly GLM 5.2 measured
MMLU Pro (Artificial Analysis run)Not measured65.7%Only GPT-4.1 Nano measured
SimpleQA Verified34.2%6.0%GLM 5.2
LMArena Text: science14891297GLM 5.2
LMArena Text: medicine and healthcare14751276GLM 5.2
LMArena Text: legal and government14861300GLM 5.2
LMArena Text: business and finance14511267GLM 5.2
Neither model has a result on the other 4 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index60
Web design benchmarks for GLM 5.2 and GPT-4.1 Nano
BenchmarkGLM 5.2GPT-4.1 NanoLeader
Design Arena: websites1285973GLM 5.2
Design Arena: UI components1296916GLM 5.2
Design Arena: game dev1268971GLM 5.2
Design Arena: data viz1285891GLM 5.2
Design Arena: 3D1288925GLM 5.2
Design Arena: all code categories1288963GLM 5.2
Design Arena: SVG1214Not measuredOnly GLM 5.2 measured
Design Arena: ASCII art1190Not measuredOnly GLM 5.2 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index170
General benchmarks for GLM 5.2 and GPT-4.1 Nano
BenchmarkGLM 5.2GPT-4.1 NanoLeader
MedScribe (Vals AI)83.5%Not measuredOnly GLM 5.2 measured
IFBench73.3%32.0%GLM 5.2
Long context reasoning (AA-LCR)78.3%20.3%GLM 5.2
DTBench93.6%52.5%GLM 5.2
LMCA45.8%5.5%GLM 5.2
Fiction.LiveBenchNot measured25.0%Only GPT-4.1 Nano measured
Surface Evolver Bench55.6%Not measuredOnly GLM 5.2 measured
LMArena Text14701285GLM 5.2
LMArena Text: instruction following14661266GLM 5.2
LMArena Text: creative writing14631260GLM 5.2
LMArena VisionNot measured1063Only GPT-4.1 Nano measured
LMArena Text: English14751303GLM 5.2
LMArena Text: non-English14591260GLM 5.2
LMArena Text: Chinese15221270GLM 5.2
LMArena Text: German14701288GLM 5.2
LMArena Text: Japanese14501198GLM 5.2
LMArena Text: Korean1440Not measuredOnly GLM 5.2 measured
LMArena Text: French1479Not measuredOnly GLM 5.2 measured
LMArena Text: Spanish1478Not measuredOnly GLM 5.2 measured
LMArena Text: Russian14681261GLM 5.2
LMArena Text: Polish1456Not measuredOnly GLM 5.2 measured
LMArena Text: multi-turn14691277GLM 5.2
LMArena Text: longer queries14801283GLM 5.2
LMArena Text: writing and language14631261GLM 5.2
LMArena Text: entertainment and media14501243GLM 5.2
LMArena Vision: EnglishNot measured1101Only GPT-4.1 Nano measured
Neither model has a result on the other 20 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GLM 5.2 and GPT-4.1 Nano
BenchmarkGLM 5.2GPT-4.1 NanoLeader
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.2$0.0035Fits in one request
GPT-4.1 Nano$0.0003Fits in one request

GPT-4.1 Nano costs less

Repository review

50K input + 3K output tokens

GLM 5.2$0.023Fits in one request
GPT-4.1 Nano$0.0062Fits in one request

GPT-4.1 Nano costs less

Agent loop

200K input + 10K output tokens

GLM 5.2$0.077Fits in one request
GPT-4.1 Nano$0.024Fits in one request

GPT-4.1 Nano 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.2 and GPT-4.1 Nano
SpecificationZ.ai GLM 5.2OpenAI GPT-4.1 Nano
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedJune 16, 2026April 14, 2025
Context window1.05M1.05M
Input $/Mtok$0.0341$0.10
Output $/Mtok$7.00$0.40
Coding index57.78.9
Independent measurements behind it11
Cost per solved task$0.86Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5.2 better than GPT-4.1 Nano for coding?

Pick GLM 5.2 for coding: it scores 57.7 on the Vibe Coding Index against 8.9 for GPT-4.1 Nano. Pick GPT-4.1 Nano when output tokens cost 17.5x less.

Which is cheaper, GLM 5.2 or GPT-4.1 Nano?

GLM 5.2 costs $0.0341 per million input tokens and $7.00 per million output tokens; GPT-4.1 Nano costs $0.10 and $0.40. Cost per solved task is known for GLM 5.2 only.

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

GLM 5.2, with 1.05M tokens against 1.05M.

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

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

Compare next