Enter opens the highlighted result. Esc closes.

GPT-5.4 Nano 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.4 NanoOpenAI
Coding
44.8
Overall
20.7
Output $/M
$1.25
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 Nano has a coding score, 44.8 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 8.9x less.

Shared results
37
GPT-5.4 Nano only
47
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 Nano 44.8 from 2 benchmarks, Phi 4 not benchmarked.
Widest category
Agentic work, 76.0 points apart on average over 1 shared benchmark.
Widest single gap
Long context reasoning (AA-LCR): GPT-5.4 Nano 76.7% against Phi 4 0.0%, 76.7 points apart on a 0 to 100 scale.
Output price
GPT-5.4 Nano $1.25 against Phi 4 $0.14 per million output tokens, 8.9x apart.
Context window
GPT-5.4 Nano takes 400K 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.4 NanoBarsPhi 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 Nano and Phi 4
BenchmarkGPT-5.4 NanoPhi 4Leader
AA Coding Index56.1Not measuredOnly GPT-5.4 Nano measured
LiveCodeBench (Vals AI)84.0%Not measuredOnly GPT-5.4 Nano measured
SWE-bench Verified (Vals AI)69.8%Not measuredOnly GPT-5.4 Nano measured
Vibe Code Bench (Vals AI)26.1%Not measuredOnly GPT-5.4 Nano measured
Code migration (Vals AI)14.5%Not measuredOnly GPT-5.4 Nano measured
Terminal-Bench 2.1 (Vals AI)41.6%Not measuredOnly GPT-5.4 Nano measured
LiveCodeBench (Artificial Analysis run)Not measured23.1%Only Phi 4 measured
SciCode47.2%Not measuredOnly GPT-5.4 Nano measured
Terminal-Bench Hard (Artificial Analysis run)42.4%3.8%GPT-5.4 Nano
WeirdML49.2%Not measuredOnly GPT-5.4 Nano measured
ALE-Bench1004.5Not measuredOnly GPT-5.4 Nano measured
LMArena Text: coding14041231GPT-5.4 Nano
LMArena Text: software and IT14021228GPT-5.4 Nano
Neither model has a result on the other 25 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GPT-5.4 Nano and Phi 4
BenchmarkGPT-5.4 NanoPhi 4Leader
AA Intelligence Index20.75.9GPT-5.4 Nano
Epoch Capabilities Index146.0130.5GPT-5.4 Nano
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GPT-5.4 Nano and Phi 4
BenchmarkGPT-5.4 NanoPhi 4Leader
AA Agentic Index16.0Not measuredOnly GPT-5.4 Nano measured
Finance Agent (Vals AI)38.2%Not measuredOnly GPT-5.4 Nano measured
Tax Agent Bench (Vals AI)5.0%Not measuredOnly GPT-5.4 Nano measured
Legal Research Bench (Vals AI)6.3%Not measuredOnly GPT-5.4 Nano measured
Excel Modeling Benchmark (Vals AI)44.8%Not measuredOnly GPT-5.4 Nano measured
τ²-Bench Telecom76.0%0.0%GPT-5.4 Nano
BALROGNot measured11.6%Only Phi 4 measured
Neither model has a result on the other 32 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index60
Reasoning benchmarks for GPT-5.4 Nano and Phi 4
BenchmarkGPT-5.4 NanoPhi 4Leader
GPQA Diamond77.5%Not measuredOnly GPT-5.4 Nano measured
MMMU Pro (Vals AI)73.6%Not measuredOnly GPT-5.4 Nano measured
GPQA Diamond (Artificial Analysis run)81.7%57.5%GPT-5.4 Nano
Humanity's Last Exam (Artificial Analysis run)28.3%3.8%GPT-5.4 Nano
GPQA Diamond (Epoch AI run)78.5%56.1%GPT-5.4 Nano
ARC-AGI51.5%Not measuredOnly GPT-5.4 Nano measured
ARC-AGI-25.7%Not measuredOnly GPT-5.4 Nano measured
Chess puzzles45.0%Not measuredOnly GPT-5.4 Nano measured
Mystery game puzzles9.0%Not measuredOnly GPT-5.4 Nano measured
LMArena Text: hard prompts13811220GPT-5.4 Nano
LMArena Text: expert13961203GPT-5.4 Nano
LMArena Text: hard prompts in English13871230GPT-5.4 Nano
LMArena Vision: diagrams1210Not measuredOnly GPT-5.4 Nano measured
LMArena Vision: homework1225Not measuredOnly GPT-5.4 Nano measured
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 GPT-5.4 Nano and Phi 4
BenchmarkGPT-5.4 NanoPhi 4Leader
AIME88.8%Not measuredOnly GPT-5.4 Nano measured
AA Math IndexNot measured18.0Only Phi 4 measured
AIME 2025 (Artificial Analysis run)Not measured18.0%Only Phi 4 measured
OTIS Mock AIME87.8%13.8%GPT-5.4 Nano
FrontierMath, tiers 1 to 344.9%Not measuredOnly GPT-5.4 Nano measured
FrontierMath, tier 412.2%Not measuredOnly GPT-5.4 Nano measured
ProofBench5.0%Not measuredOnly GPT-5.4 Nano measured
MATH level 5Not measured64.9%Only Phi 4 measured
LMArena Text: math14051246GPT-5.4 Nano
LMArena Text: mathematical work14091254GPT-5.4 Nano
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 Nano and Phi 4
BenchmarkGPT-5.4 NanoPhi 4Leader
MMLU Pro77.2%Not measuredOnly GPT-5.4 Nano measured
LegalBench (Vals AI)77.9%Not measuredOnly GPT-5.4 Nano measured
CaseLaw (Vals AI)51.9%Not measuredOnly GPT-5.4 Nano measured
CorpFin (Vals AI)61.2%Not measuredOnly GPT-5.4 Nano measured
TaxEval (Vals AI)67.4%Not measuredOnly GPT-5.4 Nano measured
MortgageTax (Vals AI)59.1%Not measuredOnly GPT-5.4 Nano measured
MedCode (Vals AI)41.0%Not measuredOnly GPT-5.4 Nano measured
MMLU Pro (Artificial Analysis run)Not measured71.4%Only Phi 4 measured
SimpleQA Verified11.7%Not measuredOnly GPT-5.4 Nano measured
MMLUNot measured84.8%Only Phi 4 measured
LMArena Text: science13741206GPT-5.4 Nano
LMArena Text: medicine and healthcare13691202GPT-5.4 Nano
LMArena Text: legal and government13681241GPT-5.4 Nano
LMArena Text: business and finance13661199GPT-5.4 Nano
Neither model has a result on the other 3 boards here
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Web design benchmarks for GPT-5.4 Nano and Phi 4
BenchmarkGPT-5.4 NanoPhi 4Leader
Neither model has a result on 9 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index180
General benchmarks for GPT-5.4 Nano and Phi 4
BenchmarkGPT-5.4 NanoPhi 4Leader
SAGE (Vals AI)38.1%Not measuredOnly GPT-5.4 Nano measured
MedScribe (Vals AI)77.1%Not measuredOnly GPT-5.4 Nano measured
Vals Multimodal Index47.6%Not measuredOnly GPT-5.4 Nano measured
IFBench75.9%23.5%GPT-5.4 Nano
Long context reasoning (AA-LCR)76.7%0.0%GPT-5.4 Nano
DTBench80.3%Not measuredOnly GPT-5.4 Nano measured
LMCA36.9%Not measuredOnly GPT-5.4 Nano measured
Creative writing (Lech Mazur)Not measured62.6%Only Phi 4 measured
LMArena Text13721217GPT-5.4 Nano
LMArena Text: instruction following13621201GPT-5.4 Nano
LMArena Text: creative writing13151181GPT-5.4 Nano
LMArena Vision1196Not measuredOnly GPT-5.4 Nano measured
LMArena Text: English13811231GPT-5.4 Nano
LMArena Text: non-English13591197GPT-5.4 Nano
LMArena Text: Chinese13911212GPT-5.4 Nano
LMArena Text: German13681222GPT-5.4 Nano
LMArena Text: Japanese13431158GPT-5.4 Nano
LMArena Text: Korean13211151GPT-5.4 Nano
LMArena Text: French13951224GPT-5.4 Nano
LMArena Text: Spanish13711234GPT-5.4 Nano
LMArena Text: Russian13631209GPT-5.4 Nano
LMArena Text: Polish1366Not measuredOnly GPT-5.4 Nano measured
LMArena Text: multi-turn13821206GPT-5.4 Nano
LMArena Text: longer queries13651217GPT-5.4 Nano
LMArena Text: writing and language13381198GPT-5.4 Nano
LMArena Text: entertainment and media13251162GPT-5.4 Nano
LMArena Vision: English1202Not measuredOnly GPT-5.4 Nano measured
LMArena Vision: Chinese1232Not measuredOnly GPT-5.4 Nano measured
LMArena Vision: reading text1204Not measuredOnly GPT-5.4 Nano measured
LMArena Vision: humor1161Not measuredOnly GPT-5.4 Nano measured
LMArena Vision: recognizing things1141Not measuredOnly GPT-5.4 Nano measured
LMArena Vision: creative writing1159Not measuredOnly GPT-5.4 Nano measured
Neither model has a result on the other 14 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GPT-5.4 Nano and Phi 4
BenchmarkGPT-5.4 NanoPhi 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 Nano$0.0008Fits in one request
Phi 4$0.0001Fits in one request

Phi 4 costs less

Repository review

50K input + 3K output tokens

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

Phi 4 costs less

Agent loop

200K input + 10K output tokens

GPT-5.4 Nano$0.052Fits 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 Nano and Phi 4
SpecificationOpenAI GPT-5.4 NanoMicrosoft Phi 4
MakerOpenAIMicrosoft
WeightsNo public weights listedOpen weights
ReleasedMarch 17, 2026January 10, 2025
Context window400K16K
Input $/Mtok$0.20$0.07
Output $/Mtok$1.25$0.14
Coding index44.8Not benchmarked
Independent measurements behind it20
Cost per solved task$0.14Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is GPT-5.4 Nano better than Phi 4 for coding?

Only GPT-5.4 Nano has a coding score, 44.8 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 8.9x less.

Which is cheaper, GPT-5.4 Nano or Phi 4?

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

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

GPT-5.4 Nano, with 400K tokens against 16K.

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

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