Enter opens the highlighted result. Esc closes.

GLM 5.3 Flash vs Phi 4

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

GLM 5.3 FlashZ.ai
Coding
57.7
Overall
41.8
Output $/M
$0.50
34
Phi 4Microsoft
Coding
No data
Overall
5.9
Output $/M
$0.14
0
vs boards won of 34 shared

Decision reading

Only GLM 5.3 Flash has a coding score, 57.7 on the Vibe Coding Index; Phi 4 has none, so the two cannot be ranked on coding.

Phi 4 has the edge where output tokens cost 3.6x less.

Shared results
34
GLM 5.3 Flash only
68
Phi 4 only
11
Like-for-like categories
6 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.3 Flash 57.7 from 6 benchmarks, Phi 4 not benchmarked.
Widest category
Math, 54.5 points apart on average over 3 shared benchmarks.
Widest single gap
OTIS Mock AIME: GLM 5.3 Flash 93.9% against Phi 4 13.8%, 80.1 points apart on a 0 to 100 scale.
Output price
GLM 5.3 Flash $0.50 against Phi 4 $0.14 per million output tokens, 3.6x apart.
Context window
GLM 5.3 Flash takes 1.05M tokens, Phi 4 16K.

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.3 FlashBarsPhi 4Ties
Coding20
Intelligence20
Reasoning60
Math30
Knowledge40
General170
All shared boards340
CodingLike-for-likeSix of these boards feed the Vibe Coding Index20
Coding benchmarks for GLM 5.3 Flash and Phi 4
BenchmarkGLM 5.3 FlashPhi 4Leader
LiveBench coding80.6%Not measuredOnly GLM 5.3 Flash measured
LMArena WebDev1607Not measuredOnly GLM 5.3 Flash measured
AA Coding Index71.5Not measuredOnly GLM 5.3 Flash measured
LiveCodeBench (Vals AI)80.5%Not measuredOnly GLM 5.3 Flash measured
SWE-bench Verified (Vals AI)92.0%Not measuredOnly GLM 5.3 Flash measured
Terminal-Bench 4 (Vals AI)37.4%Not measuredOnly GLM 5.3 Flash measured
Vibe Code Bench (Vals AI)30.8%Not measuredOnly GLM 5.3 Flash measured
Code migration (Vals AI)20.5%Not measuredOnly GLM 5.3 Flash measured
ProgramBench (Vals AI)0.0%Not measuredOnly GLM 5.3 Flash measured
IOI (Vals AI)52.5%Not measuredOnly GLM 5.3 Flash measured
Terminal-Bench 2.1 (Vals AI)62.9%Not measuredOnly GLM 5.3 Flash measured
Vibe Code Bench 1-100 (Vals AI)16.0%Not measuredOnly GLM 5.3 Flash measured
SkillsBench (Vals AI)40.2%Not measuredOnly GLM 5.3 Flash measured
CyberBench (Vals AI)67.9%Not measuredOnly GLM 5.3 Flash measured
LiveCodeBench (Artificial Analysis run)Not measured23.1%Only Phi 4 measured
SciCode51.6%Not measuredOnly GLM 5.3 Flash measured
Terminal-Bench Hard (Artificial Analysis run)Not measured3.8%Only Phi 4 measured
FrontierCode31.8%Not measuredOnly GLM 5.3 Flash measured
FrontierSWE18.1%Not measuredOnly GLM 5.3 Flash measured
ALE-Bench303.6Not measuredOnly GLM 5.3 Flash measured
LMArena Text: coding15071231GLM 5.3 Flash
LMArena Text: software and IT15001228GLM 5.3 Flash
LMArena WebDev: React1624Not measuredOnly GLM 5.3 Flash measured
LMArena WebDev: HTML1577Not measuredOnly GLM 5.3 Flash measured
LMArena WebDev: from an image1578Not measuredOnly GLM 5.3 Flash measured
Neither model has a result on the other 13 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GLM 5.3 Flash and Phi 4
BenchmarkGLM 5.3 FlashPhi 4Leader
AA Intelligence Index41.85.9GLM 5.3 Flash
Epoch Capabilities Index153.1130.5GLM 5.3 Flash
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index14 boards, none shared
Agentic work benchmarks for GLM 5.3 Flash and Phi 4
BenchmarkGLM 5.3 FlashPhi 4Leader
AA Agentic Index50.9Not measuredOnly GLM 5.3 Flash measured
LiveBench research70.1%Not measuredOnly GLM 5.3 Flash measured
LiveBench browser84.0%Not measuredOnly GLM 5.3 Flash measured
LiveBench long agentic28.4%Not measuredOnly GLM 5.3 Flash measured
SREBench (Vals AI)0.8%Not measuredOnly GLM 5.3 Flash measured
Finance Agent (Vals AI)57.9%Not measuredOnly GLM 5.3 Flash measured
Tax Agent Bench (Vals AI)31.6%Not measuredOnly GLM 5.3 Flash measured
Legal Research Bench (Vals AI)45.2%Not measuredOnly GLM 5.3 Flash measured
Harvey's Legal Agent Benchmark (Vals AI)10.4%Not measuredOnly GLM 5.3 Flash measured
Excel Modeling Benchmark (Vals AI)55.9%Not measuredOnly GLM 5.3 Flash measured
Terminal-Bench-Science (Vals AI)2.9%Not measuredOnly GLM 5.3 Flash measured
τ²-Bench TelecomNot measured0.0%Only Phi 4 measured
APEX-Agents52.8%Not measuredOnly GLM 5.3 Flash measured
BALROGNot measured11.6%Only Phi 4 measured
Neither model has a result on the other 25 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index60
Reasoning benchmarks for GLM 5.3 Flash and Phi 4
BenchmarkGLM 5.3 FlashPhi 4Leader
GPQA Diamond86.4%Not measuredOnly GLM 5.3 Flash measured
LiveBench reasoning77.6%Not measuredOnly GLM 5.3 Flash measured
MMMU Pro (Vals AI)86.0%Not measuredOnly GLM 5.3 Flash measured
GPQA Diamond (Artificial Analysis run)91.2%57.5%GLM 5.3 Flash
Humanity's Last Exam (Artificial Analysis run)39.9%3.8%GLM 5.3 Flash
GPQA Diamond (Epoch AI run)90.2%56.1%GLM 5.3 Flash
ARC-AGI91.0%Not measuredOnly GLM 5.3 Flash measured
ARC-AGI-265.8%Not measuredOnly GLM 5.3 Flash measured
Chess puzzles21.0%Not measuredOnly GLM 5.3 Flash measured
Mystery game puzzles8.0%Not measuredOnly GLM 5.3 Flash measured
LMArena Text: hard prompts14901220GLM 5.3 Flash
LMArena Text: expert15111203GLM 5.3 Flash
LMArena Text: hard prompts in English14881230GLM 5.3 Flash
LMArena Vision: diagrams1317Not measuredOnly GLM 5.3 Flash measured
LMArena Vision: homework1318Not measuredOnly GLM 5.3 Flash measured
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index30
Math benchmarks for GLM 5.3 Flash and Phi 4
BenchmarkGLM 5.3 FlashPhi 4Leader
AA Math IndexNot measured18.0Only Phi 4 measured
AIME 2025 (Artificial Analysis run)Not measured18.0%Only Phi 4 measured
OTIS Mock AIME93.9%13.8%GLM 5.3 Flash
FrontierMath, tiers 1 to 355.8%Not measuredOnly GLM 5.3 Flash measured
FrontierMath, tier 417.1%Not measuredOnly GLM 5.3 Flash measured
ProofBench21.0%Not measuredOnly GLM 5.3 Flash measured
MATH level 5Not measured64.9%Only Phi 4 measured
LMArena Text: math15031246GLM 5.3 Flash
LMArena Text: mathematical work14971254GLM 5.3 Flash
Neither model has a result on the other 4 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index40
Knowledge benchmarks for GLM 5.3 Flash and Phi 4
BenchmarkGLM 5.3 FlashPhi 4Leader
MMLU Pro86.1%Not measuredOnly GLM 5.3 Flash measured
LegalBench (Vals AI)83.9%Not measuredOnly GLM 5.3 Flash measured
TaxEval (Vals AI)75.6%Not measuredOnly GLM 5.3 Flash measured
MMLU Pro (Artificial Analysis run)Not measured71.4%Only Phi 4 measured
MMLUNot measured84.8%Only Phi 4 measured
LMArena Text: science14841206GLM 5.3 Flash
LMArena Text: medicine and healthcare14751202GLM 5.3 Flash
LMArena Text: legal and government14731241GLM 5.3 Flash
LMArena Text: business and finance14601199GLM 5.3 Flash
Neither model has a result on the other 8 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
Web design benchmarks for GLM 5.3 Flash and Phi 4
BenchmarkGLM 5.3 FlashPhi 4Leader
Design Arena: websites1272Not measuredOnly GLM 5.3 Flash measured
Design Arena: UI components1316Not measuredOnly GLM 5.3 Flash measured
Design Arena: game dev1278Not measuredOnly GLM 5.3 Flash measured
Design Arena: data viz1261Not measuredOnly GLM 5.3 Flash measured
Design Arena: 3D1316Not measuredOnly GLM 5.3 Flash measured
Design Arena: all code categories1282Not measuredOnly GLM 5.3 Flash measured
Design Arena: SVG1284Not measuredOnly GLM 5.3 Flash measured
Design Arena: ASCII art1268Not measuredOnly GLM 5.3 Flash measured
LiveBench design77.2%Not measuredOnly GLM 5.3 Flash measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index170
General benchmarks for GLM 5.3 Flash and Phi 4
BenchmarkGLM 5.3 FlashPhi 4Leader
Vals Index50.9%Not measuredOnly GLM 5.3 Flash measured
LiveBench data analysis76.4%Not measuredOnly GLM 5.3 Flash measured
MedScribe (Vals AI)88.9%Not measuredOnly GLM 5.3 Flash measured
IFBenchNot measured23.5%Only Phi 4 measured
Long context reasoning (AA-LCR)80.0%0.0%GLM 5.3 Flash
Creative writing (Lech Mazur)Not measured62.6%Only Phi 4 measured
Surface Evolver Bench52.5%Not measuredOnly GLM 5.3 Flash measured
LMArena Text14711217GLM 5.3 Flash
LMArena Text: instruction following14781201GLM 5.3 Flash
LMArena Text: creative writing14411181GLM 5.3 Flash
LMArena Vision1294Not measuredOnly GLM 5.3 Flash measured
LMArena Text: English14741231GLM 5.3 Flash
LMArena Text: non-English14621197GLM 5.3 Flash
LMArena Text: Chinese15311212GLM 5.3 Flash
LMArena Text: German14621222GLM 5.3 Flash
LMArena Text: Japanese14441158GLM 5.3 Flash
LMArena Text: Korean14361151GLM 5.3 Flash
LMArena Text: French14911224GLM 5.3 Flash
LMArena Text: Spanish14751234GLM 5.3 Flash
LMArena Text: Russian14651209GLM 5.3 Flash
LMArena Text: Polish1450Not measuredOnly GLM 5.3 Flash measured
LMArena Text: multi-turn14691206GLM 5.3 Flash
LMArena Text: longer queries14811217GLM 5.3 Flash
LMArena Text: writing and language14551198GLM 5.3 Flash
LMArena Text: entertainment and media14401162GLM 5.3 Flash
LMArena Vision: English1295Not measuredOnly GLM 5.3 Flash measured
LMArena Vision: Chinese1363Not measuredOnly GLM 5.3 Flash measured
LMArena Vision: reading text1299Not measuredOnly GLM 5.3 Flash measured
LMArena Vision: humor1279Not measuredOnly GLM 5.3 Flash measured
LMArena Vision: creative writing1270Not measuredOnly GLM 5.3 Flash measured
Neither model has a result on the other 16 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GLM 5.3 Flash and Phi 4
BenchmarkGLM 5.3 FlashPhi 4Leader
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.3 Flash$0.0004Fits in one request
Phi 4$0.0001Fits in one request

