Enter opens the highlighted result. Esc closes.

GPT-4.1 Mini vs Phi 4

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

GPT-4.1 MiniOpenAI
Coding
No data
Overall
10.2
Output $/M
$1.60
42
Phi 4Microsoft
Coding
No data
Overall
5.9
Output $/M
$0.14
0
vs boards won of 42 shared

Decision reading

Neither model has a coding score yet, so the two cannot be ranked on coding.

GPT-4.1 Mini has the edge where the context window is larger, 1.05M against 16K tokens.

Shared results
42
GPT-4.1 Mini only
42
Phi 4 only
3
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-4.1 Mini not benchmarked, Phi 4 not benchmarked.
Widest category
Agentic work, 52.9 points apart on average over 1 shared benchmark.
Widest single gap
τ²-Bench Telecom: GPT-4.1 Mini 52.9% against Phi 4 0.0%, 52.9 points apart on a 0 to 100 scale.
Output price
GPT-4.1 Mini $1.60 against Phi 4 $0.14 per million output tokens, 11.4x apart.
Context window
GPT-4.1 Mini 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-4.1 MiniBarsPhi 4Ties
Coding40
Intelligence20
Agentic work10
Reasoning60
Math60
Knowledge50
General180
All shared boards420
CodingLike-for-likeSix of these boards feed the Vibe Coding Index40
Coding benchmarks for GPT-4.1 Mini and Phi 4
BenchmarkGPT-4.1 MiniPhi 4Leader
Aider polyglot32.4%Not measuredOnly GPT-4.1 Mini measured
SWE-bench Verified23.9%Not measuredOnly GPT-4.1 Mini measured
AA Coding Index20.2Not measuredOnly GPT-4.1 Mini measured
LiveCodeBench (Vals AI)58.2%Not measuredOnly GPT-4.1 Mini measured
LiveCodeBench (Artificial Analysis run)48.3%23.1%GPT-4.1 Mini
Terminal-Bench Hard (Artificial Analysis run)7.6%3.8%GPT-4.1 Mini
WeirdML37.6%Not measuredOnly GPT-4.1 Mini measured
LMArena Text: coding13671231GPT-4.1 Mini
LMArena Text: software and IT13601228GPT-4.1 Mini
Neither model has a result on the other 29 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GPT-4.1 Mini and Phi 4
BenchmarkGPT-4.1 MiniPhi 4Leader
AA Intelligence Index10.25.9GPT-4.1 Mini
Epoch Capabilities Index134.9130.5GPT-4.1 Mini
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GPT-4.1 Mini and Phi 4
BenchmarkGPT-4.1 MiniPhi 4Leader
τ²-Bench Telecom52.9%0.0%GPT-4.1 Mini
BALROGNot measured11.6%Only Phi 4 measured
Neither model has a result on the other 37 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index60
Reasoning benchmarks for GPT-4.1 Mini and Phi 4
BenchmarkGPT-4.1 MiniPhi 4Leader
GPQA Diamond67.9%Not measuredOnly GPT-4.1 Mini measured
MMMU Pro (Vals AI)70.5%Not measuredOnly GPT-4.1 Mini measured
GPQA Diamond (Artificial Analysis run)66.4%57.5%GPT-4.1 Mini
Humanity's Last Exam (Artificial Analysis run)5.0%3.8%GPT-4.1 Mini
GPQA Diamond (Epoch AI run)65.8%56.1%GPT-4.1 Mini
ARC-AGI3.5%Not measuredOnly GPT-4.1 Mini measured
ARC-AGI-20.0%Not measuredOnly GPT-4.1 Mini measured
Chess puzzles1.0%Not measuredOnly GPT-4.1 Mini measured
Mystery game puzzles7.0%Not measuredOnly GPT-4.1 Mini measured
LMArena Text: hard prompts13491220GPT-4.1 Mini
LMArena Text: expert13381203GPT-4.1 Mini
LMArena Text: hard prompts in English13621230GPT-4.1 Mini
LMArena Vision: diagrams1182Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: homework1214Not measuredOnly GPT-4.1 Mini measured
Neither model has a result on the other 7 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index60
Math benchmarks for GPT-4.1 Mini and Phi 4
BenchmarkGPT-4.1 MiniPhi 4Leader
AIME49.4%Not measuredOnly GPT-4.1 Mini measured
MATH 500 (Vals AI)88.0%Not measuredOnly GPT-4.1 Mini measured
MGSM (Vals AI)87.8%Not measuredOnly GPT-4.1 Mini measured
AA Math Index46.318.0GPT-4.1 Mini
AIME 2025 (Artificial Analysis run)46.3%18.0%GPT-4.1 Mini
OTIS Mock AIME44.7%13.8%GPT-4.1 Mini
FrontierMath, tiers 1 to 36.7%Not measuredOnly GPT-4.1 Mini measured
MATH level 587.3%64.9%GPT-4.1 Mini
LMArena Text: math13431246GPT-4.1 Mini
LMArena Text: mathematical work13471254GPT-4.1 Mini
Neither model has a result on the other 3 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index50
Knowledge benchmarks for GPT-4.1 Mini and Phi 4
BenchmarkGPT-4.1 MiniPhi 4Leader
MMLU Pro77.2%Not measuredOnly GPT-4.1 Mini measured
LegalBench (Vals AI)78.0%Not measuredOnly GPT-4.1 Mini measured
CorpFin (Vals AI)57.9%Not measuredOnly GPT-4.1 Mini measured
TaxEval (Vals AI)71.9%Not measuredOnly GPT-4.1 Mini measured
MortgageTax (Vals AI)65.5%Not measuredOnly GPT-4.1 Mini measured
MedQA (Vals AI)84.6%Not measuredOnly GPT-4.1 Mini measured
MMLU Pro (Artificial Analysis run)78.1%71.4%GPT-4.1 Mini
SimpleQA Verified12.7%Not measuredOnly GPT-4.1 Mini measured
MMLUNot measured84.8%Only Phi 4 measured
LMArena Text: science13281206GPT-4.1 Mini
LMArena Text: medicine and healthcare13241202GPT-4.1 Mini
LMArena Text: legal and government13431241GPT-4.1 Mini
LMArena Text: business and finance13221199GPT-4.1 Mini
Neither model has a result on the other 4 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
Web design benchmarks for GPT-4.1 Mini and Phi 4
BenchmarkGPT-4.1 MiniPhi 4Leader
Design Arena: websites997Not measuredOnly GPT-4.1 Mini measured
Design Arena: UI components961Not measuredOnly GPT-4.1 Mini measured
Design Arena: game dev1071Not measuredOnly GPT-4.1 Mini measured
Design Arena: data viz1034Not measuredOnly GPT-4.1 Mini measured
Design Arena: 3D837Not measuredOnly GPT-4.1 Mini measured
Design Arena: all code categories994Not measuredOnly GPT-4.1 Mini measured
Neither model has a result on the other 3 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index180
General benchmarks for GPT-4.1 Mini and Phi 4
BenchmarkGPT-4.1 MiniPhi 4Leader
IFBench38.3%23.5%GPT-4.1 Mini
Long context reasoning (AA-LCR)44.0%0.0%GPT-4.1 Mini
DTBench68.8%Not measuredOnly GPT-4.1 Mini measured
LMCA21.1%Not measuredOnly GPT-4.1 Mini measured
Fiction.LiveBench44.4%Not measuredOnly GPT-4.1 Mini measured
Creative writing (Lech Mazur)Not measured62.6%Only Phi 4 measured
LMArena Text13411217GPT-4.1 Mini
LMArena Text: instruction following13331201GPT-4.1 Mini
LMArena Text: creative writing12991181GPT-4.1 Mini
LMArena Vision1181Not measuredOnly GPT-4.1 Mini measured
LMArena Text: English13561231GPT-4.1 Mini
LMArena Text: non-English13181197GPT-4.1 Mini
LMArena Text: Chinese13291212GPT-4.1 Mini
LMArena Text: German13501222GPT-4.1 Mini
LMArena Text: Japanese12901158GPT-4.1 Mini
LMArena Text: Korean12981151GPT-4.1 Mini
LMArena Text: French13581224GPT-4.1 Mini
LMArena Text: Spanish13191234GPT-4.1 Mini
LMArena Text: Russian13241209GPT-4.1 Mini
LMArena Text: Polish1326Not measuredOnly GPT-4.1 Mini measured
LMArena Text: multi-turn13541206GPT-4.1 Mini
LMArena Text: longer queries13441217GPT-4.1 Mini
LMArena Text: writing and language13191198GPT-4.1 Mini
LMArena Text: entertainment and media13001162GPT-4.1 Mini
LMArena Vision: English1191Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: Chinese1186Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: reading text1188Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: humor1182Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: captioning1174Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: recognizing things1187Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: creative writing1182Not measuredOnly GPT-4.1 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-4.1 Mini and Phi 4
BenchmarkGPT-4.1 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-4.1 Mini$0.0012Fits in one request
Phi 4$0.0001Fits in one request

Phi 4 costs less

Repository review

50K input + 3K output tokens

GPT-4.1 Mini$0.025Fits in one request
Phi 4$0.0039Exceeds the context window

Phi 4 costs less

Agent loop

200K input + 10K output tokens

GPT-4.1 Mini$0.096Fits 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-4.1 Mini and Phi 4
SpecificationOpenAI GPT-4.1 MiniMicrosoft Phi 4
MakerOpenAIMicrosoft
WeightsNo public weights listedOpen weights
ReleasedApril 14, 2025January 10, 2025
Context window1.05M16K
Input $/Mtok$0.40$0.07
Output $/Mtok$1.60$0.14
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it00
Cost per solved task$1.818Not computable
SourceOpenRouter listingOpenRouter listing

Questions

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

Neither model has a coding score yet, so the two cannot be ranked on coding. GPT-4.1 Mini has the edge where the context window is larger, 1.05M against 16K tokens.

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

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

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

GPT-4.1 Mini, with 1.05M tokens against 16K.

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

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