Enter opens the highlighted result. Esc closes.

GPT-5.4 vs Phi 4

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

GPT-5.4OpenAI
Coding
64.4
Overall
39.0
Output $/M
$15.00
37
Phi 4Microsoft
Coding
No data
Overall
5.9
Output $/M
$0.14
0
vs boards won of 37 shared

Decision reading

Only GPT-5.4 has a coding score, 64.4 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 107.1x less.

Shared results
37
GPT-5.4 only
72
Phi 4 only
8
Like-for-like categories
7 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
GPT-5.4 64.4 from 3 benchmarks, Phi 4 not benchmarked.
Widest category
Agentic work, 87.1 points apart on average over 1 shared benchmark.
Widest single gap
τ²-Bench Telecom: GPT-5.4 87.1% against Phi 4 0.0%, 87.1 points apart on a 0 to 100 scale.
Output price
GPT-5.4 $15.00 against Phi 4 $0.14 per million output tokens, 107.1x apart.
Context window
GPT-5.4 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
CategoryGPT-5.4BarsPhi 4Ties
Coding30
Intelligence20
Agentic work10
Reasoning60
Math30
Knowledge40
General180
All shared boards370
CodingLike-for-likeSix of these boards feed the Vibe Coding Index30
Coding benchmarks for GPT-5.4 and Phi 4
BenchmarkGPT-5.4Phi 4Leader
LMArena WebDev1464Not measuredOnly GPT-5.4 measured
AA Coding Index71.1Not measuredOnly GPT-5.4 measured
LiveCodeBench (Vals AI)84.1%Not measuredOnly GPT-5.4 measured
SWE-bench Verified (Vals AI)78.2%Not measuredOnly GPT-5.4 measured
Vibe Code Bench (Vals AI)67.4%Not measuredOnly GPT-5.4 measured
Code migration (Vals AI)35.0%Not measuredOnly GPT-5.4 measured
ProgramBench (Vals AI)0.5%Not measuredOnly GPT-5.4 measured
SkillsBench (Vals AI)51.7%Not measuredOnly GPT-5.4 measured
LiveCodeBench (Artificial Analysis run)Not measured23.1%Only Phi 4 measured
Terminal-Bench Hard (Artificial Analysis run)57.6%3.8%GPT-5.4
Terminal-Bench81.8%Not measuredOnly GPT-5.4 measured
GSO-Bench31.4%Not measuredOnly GPT-5.4 measured
WeirdML77.7%Not measuredOnly GPT-5.4 measured
MirrorCode15.6%Not measuredOnly GPT-5.4 measured
ALE-Bench1607.0Not measuredOnly GPT-5.4 measured
LMArena Text: coding14961231GPT-5.4
LMArena Text: software and IT14911228GPT-5.4
LMArena WebDev: React1454Not measuredOnly GPT-5.4 measured
LMArena WebDev: HTML1478Not measuredOnly GPT-5.4 measured
LMArena WebDev: from an image1436Not measuredOnly GPT-5.4 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 GPT-5.4 and Phi 4
BenchmarkGPT-5.4Phi 4Leader
AA Intelligence Index39.05.9GPT-5.4
Epoch Capabilities Index157.3130.5GPT-5.4
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GPT-5.4 and Phi 4
BenchmarkGPT-5.4Phi 4Leader
Design Arena: agents building web apps1059Not measuredOnly GPT-5.4 measured
Design Arena: agents building full-stack apps1017Not measuredOnly GPT-5.4 measured
Design Arena: agents building mobile apps1087Not measuredOnly GPT-5.4 measured
Design Arena: agents building Android apps1038Not measuredOnly GPT-5.4 measured
Design Arena: agents building Godot games1135Not measuredOnly GPT-5.4 measured
τ²-Bench Telecom87.1%0.0%GPT-5.4
APEX-Agents52.4%Not measuredOnly GPT-5.4 measured
METR time horizons74.3%Not measuredOnly GPT-5.4 measured
BALROGNot measured11.6%Only Phi 4 measured
DeepResearch Bench35.1%Not measuredOnly GPT-5.4 measured
PostTrainBench19.0%Not measuredOnly GPT-5.4 measured
Vending-Bench 2$6,144Not measuredOnly GPT-5.4 measured
Neither model has a result on the other 27 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index60
Reasoning benchmarks for GPT-5.4 and Phi 4
BenchmarkGPT-5.4Phi 4Leader
GPQA Diamond91.7%Not measuredOnly GPT-5.4 measured
MMMU Pro (Vals AI)87.5%Not measuredOnly GPT-5.4 measured
GPQA Diamond (Artificial Analysis run)92.0%57.5%GPT-5.4
Humanity's Last Exam (Artificial Analysis run)43.7%3.8%GPT-5.4
GPQA Diamond (Epoch AI run)93.3%56.1%GPT-5.4
ARC-AGI93.7%Not measuredOnly GPT-5.4 measured
ARC-AGI-274.0%Not measuredOnly GPT-5.4 measured
Chess puzzles48.0%Not measuredOnly GPT-5.4 measured
Mystery game puzzles37.0%Not measuredOnly GPT-5.4 measured
EBR-bench25.4%Not measuredOnly GPT-5.4 measured
LMArena Text: hard prompts14851220GPT-5.4
LMArena Text: expert15071203GPT-5.4
LMArena Text: hard prompts in English14791230GPT-5.4
LMArena Vision: diagrams1327Not measuredOnly GPT-5.4 measured
LMArena Vision: homework1336Not measuredOnly GPT-5.4 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 GPT-5.4 and Phi 4
BenchmarkGPT-5.4Phi 4Leader
AIME96.7%Not measuredOnly GPT-5.4 measured
AA Math IndexNot measured18.0Only Phi 4 measured
AIME 2025 (Artificial Analysis run)Not measured18.0%Only Phi 4 measured
OTIS Mock AIME97.8%13.8%GPT-5.4
FrontierMath, tiers 1 to 378.6%Not measuredOnly GPT-5.4 measured
FrontierMath, tier 449.0%Not measuredOnly GPT-5.4 measured
ProofBench56.0%Not measuredOnly GPT-5.4 measured
MATH level 5Not measured64.9%Only Phi 4 measured
LMArena Text: math14881246GPT-5.4
LMArena Text: mathematical work14971254GPT-5.4
Neither model has a result on the other 3 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index40
Knowledge benchmarks for GPT-5.4 and Phi 4
BenchmarkGPT-5.4Phi 4Leader
MMLU Pro87.5%Not measuredOnly GPT-5.4 measured
LegalBench (Vals AI)86.0%Not measuredOnly GPT-5.4 measured
CaseLaw (Vals AI)63.8%Not measuredOnly GPT-5.4 measured
CorpFin (Vals AI)65.3%Not measuredOnly GPT-5.4 measured
TaxEval (Vals AI)74.0%Not measuredOnly GPT-5.4 measured
MortgageTax (Vals AI)68.3%Not measuredOnly GPT-5.4 measured
MedQA (Vals AI)96.1%Not measuredOnly GPT-5.4 measured
MedCode (Vals AI)41.3%Not measuredOnly GPT-5.4 measured
MMLU Pro (Artificial Analysis run)Not measured71.4%Only Phi 4 measured
SimpleQA Verified45.1%Not measuredOnly GPT-5.4 measured
MMLUNot measured84.8%Only Phi 4 measured
LMArena Text: science14791206GPT-5.4
LMArena Text: medicine and healthcare14581202GPT-5.4
LMArena Text: legal and government14861241GPT-5.4
LMArena Text: business and finance14741199GPT-5.4
Neither model has a result on the other 2 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for GPT-5.4 and Phi 4
BenchmarkGPT-5.4Phi 4Leader
Design Arena: websites1199Not measuredOnly GPT-5.4 measured
Design Arena: UI components1215Not measuredOnly GPT-5.4 measured
Design Arena: game dev1195Not measuredOnly GPT-5.4 measured
Design Arena: data viz1195Not measuredOnly GPT-5.4 measured
Design Arena: 3D1065Not measuredOnly GPT-5.4 measured
Design Arena: all code categories1180Not measuredOnly GPT-5.4 measured
Design Arena: SVG1142Not measuredOnly GPT-5.4 measured
Design Arena: ASCII art1188Not measuredOnly GPT-5.4 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index180
General benchmarks for GPT-5.4 and Phi 4
BenchmarkGPT-5.4Phi 4Leader
SAGE (Vals AI)43.3%Not measuredOnly GPT-5.4 measured
MedScribe (Vals AI)77.5%Not measuredOnly GPT-5.4 measured
IFBench73.9%23.5%GPT-5.4
Long context reasoning (AA-LCR)82.0%0.0%GPT-5.4
DTBench94.4%Not measuredOnly GPT-5.4 measured
LMCA52.0%Not measuredOnly GPT-5.4 measured
Creative writing (Lech Mazur)Not measured62.6%Only Phi 4 measured
CL-bench27.9%Not measuredOnly GPT-5.4 measured
Furniture assembly37.5%Not measuredOnly GPT-5.4 measured
CL-bench Life21.7%Not measuredOnly GPT-5.4 measured
LMArena Text14691217GPT-5.4
LMArena Text: instruction following14691201GPT-5.4
LMArena Text: creative writing14391181GPT-5.4
LMArena Vision1303Not measuredOnly GPT-5.4 measured
LMArena Text: English14671231GPT-5.4
LMArena Text: non-English14651197GPT-5.4
LMArena Text: Chinese15201212GPT-5.4
LMArena Text: German14721222GPT-5.4
LMArena Text: Japanese14851158GPT-5.4
LMArena Text: Korean14491151GPT-5.4
LMArena Text: French14931224GPT-5.4
LMArena Text: Spanish14521234GPT-5.4
LMArena Text: Russian14801209GPT-5.4
LMArena Text: Polish1472Not measuredOnly GPT-5.4 measured
LMArena Text: multi-turn14821206GPT-5.4
LMArena Text: longer queries14731217GPT-5.4
LMArena Text: writing and language14581198GPT-5.4
LMArena Text: entertainment and media14381162GPT-5.4
LMArena Vision: English1301Not measuredOnly GPT-5.4 measured
LMArena Vision: Chinese1354Not measuredOnly GPT-5.4 measured
LMArena Vision: reading text1312Not measuredOnly GPT-5.4 measured
LMArena Vision: humor1284Not measuredOnly GPT-5.4 measured
LMArena Vision: recognizing things1251Not measuredOnly GPT-5.4 measured
LMArena Vision: creative writing1283Not measuredOnly GPT-5.4 measured
LMArena Document1471Not measuredOnly GPT-5.4 measured
Neither model has a result on the other 11 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GPT-5.4 and Phi 4
BenchmarkGPT-5.4Phi 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