Phi 4 costs less

Repository review

50K input + 3K output tokens

GLM 5.3 Flash$0.0090Fits in one request
Phi 4$0.0039Exceeds the context window

Phi 4 costs less

Agent loop

200K input + 10K output tokens

GLM 5.3 Flash$0.035Fits in one request
Phi 4$0.015Exceeds the context window

Phi 4 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.3 Flash and Phi 4
SpecificationZ.ai GLM 5.3 FlashMicrosoft Phi 4
MakerZ.aiMicrosoft
WeightsOpen weightsOpen weights
ReleasedAugust 26, 2026January 10, 2025
Context window1.05M16K
Input $/Mtok$0.15$0.07
Output $/Mtok$0.50$0.14
Coding index57.7Not benchmarked
Independent measurements behind it60
Cost per solved task$0.02Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5.3 Flash better than Phi 4 for coding?

Only GLM 5.3 Flash has a coding score, 57.7 on the Vibe Coding Index; Phi 4 has none, so the two cannot be ranked on coding. Phi 4 has the edge where output tokens cost 3.6x less.

Which is cheaper, GLM 5.3 Flash or Phi 4?

GLM 5.3 Flash costs $0.15 per million input tokens and $0.50 per million output tokens; Phi 4 costs $0.07 and $0.14. Cost per solved task is known for GLM 5.3 Flash only.

Which has the bigger context window, GLM 5.3 Flash or Phi 4?

GLM 5.3 Flash, with 1.05M tokens against 16K.

How many benchmarks is the GLM 5.3 Flash vs Phi 4 comparison based on?

34 benchmarks have a result for both models as of October 21, 2026. GLM 5.3 Flash's coding index rests on 6 independent benchmarks and Phi 4's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next