Enter opens the highlighted result. Esc closes.

GPT-5.4 Mini vs Phi 4

GPT-5.4 Mini leads Phi 4 on the Artificial Analysis Intelligence Index, 24.1 to 5.9, and Phi 4 costs 32.1x less per output token ($0.14 vs $4.50 per million). Updated October 21, 2026; 37 benchmarks have a result for both.

GPT-5.4 MiniOpenAI
Coding
35.8
Overall
44.0
Output $/M
$4.50
37
Phi 4Microsoft
Coding
No data
Overall
24.7
Output $/M
$0.14
0
vs boards won of 37 shared

GPT-5.4 Mini or Phi 4: which to pick

Only GPT-5.4 Mini has a coding score, 35.8 on the Vibe Coding Index; Phi 4 has none, so the two cannot be ranked on coding.

Pick Phi 4 for output tokens 32.1x cheaper ($0.14 vs $4.50 per million).

Shared results
37
GPT-5.4 Mini only
52
Phi 4 only
9
Like-for-like categories
7 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
GPT-5.4 Mini 35.8 from 5 benchmarks, Phi 4 not benchmarked.
Widest category
Agentic work, 83.3 points apart on average over 1 shared benchmark.
Widest single gap
τ²-Bench Telecom: GPT-5.4 Mini 83.3% against Phi 4 0.0%, 83.3 points apart on a 0 to 100 scale.
Output price
GPT-5.4 Mini $4.50 against Phi 4 $0.14 per million output tokens, 32.1x apart.
Context window
GPT-5.4 Mini 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 MiniBarsPhi 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 Mini and Phi 4
BenchmarkGPT-5.4 MiniPhi 4Leader
LMArena WebDev1397Not measuredOnly GPT-5.4 Mini measured
AA Coding Index56.1Not measuredOnly GPT-5.4 Mini measured
LiveCodeBench (Vals AI)81.5%Not measuredOnly GPT-5.4 Mini measured
SWE-bench Verified (Vals AI)73.0%Not measuredOnly GPT-5.4 Mini measured
Terminal-Bench 4 (Vals AI)2.5%Not measuredOnly GPT-5.4 Mini measured
Vibe Code Bench (Vals AI)48.0%Not measuredOnly GPT-5.4 Mini measured
Code migration (Vals AI)12.9%Not measuredOnly GPT-5.4 Mini measured
ProgramBench (Vals AI)0.0%Not measuredOnly GPT-5.4 Mini measured
Terminal-Bench 2.1 (Vals AI)54.7%Not measuredOnly GPT-5.4 Mini measured
LiveCodeBench (Artificial Analysis run)Not measured23.1%Only Phi 4 measured
SciCode52.1%Not measuredOnly GPT-5.4 Mini measured
Terminal-Bench Hard (Artificial Analysis run)52.3%3.8%GPT-5.4 Mini
FrontierCode27.0%Not measuredOnly GPT-5.4 Mini measured
WeirdML60.3%Not measuredOnly GPT-5.4 Mini measured
ALE-Bench1188.6Not measuredOnly GPT-5.4 Mini measured
LMArena Text: coding14381231GPT-5.4 Mini
LMArena Text: software and IT14361228GPT-5.4 Mini
LMArena WebDev: React1386Not measuredOnly GPT-5.4 Mini measured
LMArena WebDev: HTML1419Not measuredOnly GPT-5.4 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 GPT-5.4 Mini and Phi 4
BenchmarkGPT-5.4 MiniPhi 4Leader
AA Intelligence Index24.15.9GPT-5.4 Mini
Epoch Capabilities Index148.7130.5GPT-5.4 Mini
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GPT-5.4 Mini and Phi 4
BenchmarkGPT-5.4 MiniPhi 4Leader
AA Agentic Index17.9Not measuredOnly GPT-5.4 Mini measured
Finance Agent (Vals AI)45.4%Not measuredOnly GPT-5.4 Mini measured
Tax Agent Bench (Vals AI)8.8%Not measuredOnly GPT-5.4 Mini measured
Legal Research Bench (Vals AI)12.5%Not measuredOnly GPT-5.4 Mini measured
Excel Modeling Benchmark (Vals AI)45.4%Not measuredOnly GPT-5.4 Mini measured
τ²-Bench Telecom83.3%0.0%GPT-5.4 Mini
BALROGNot measured11.6%Only Phi 4 measured
DeepResearch Bench36.3%Not measuredOnly GPT-5.4 Mini measured
Berkeley Function Calling Leaderboard (BFCL)Not measured28.8%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 Mini and Phi 4
BenchmarkGPT-5.4 MiniPhi 4Leader
GPQA Diamond83.1%Not measuredOnly GPT-5.4 Mini measured
MMMU Pro (Vals AI)79.3%Not measuredOnly GPT-5.4 Mini measured
GPQA Diamond (Artificial Analysis run)87.5%57.5%GPT-5.4 Mini
Humanity's Last Exam (Artificial Analysis run)28.1%3.8%GPT-5.4 Mini
GPQA Diamond (Epoch AI run)86.9%56.1%GPT-5.4 Mini
ARC-AGI63.7%Not measuredOnly GPT-5.4 Mini measured
ARC-AGI-218.9%Not measuredOnly GPT-5.4 Mini measured
Chess puzzles23.0%Not measuredOnly GPT-5.4 Mini measured
Mystery game puzzles11.0%Not measuredOnly GPT-5.4 Mini measured
LMArena Text: hard prompts14241220GPT-5.4 Mini
LMArena Text: expert14351203GPT-5.4 Mini
LMArena Text: hard prompts in English14201230GPT-5.4 Mini
LMArena Vision: diagrams1266Not measuredOnly GPT-5.4 Mini measured
LMArena Vision: homework1285Not measuredOnly GPT-5.4 Mini measured
Kagi LLM Benchmark37.9%Not measuredOnly GPT-5.4 Mini 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 Mini and Phi 4
BenchmarkGPT-5.4 MiniPhi 4Leader
AIME95.6%Not measuredOnly GPT-5.4 Mini measured
AA Math IndexNot measured18.0Only Phi 4 measured
AIME 2025 (Artificial Analysis run)Not measured18.0%Only Phi 4 measured
OTIS Mock AIME88.9%13.8%GPT-5.4 Mini
FrontierMath, tiers 1 to 351.2%Not measuredOnly GPT-5.4 Mini measured
FrontierMath, tier 49.8%Not measuredOnly GPT-5.4 Mini measured
ProofBench21.0%Not measuredOnly GPT-5.4 Mini measured
MATH level 5Not measured64.9%Only Phi 4 measured
LMArena Text: math14181246GPT-5.4 Mini
LMArena Text: mathematical work14291254GPT-5.4 Mini
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 Mini and Phi 4
BenchmarkGPT-5.4 MiniPhi 4Leader
MMLU Pro84.5%Not measuredOnly GPT-5.4 Mini measured
CaseLaw (Vals AI)51.7%Not measuredOnly GPT-5.4 Mini measured
CorpFin (Vals AI)60.9%Not measuredOnly GPT-5.4 Mini measured
TaxEval (Vals AI)71.2%Not measuredOnly GPT-5.4 Mini measured
MortgageTax (Vals AI)63.5%Not measuredOnly GPT-5.4 Mini measured
MMLU Pro (Artificial Analysis run)Not measured71.4%Only Phi 4 measured
SimpleQA Verified29.4%Not measuredOnly GPT-5.4 Mini measured
MMLUNot measured84.8%Only Phi 4 measured
LMArena Text: science14171206GPT-5.4 Mini
LMArena Text: medicine and healthcare13951202GPT-5.4 Mini
LMArena Text: legal and government14141241GPT-5.4 Mini
LMArena Text: business and finance14181199GPT-5.4 Mini
Neither model has a result on the other 6 boards here
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Web design benchmarks for GPT-5.4 Mini and Phi 4
BenchmarkGPT-5.4 MiniPhi 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 Mini and Phi 4
BenchmarkGPT-5.4 MiniPhi 4Leader
SAGE (Vals AI)50.8%Not measuredOnly GPT-5.4 Mini measured
Vals Multimodal Index54.2%Not measuredOnly GPT-5.4 Mini measured
IFBench73.3%23.5%GPT-5.4 Mini
Long context reasoning (AA-LCR)77.0%0.0%GPT-5.4 Mini
DTBench80.0%Not measuredOnly GPT-5.4 Mini measured
LMCA40.8%Not measuredOnly GPT-5.4 Mini measured
Creative writing (Lech Mazur)Not measured62.6%Only Phi 4 measured
LMArena Text14121217GPT-5.4 Mini
LMArena Text: instruction following14051201GPT-5.4 Mini
LMArena Text: creative writing13701181GPT-5.4 Mini
LMArena Vision1245Not measuredOnly GPT-5.4 Mini measured
LMArena Text: English14121231GPT-5.4 Mini
LMArena Text: non-English14051197GPT-5.4 Mini
LMArena Text: Chinese14461212GPT-5.4 Mini
LMArena Text: German14081222GPT-5.4 Mini
LMArena Text: Japanese13751158GPT-5.4 Mini
LMArena Text: Korean13701151GPT-5.4 Mini
LMArena Text: French14411224GPT-5.4 Mini
LMArena Text: Spanish14051234GPT-5.4 Mini
LMArena Text: Russian14171209GPT-5.4 Mini
LMArena Text: Polish1415Not measuredOnly GPT-5.4 Mini measured
LMArena Text: multi-turn14291206GPT-5.4 Mini
LMArena Text: longer queries14081217GPT-5.4 Mini
LMArena Text: writing and language13931198GPT-5.4 Mini
LMArena Text: entertainment and media13731162GPT-5.4 Mini
LMArena Vision: English1244Not measuredOnly GPT-5.4 Mini measured
LMArena Vision: Chinese1286Not measuredOnly GPT-5.4 Mini measured
LMArena Vision: reading text1253Not measuredOnly GPT-5.4 Mini measured
LMArena Vision: humor1235Not measuredOnly GPT-5.4 Mini measured
LMArena Vision: recognizing things1218Not measuredOnly GPT-5.4 Mini measured
LMArena Vision: creative writing1222Not measuredOnly GPT-5.4 Mini measured
Neither model has a result on the other 15 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GPT-5.4 Mini and Phi 4
BenchmarkGPT-5.4 MiniPhi 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 Mini$0.0030Fits in one request
Phi 4$0.0001Fits in one request

Phi 4 costs less

Repository review

50K input + 3K output tokens

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

Phi 4 costs less

Agent loop

200K input + 10K output tokens

GPT-5.4 Mini$0.195Fits 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 Mini and Phi 4
SpecificationOpenAI GPT-5.4 MiniMicrosoft Phi 4
MakerOpenAIMicrosoft
WeightsNo public weights listedOpen weights
ReleasedMarch 17, 2026January 10, 2025
Context window400K16K
Input $/Mtok$0.75$0.07
Output $/Mtok$4.50$0.14
Coding index35.8Not benchmarked
Independent measurements behind it50
Cost per solved task$0.70Not computable
SourceOpenRouter listingOpenRouter listing

Questions

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

Only GPT-5.4 Mini has a coding score, 35.8 on the Vibe Coding Index; Phi 4 has none, so the two cannot be ranked on coding. Pick Phi 4 for output tokens 32.1x cheaper ($0.14 vs $4.50 per million).

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

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

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

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

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

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