GPT-5.4$0.010Fits in one request
Phi 4$0.0001Fits in one request

Phi 4 costs less

Repository review

50K input + 3K output tokens

GPT-5.4$0.170Fits in one request
Phi 4$0.0039Exceeds the context window

Phi 4 costs less

Agent loop

200K input + 10K output tokens

GPT-5.4$0.650Fits 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 GPT-5.4 and Phi 4
SpecificationOpenAI GPT-5.4Microsoft Phi 4
MakerOpenAIMicrosoft
WeightsNo public weights listedOpen weights
ReleasedMarch 5, 2026January 10, 2025
Context window1.05M16K
Input $/Mtok$2.50$0.07
Output $/Mtok$15.00$0.14
Coding index64.4Not benchmarked
Independent measurements behind it30
Cost per solved task$1.02Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is GPT-5.4 better than Phi 4 for coding?

Only GPT-5.4 has a coding score, 64.4 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 107.1x less.

Which is cheaper, GPT-5.4 or Phi 4?

GPT-5.4 costs $2.50 per million input tokens and $15.00 per million output tokens; Phi 4 costs $0.07 and $0.14. Cost per solved task is known for GPT-5.4 only.

Which has the bigger context window, GPT-5.4 or Phi 4?

GPT-5.4, with 1.05M tokens against 16K.

How many benchmarks is the GPT-5.4 vs Phi 4 comparison based on?

37 benchmarks have a result for both models as of October 21, 2026. GPT-5.4's coding index rests on 3 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