Enter opens the highlighted result. Esc closes.

GPT-5 Mini vs Phi 4

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

GPT-5 MiniOpenAI
Coding
34.2
Overall
20.6
Output $/M
$2.00
43
Phi 4Microsoft
Coding
No data
Overall
5.9
Output $/M
$0.14
0
vs boards won of 43 shared

Decision reading

Only GPT-5 Mini has a coding score, 34.2 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 14.3x less.

Shared results
43
GPT-5 Mini only
55
Phi 4 only
2
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 Mini 34.2 from 2 benchmarks, Phi 4 not benchmarked.
Widest category
Agentic work, 71.1 points apart on average over 1 shared benchmark.
Widest single gap
OTIS Mock AIME: GPT-5 Mini 86.7% against Phi 4 13.8%, 72.9 points apart on a 0 to 100 scale.
Output price
GPT-5 Mini $2.00 against Phi 4 $0.14 per million output tokens, 14.3x apart.
Context window
GPT-5 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 MiniBarsPhi 4Ties
Coding40
Intelligence20
Agentic work10
Reasoning60
Math60
Knowledge50
General190
All shared boards430
CodingLike-for-likeSix of these boards feed the Vibe Coding Index40
Coding benchmarks for GPT-5 Mini and Phi 4
BenchmarkGPT-5 MiniPhi 4Leader
SWE-bench Verified59.8%Not measuredOnly GPT-5 Mini measured
SWE-bench Multilingual39.7%Not measuredOnly GPT-5 Mini measured
LiveCodeBench (Vals AI)86.6%Not measuredOnly GPT-5 Mini measured
SWE-bench Verified (Vals AI)60.8%Not measuredOnly GPT-5 Mini measured
Vibe Code Bench (Vals AI)14.2%Not measuredOnly GPT-5 Mini measured
LiveCodeBench (Artificial Analysis run)83.8%23.1%GPT-5 Mini
SciCode39.0%Not measuredOnly GPT-5 Mini measured
Terminal-Bench Hard (Artificial Analysis run)33.3%3.8%GPT-5 Mini
Terminal-Bench34.8%Not measuredOnly GPT-5 Mini measured
WeirdML52.7%Not measuredOnly GPT-5 Mini measured
LMArena Text: coding14061231GPT-5 Mini
LMArena Text: software and IT13941228GPT-5 Mini
Neither model has a result on the other 26 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GPT-5 Mini and Phi 4
BenchmarkGPT-5 MiniPhi 4Leader
AA Intelligence Index20.65.9GPT-5 Mini
Epoch Capabilities Index145.3130.5GPT-5 Mini
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GPT-5 Mini and Phi 4
BenchmarkGPT-5 MiniPhi 4Leader
τ²-Bench Telecom71.1%0.0%GPT-5 Mini
BALROGNot measured11.6%Only Phi 4 measured
Vending-Bench 2-$31Not measuredOnly GPT-5 Mini measured
Neither model has a result on the other 36 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index60
Reasoning benchmarks for GPT-5 Mini and Phi 4
BenchmarkGPT-5 MiniPhi 4Leader
GPQA Diamond80.3%Not measuredOnly GPT-5 Mini measured
MMMU Pro (Vals AI)78.9%Not measuredOnly GPT-5 Mini measured
GPQA Diamond (Artificial Analysis run)82.8%57.5%GPT-5 Mini
Humanity's Last Exam (Artificial Analysis run)21.5%3.8%GPT-5 Mini
GPQA Diamond (Epoch AI run)75.0%56.1%GPT-5 Mini
ARC-AGI54.3%Not measuredOnly GPT-5 Mini measured
ARC-AGI-24.4%Not measuredOnly GPT-5 Mini measured
Chess puzzles24.0%Not measuredOnly GPT-5 Mini measured
Mystery game puzzles10.0%Not measuredOnly GPT-5 Mini measured
VPCT40.2%Not measuredOnly GPT-5 Mini measured
LMArena Text: hard prompts13801220GPT-5 Mini
LMArena Text: expert13791203GPT-5 Mini
LMArena Text: hard prompts in English13831230GPT-5 Mini
LMArena Vision: diagrams1202Not measuredOnly GPT-5 Mini measured
LMArena Vision: homework1210Not measuredOnly GPT-5 Mini measured
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index60
Math benchmarks for GPT-5 Mini and Phi 4
BenchmarkGPT-5 MiniPhi 4Leader
AIME91.5%Not measuredOnly GPT-5 Mini measured
MATH 500 (Vals AI)94.8%Not measuredOnly GPT-5 Mini measured
MGSM (Vals AI)92.6%Not measuredOnly GPT-5 Mini measured
AA Math Index90.718.0GPT-5 Mini
AIME 2025 (Artificial Analysis run)90.7%18.0%GPT-5 Mini
OTIS Mock AIME86.7%13.8%GPT-5 Mini
FrontierMath, tiers 1 to 346.7%Not measuredOnly GPT-5 Mini measured
FrontierMath, tier 412.2%Not measuredOnly GPT-5 Mini measured
ProofBench9.0%Not measuredOnly GPT-5 Mini measured
MATH level 597.8%64.9%GPT-5 Mini
LMArena Text: math13781246GPT-5 Mini
LMArena Text: mathematical work13801254GPT-5 Mini
Neither model has a result on the other 1 board here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index50
Knowledge benchmarks for GPT-5 Mini and Phi 4
BenchmarkGPT-5 MiniPhi 4Leader
MMLU Pro82.2%Not measuredOnly GPT-5 Mini measured
LegalBench (Vals AI)81.8%Not measuredOnly GPT-5 Mini measured
CaseLaw (Vals AI)68.5%Not measuredOnly GPT-5 Mini measured
CorpFin (Vals AI)60.2%Not measuredOnly GPT-5 Mini measured
TaxEval (Vals AI)75.2%Not measuredOnly GPT-5 Mini measured
MortgageTax (Vals AI)66.9%Not measuredOnly GPT-5 Mini measured
MedQA (Vals AI)96.1%Not measuredOnly GPT-5 Mini measured
MedCode (Vals AI)43.0%Not measuredOnly GPT-5 Mini measured
MMLU Pro (Artificial Analysis run)83.7%71.4%GPT-5 Mini
SimpleQA Verified21.6%Not measuredOnly GPT-5 Mini measured
MMLUNot measured84.8%Only Phi 4 measured
LMArena Text: science13711206GPT-5 Mini
LMArena Text: medicine and healthcare13801202GPT-5 Mini
LMArena Text: legal and government13751241GPT-5 Mini
LMArena Text: business and finance13581199GPT-5 Mini
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 Mini and Phi 4
BenchmarkGPT-5 MiniPhi 4Leader
Design Arena: websites1125Not measuredOnly GPT-5 Mini measured
Design Arena: UI components1106Not measuredOnly GPT-5 Mini measured
Design Arena: game dev1129Not measuredOnly GPT-5 Mini measured
Design Arena: data viz1130Not measuredOnly GPT-5 Mini measured
Design Arena: 3D1037Not measuredOnly GPT-5 Mini measured
Design Arena: all code categories1115Not measuredOnly GPT-5 Mini measured
Design Arena: SVG1091Not measuredOnly GPT-5 Mini measured
Design Arena: ASCII art1124Not measuredOnly GPT-5 Mini 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 GPT-5 Mini and Phi 4
BenchmarkGPT-5 MiniPhi 4Leader
SAGE (Vals AI)43.0%Not measuredOnly GPT-5 Mini measured
MedScribe (Vals AI)80.6%Not measuredOnly GPT-5 Mini measured
IFBench75.4%23.5%GPT-5 Mini
Long context reasoning (AA-LCR)72.3%0.0%GPT-5 Mini
DTBench80.5%Not measuredOnly GPT-5 Mini measured
LMCA34.2%Not measuredOnly GPT-5 Mini measured
Fiction.LiveBench69.4%Not measuredOnly GPT-5 Mini measured
Creative writing (Lech Mazur)83.1%62.6%GPT-5 Mini
LMArena Text13731217GPT-5 Mini
LMArena Text: instruction following13571201GPT-5 Mini
LMArena Text: creative writing13251181GPT-5 Mini
LMArena Vision1202Not measuredOnly GPT-5 Mini measured
LMArena Text: English13791231GPT-5 Mini
LMArena Text: non-English13631197GPT-5 Mini
LMArena Text: Chinese13861212GPT-5 Mini
LMArena Text: German13661222GPT-5 Mini
LMArena Text: Japanese13411158GPT-5 Mini
LMArena Text: Korean13081151GPT-5 Mini
LMArena Text: French13861224GPT-5 Mini
LMArena Text: Spanish13541234GPT-5 Mini
LMArena Text: Russian13621209GPT-5 Mini
LMArena Text: Polish1378Not measuredOnly GPT-5 Mini measured
LMArena Text: multi-turn13631206GPT-5 Mini
LMArena Text: longer queries13551217GPT-5 Mini
LMArena Text: writing and language13441198GPT-5 Mini
LMArena Text: entertainment and media13401162GPT-5 Mini
LMArena Vision: English1216Not measuredOnly GPT-5 Mini measured
LMArena Vision: Chinese1214Not measuredOnly GPT-5 Mini measured
LMArena Vision: reading text1199Not measuredOnly GPT-5 Mini measured
LMArena Vision: humor1205Not measuredOnly GPT-5 Mini measured
LMArena Vision: captioning1217Not measuredOnly GPT-5 Mini measured
LMArena Vision: recognizing things1226Not measuredOnly GPT-5 Mini measured
LMArena Vision: creative writing1181Not measuredOnly GPT-5 Mini measured
Neither model has a result on the other 13 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GPT-5 Mini and Phi 4
BenchmarkGPT-5 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 Mini$0.0013Fits in one request
Phi 4$0.0001Fits in one request

Phi 4 costs less

Repository review

50K input + 3K output tokens

GPT-5 Mini$0.018Fits in one request
Phi 4$0.0039Exceeds the context window

Phi 4 costs less

Agent loop

200K input + 10K output tokens

GPT-5 Mini$0.070Fits 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 Mini and Phi 4
SpecificationOpenAI GPT-5 MiniMicrosoft Phi 4
MakerOpenAIMicrosoft
WeightsNo public weights listedOpen weights
ReleasedAugust 7, 2025January 10, 2025
Context window400K16K
Input $/Mtok$0.25$0.07
Output $/Mtok$2.00$0.14
Coding index34.2Not benchmarked
Independent measurements behind it20
Cost per solved task$0.08Not computable
SourceOpenRouter listingOpenRouter listing

Questions

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

Only GPT-5 Mini has a coding score, 34.2 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 14.3x less.

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

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

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

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

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

43 benchmarks have a result for both models as of October 21, 2026. GPT-5 Mini'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