Enter opens the highlighted result. Esc closes.

GPT-4.1 Nano vs Phi 4

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

GPT-4.1 NanoOpenAI
Coding
No data
Overall
7.8
Output $/M
$0.40
33
Phi 4Microsoft
Coding
No data
Overall
5.9
Output $/M
$0.14
4
vs boards won of 39 shared, 2 tied

Decision reading

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

GPT-4.1 Nano has the edge where the context window is larger, 1.05M against 16K tokens, and where what matters is Epoch Capabilities Index or GPQA Diamond (Artificial Analysis run), where it leads.

Shared results
39
GPT-4.1 Nano only
30
Phi 4 only
6
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 Nano not benchmarked, Phi 4 not benchmarked.
Widest category
Agentic work, 17.3 points apart on average over 1 shared benchmark.
Widest single gap
Long context reasoning (AA-LCR): GPT-4.1 Nano 20.3% against Phi 4 0.0%, 20.3 points apart on a 0 to 100 scale.
Output price
GPT-4.1 Nano $0.40 against Phi 4 $0.14 per million output tokens, 2.9x apart.
Context window
GPT-4.1 Nano 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 NanoBarsPhi 4Ties
Coding301 tie
Intelligence11
Agentic work10
Reasoning321 tie
Math60
Knowledge41
General150
All shared boards3342 ties
CodingLike-for-likeSix of these boards feed the Vibe Coding Index30
Coding benchmarks for GPT-4.1 Nano and Phi 4
BenchmarkGPT-4.1 NanoPhi 4Leader
Aider polyglot8.9%Not measuredOnly GPT-4.1 Nano measured
AA Coding Index11.1Not measuredOnly GPT-4.1 Nano measured
LiveCodeBench (Vals AI)42.7%Not measuredOnly GPT-4.1 Nano measured
LiveCodeBench (Artificial Analysis run)32.6%23.1%GPT-4.1 Nano
Terminal-Bench Hard (Artificial Analysis run)3.8%3.8%Tie
WeirdML19.0%Not measuredOnly GPT-4.1 Nano measured
LMArena Text: coding13061231GPT-4.1 Nano
LMArena Text: software and IT13051228GPT-4.1 Nano
Neither model has a result on the other 30 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index11
Intelligence benchmarks for GPT-4.1 Nano and Phi 4
BenchmarkGPT-4.1 NanoPhi 4Leader
AA Intelligence Index7.85.9GPT-4.1 Nano
Epoch Capabilities Index129.5130.5Phi 4
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GPT-4.1 Nano and Phi 4
BenchmarkGPT-4.1 NanoPhi 4Leader
τ²-Bench Telecom17.3%0.0%GPT-4.1 Nano
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 index32
Reasoning benchmarks for GPT-4.1 Nano and Phi 4
BenchmarkGPT-4.1 NanoPhi 4Leader
GPQA Diamond50.8%Not measuredOnly GPT-4.1 Nano measured
MMMU Pro (Vals AI)55.0%Not measuredOnly GPT-4.1 Nano measured
GPQA Diamond (Artificial Analysis run)51.2%57.5%Phi 4
Humanity's Last Exam (Artificial Analysis run)3.8%3.8%Tie
GPQA Diamond (Epoch AI run)48.9%56.1%Phi 4
ARC-AGI0.0%Not measuredOnly GPT-4.1 Nano measured
ARC-AGI-20.0%Not measuredOnly GPT-4.1 Nano measured
Chess puzzles0.0%Not measuredOnly GPT-4.1 Nano measured
LMArena Text: hard prompts12861220GPT-4.1 Nano
LMArena Text: expert12711203GPT-4.1 Nano
LMArena Text: hard prompts in English12931230GPT-4.1 Nano
Neither model has a result on the other 10 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index60
Math benchmarks for GPT-4.1 Nano and Phi 4
BenchmarkGPT-4.1 NanoPhi 4Leader
AIME26.5%Not measuredOnly GPT-4.1 Nano measured
MATH 500 (Vals AI)80.2%Not measuredOnly GPT-4.1 Nano measured
MGSM (Vals AI)69.3%Not measuredOnly GPT-4.1 Nano measured
AA Math Index24.018.0GPT-4.1 Nano
AIME 2025 (Artificial Analysis run)24.0%18.0%GPT-4.1 Nano
OTIS Mock AIME28.9%13.8%GPT-4.1 Nano
MATH level 570.0%64.9%GPT-4.1 Nano
LMArena Text: math12741246GPT-4.1 Nano
LMArena Text: mathematical work12741254GPT-4.1 Nano
Neither model has a result on the other 4 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index41
Knowledge benchmarks for GPT-4.1 Nano and Phi 4
BenchmarkGPT-4.1 NanoPhi 4Leader
MMLU Pro63.5%Not measuredOnly GPT-4.1 Nano measured
LegalBench (Vals AI)61.1%Not measuredOnly GPT-4.1 Nano measured
CorpFin (Vals AI)42.1%Not measuredOnly GPT-4.1 Nano measured
TaxEval (Vals AI)60.8%Not measuredOnly GPT-4.1 Nano measured
MortgageTax (Vals AI)52.8%Not measuredOnly GPT-4.1 Nano measured
MedQA (Vals AI)68.2%Not measuredOnly GPT-4.1 Nano measured
MMLU Pro (Artificial Analysis run)65.7%71.4%Phi 4
SimpleQA Verified6.0%Not measuredOnly GPT-4.1 Nano measured
MMLUNot measured84.8%Only Phi 4 measured
LMArena Text: science12971206GPT-4.1 Nano
LMArena Text: medicine and healthcare12761202GPT-4.1 Nano
LMArena Text: legal and government13001241GPT-4.1 Nano
LMArena Text: business and finance12671199GPT-4.1 Nano
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 Nano and Phi 4
BenchmarkGPT-4.1 NanoPhi 4Leader
Design Arena: websites973Not measuredOnly GPT-4.1 Nano measured
Design Arena: UI components916Not measuredOnly GPT-4.1 Nano measured
Design Arena: game dev970Not measuredOnly GPT-4.1 Nano measured
Design Arena: data viz890Not measuredOnly GPT-4.1 Nano measured
Design Arena: 3D925Not measuredOnly GPT-4.1 Nano measured
Design Arena: all code categories963Not measuredOnly GPT-4.1 Nano measured
Neither model has a result on the other 3 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index150
General benchmarks for GPT-4.1 Nano and Phi 4
BenchmarkGPT-4.1 NanoPhi 4Leader
IFBench32.0%23.5%GPT-4.1 Nano
Long context reasoning (AA-LCR)20.3%0.0%GPT-4.1 Nano
DTBench52.5%Not measuredOnly GPT-4.1 Nano measured
LMCA5.5%Not measuredOnly GPT-4.1 Nano measured
Fiction.LiveBench25.0%Not measuredOnly GPT-4.1 Nano measured
Creative writing (Lech Mazur)Not measured62.6%Only Phi 4 measured
LMArena Text12851217GPT-4.1 Nano
LMArena Text: instruction following12661201GPT-4.1 Nano
LMArena Text: creative writing12601181GPT-4.1 Nano
LMArena Vision1063Not measuredOnly GPT-4.1 Nano measured
LMArena Text: English13031231GPT-4.1 Nano
LMArena Text: non-English12601197GPT-4.1 Nano
LMArena Text: Chinese12701212GPT-4.1 Nano
LMArena Text: German12881222GPT-4.1 Nano
LMArena Text: Japanese11981158GPT-4.1 Nano
LMArena Text: KoreanNot measured1151Only Phi 4 measured
LMArena Text: FrenchNot measured1224Only Phi 4 measured
LMArena Text: SpanishNot measured1234Only Phi 4 measured
LMArena Text: Russian12611209GPT-4.1 Nano
LMArena Text: multi-turn12771206GPT-4.1 Nano
LMArena Text: longer queries12831217GPT-4.1 Nano
LMArena Text: writing and language12611198GPT-4.1 Nano
LMArena Text: entertainment and media12431162GPT-4.1 Nano
LMArena Vision: English1101Not measuredOnly GPT-4.1 Nano measured
Neither model has a result on the other 22 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GPT-4.1 Nano and Phi 4
BenchmarkGPT-4.1 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-4.1 Nano$0.0003Fits in one request
Phi 4$0.0001Fits in one request

Phi 4 costs less

Repository review

50K input + 3K output tokens

GPT-4.1 Nano$0.0062Fits in one request
Phi 4$0.0039Exceeds the context window

Phi 4 costs less

Agent loop

200K input + 10K output tokens

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

Questions

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

Neither model has a coding score yet, so the two cannot be ranked on coding. GPT-4.1 Nano has the edge where the context window is larger, 1.05M against 16K tokens, and where what matters is Epoch Capabilities Index or GPQA Diamond (Artificial Analysis run), where it leads.

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

GPT-4.1 Nano costs $0.10 per million input tokens and $0.40 per million output tokens; Phi 4 costs $0.07 and $0.14. Cost per solved task is known for neither of them.

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

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

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

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