Enter opens the highlighted result. Esc closes.

GLM 5 vs o4 Mini

GLM 5 leads o4 Mini on the Artificial Analysis Intelligence Index, 27.9 to 16.7, and GLM 5 costs 1.4x less per output token ($3.20 vs $4.40 per million). Updated October 22, 2026; 58 benchmarks have a result for both.

GLM 5Z.ai
Coding
41.7
Overall
54.3
Output $/M
$3.20
51
o4 MiniOpenAI
Coding
No data
Overall
43.0
Output $/M
$4.40
7
vs boards won of 58 shared

GLM 5 or o4 Mini: which to pick

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

Pick o4 Mini for work measured by LiveCodeBench (Vals AI) or WeirdML, where it leads.

Shared results
58
GLM 5 only
18
o4 Mini only
40
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, o4 Mini not benchmarked.
Widest category
Agentic work, 42.7 points apart on average over 1 shared benchmark.
Widest single gap
Design Arena: 3D: GLM 5 1228 against o4 Mini 854, 46.8 points apart on a 0 to 100 scale.
Output price
GLM 5 $3.20 against o4 Mini $4.40 per million output tokens, 1.4x apart.
Context window
GLM 5 takes 205K tokens, o4 Mini 200K.

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 5Barso4 MiniTies
Coding42
Intelligence20
Agentic work10
Reasoning92
Math31
Knowledge72
Web design60
General190
All shared boards517
CodingLike-for-likeSix of these boards feed the Vibe Coding Index42
Coding benchmarks for GLM 5 and o4 Mini
BenchmarkGLM 5o4 MiniLeader
Aider polyglotNot measured72.0%Only o4 Mini measured
SWE-bench Verified72.8%64.6%GLM 5
SWE-bench MultimodalNot measured33.9%Only o4 Mini measured
SWE-bench Multilingual69.7%Not measuredOnly GLM 5 measured
LMArena WebDev1435Not measuredOnly GLM 5 measured
LiveCodeBench (Vals AI)81.9%82.2%o4 Mini
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 measured85.9%Only o4 Mini measured
Terminal-Bench Hard (Artificial Analysis run)43.2%15.2%GLM 5
Terminal-Bench52.4%Not measuredOnly GLM 5 measured
GSO-BenchNot measured3.6%Only o4 Mini measured
WeirdML48.2%52.6%o4 Mini
ALE-Bench765.6Not measuredOnly GLM 5 measured
LMArena Text: coding14611368GLM 5
LMArena Text: software and IT14601367GLM 5
LMArena WebDev: React1424Not measuredOnly GLM 5 measured
LMArena WebDev: HTML1450Not measuredOnly GLM 5 measured
SciCodeNot measured10.8%Only o4 Mini measured
Neither model has a result on the other 20 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GLM 5 and o4 Mini
BenchmarkGLM 5o4 MiniLeader
AA Intelligence Index27.916.7GLM 5
Epoch Capabilities Index145.8145.5GLM 5
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GLM 5 and o4 Mini
BenchmarkGLM 5o4 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 apps1147Not measuredOnly GLM 5 measured
Design Arena: agents building Godot games1144Not measuredOnly GLM 5 measured
Design Arena: HTML slides1098Not measuredOnly GLM 5 measured
τ²-Bench Telecom98.2%55.6%GLM 5
METR time horizonsNot measured63.9%Only o4 Mini measured
Vending-Bench 2$4,432Not measuredOnly GLM 5 measured
Berkeley Function Calling Leaderboard (BFCL)Not measured53.2%Only o4 Mini measured
Neither model has a result on the other 32 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index92
Reasoning benchmarks for GLM 5 and o4 Mini
BenchmarkGLM 5o4 MiniLeader
GPQA Diamond83.3%74.5%GLM 5
MMMU Pro (Vals AI)Not measured79.7%Only o4 Mini measured
GPQA Diamond (Artificial Analysis run)82.0%78.4%GLM 5
Humanity's Last Exam (Artificial Analysis run)29.3%16.5%GLM 5
GPQA Diamond (Epoch AI run)87.8%79.6%GLM 5
ARC-AGI44.7%58.7%o4 Mini
ARC-AGI-24.9%6.1%o4 Mini
SimpleBench53.2%38.7%GLM 5
Chess puzzlesNot measured22.0%Only o4 Mini measured
Mystery game puzzlesNot measured5.0%Only o4 Mini measured
VPCTNot measured57.5%Only o4 Mini measured
LMArena Text: hard prompts14521351GLM 5
LMArena Text: expert14541343GLM 5
LMArena Text: hard prompts in English14601366GLM 5
LMArena Vision: diagramsNot measured1197Only o4 Mini measured
LMArena Vision: homeworkNot measured1234Only o4 Mini measured
Kagi LLM Benchmark75.0%67.6%GLM 5
Neither model has a result on the other 5 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index31
Math benchmarks for GLM 5 and o4 Mini
BenchmarkGLM 5o4 MiniLeader
AIME91.7%83.7%GLM 5
MATH 500 (Vals AI)Not measured94.2%Only o4 Mini measured
MGSM (Vals AI)Not measured93.4%Only o4 Mini measured
AA Math IndexNot measured90.7Only o4 Mini measured
AIME 2025 (Artificial Analysis run)Not measured90.7%Only o4 Mini measured
OTIS Mock AIME80.0%81.7%o4 Mini
FrontierMath, tiers 1 to 3Not measured36.1%Only o4 Mini measured
FrontierMath, tier 4Not measured4.9%Only o4 Mini measured
MATH level 5Not measured97.8%Only o4 Mini measured
LMArena Text: math14401389GLM 5
LMArena Text: mathematical work14511379GLM 5
Neither model has a result on the other 2 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index72
Knowledge benchmarks for GLM 5 and o4 Mini
BenchmarkGLM 5o4 MiniLeader
MMLU Pro86.0%80.6%GLM 5
LegalBench (Vals AI)84.1%79.2%GLM 5
CaseLaw (Vals AI)52.5%Not measuredOnly GLM 5 measured
CorpFin (Vals AI)62.9%59.0%GLM 5
TaxEval (Vals AI)70.0%74.8%o4 Mini
MortgageTax (Vals AI)Not measured64.8%Only o4 Mini measured
MedQA (Vals AI)94.3%96.0%o4 Mini
MedCode (Vals AI)Not measured33.8%Only o4 Mini measured
MMLU Pro (Artificial Analysis run)Not measured83.2%Only o4 Mini measured
SimpleQA VerifiedNot measured19.6%Only o4 Mini measured
GeoBenchNot measured64.0%Only o4 Mini measured
LMArena Text: science14601354GLM 5
LMArena Text: medicine and healthcare14551361GLM 5
LMArena Text: legal and government14531350GLM 5
LMArena Text: business and finance14301325GLM 5
FACTS Benchmark SuiteNot measured28.1%Only o4 Mini measured
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 5 and o4 Mini
BenchmarkGLM 5o4 MiniLeader
Design Arena: websites1247985GLM 5
Design Arena: UI components1227983GLM 5
Design Arena: game dev12341003GLM 5
Design Arena: data viz1228991GLM 5
Design Arena: 3D1228854GLM 5
Design Arena: all code categories1246976GLM 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 o4 Mini
BenchmarkGLM 5o4 MiniLeader
SAGE (Vals AI)Not measured41.1%Only o4 Mini measured
MedScribe (Vals AI)Not measured69.1%Only o4 Mini measured
IFBench72.3%68.7%GLM 5
Long context reasoning (AA-LCR)75.7%61.0%GLM 5
DTBenchNot measured77.6%Only o4 Mini measured
LMCANot measured26.5%Only o4 Mini measured
Fiction.LiveBenchNot measured77.8%Only o4 Mini measured
Creative writing (Lech Mazur)Not measured75.0%Only o4 Mini measured
CL-bench18.7%Not measuredOnly GLM 5 measured
LMArena Text14461353GLM 5
LMArena Text: instruction following14281320GLM 5
LMArena Text: creative writing14381294GLM 5
LMArena VisionNot measured1194Only o4 Mini measured
LMArena Text: English14581367GLM 5
LMArena Text: non-English14301337GLM 5
LMArena Text: Chinese15111354GLM 5
LMArena Text: German14471336GLM 5
LMArena Text: Japanese14161308GLM 5
LMArena Text: Korean14231312GLM 5
LMArena Text: French14561364GLM 5
LMArena Text: Spanish14541346GLM 5
LMArena Text: Russian14361334GLM 5
LMArena Text: Polish14341358GLM 5
LMArena Text: multi-turn14561350GLM 5
LMArena Text: longer queries14461315GLM 5
LMArena Text: writing and language14371316GLM 5
LMArena Text: entertainment and media14261308GLM 5
LMArena Vision: EnglishNot measured1200Only o4 Mini measured
LMArena Vision: ChineseNot measured1218Only o4 Mini measured
LMArena Vision: reading textNot measured1197Only o4 Mini measured
LMArena Vision: humorNot measured1199Only o4 Mini measured
LMArena Vision: captioningNot measured1204Only o4 Mini measured
LMArena Vision: recognizing thingsNot measured1218Only o4 Mini measured
LMArena Vision: creative writingNot measured1166Only o4 Mini measured
Neither model has a result on the other 12 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GLM 5 and o4 Mini
BenchmarkGLM 5o4 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
o4 Mini$0.0033Fits in one request

GLM 5 costs less

Repository review

50K input + 3K output tokens

GLM 5$0.060Fits in one request
o4 Mini$0.068Fits in one request

GLM 5 costs less

Agent loop

200K input + 10K output tokens

GLM 5$0.232Exceeds the context window
o4 Mini$0.264Exceeds the context window

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 o4 Mini
SpecificationZ.ai GLM 5OpenAI o4 Mini
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedFebruary 11, 2026April 16, 2025
Context window205K200K
Input $/Mtok$1.00$1.10
Output $/Mtok$3.20$4.40
Coding index41.7Not benchmarked
Independent measurements behind it30
Cost per solved task$0.63Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5 better than o4 Mini for coding?

Only GLM 5 has a coding score, 41.7 on the Vibe Coding Index; o4 Mini has none, so the two cannot be ranked on coding. Pick o4 Mini for work measured by LiveCodeBench (Vals AI) or WeirdML, where it leads.

Which is cheaper, GLM 5 or o4 Mini?

GLM 5 costs $1.00 per million input tokens and $3.20 per million output tokens; o4 Mini costs $1.10 and $4.40. Cost per solved task is known for GLM 5 only.

Which has the bigger context window, GLM 5 or o4 Mini?

GLM 5, with 205K tokens against 200K.

How many benchmarks is the GLM 5 vs o4 Mini comparison based on?

58 benchmarks have a result for both models as of October 22, 2026. GLM 5's coding index rests on 3 independent benchmarks and o4 Mini's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next