Enter opens the highlighted result. Esc closes.

GPT-4.1 vs Phi 4

GPT-4.1 leads Phi 4 on the Artificial Analysis Intelligence Index, 12.7 to 5.9, and Phi 4 costs 57.1x less per output token ($0.14 vs $8.00 per million). Updated October 21, 2026; 42 benchmarks have a result for both.

GPT-4.1OpenAI
Coding
No data
Overall
12.7
Output $/M
$8.00
42
Phi 4Microsoft
Coding
No data
Overall
5.9
Output $/M
$0.14
0
vs boards won of 42 shared

GPT-4.1 or Phi 4: which to pick

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

Pick GPT-4.1 for a larger context window (1.05M against 16K tokens).

Shared results
42
GPT-4.1 only
45
Phi 4 only
3
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-4.1 not benchmarked, Phi 4 not benchmarked.
Widest category
Agentic work, 47.1 points apart on average over 1 shared benchmark.
Widest single gap
Long context reasoning (AA-LCR): GPT-4.1 68.3% against Phi 4 0.0%, 68.3 points apart on a 0 to 100 scale.
Output price
GPT-4.1 $8.00 against Phi 4 $0.14 per million output tokens, 57.1x apart.
Context window
GPT-4.1 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.1BarsPhi 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 and Phi 4
BenchmarkGPT-4.1Phi 4Leader
Aider polyglot52.4%Not measuredOnly GPT-4.1 measured
SWE-bench Verified39.6%Not measuredOnly GPT-4.1 measured
SWE-bench Multimodal31.1%Not measuredOnly GPT-4.1 measured
LiveCodeBench (Vals AI)54.7%Not measuredOnly GPT-4.1 measured
LiveCodeBench (Artificial Analysis run)45.7%23.1%GPT-4.1
Terminal-Bench Hard (Artificial Analysis run)13.6%3.8%GPT-4.1
WeirdML39.0%Not measuredOnly GPT-4.1 measured
ALE-Bench558.1Not measuredOnly GPT-4.1 measured
LMArena Text: coding13901231GPT-4.1
LMArena Text: software and IT13911228GPT-4.1
Neither model has a result on the other 28 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GPT-4.1 and Phi 4
BenchmarkGPT-4.1Phi 4Leader
AA Intelligence Index12.75.9GPT-4.1
Epoch Capabilities Index136.7130.5GPT-4.1
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GPT-4.1 and Phi 4
BenchmarkGPT-4.1Phi 4Leader
τ²-Bench Telecom47.1%0.0%GPT-4.1
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 and Phi 4
BenchmarkGPT-4.1Phi 4Leader
GPQA Diamond65.4%Not measuredOnly GPT-4.1 measured
MMMU Pro (Vals AI)72.4%Not measuredOnly GPT-4.1 measured
GPQA Diamond (Artificial Analysis run)66.6%57.5%GPT-4.1
Humanity's Last Exam (Artificial Analysis run)4.2%3.8%GPT-4.1
GPQA Diamond (Epoch AI run)66.9%56.1%GPT-4.1
ARC-AGI5.5%Not measuredOnly GPT-4.1 measured
ARC-AGI-20.4%Not measuredOnly GPT-4.1 measured
SimpleBench27.0%Not measuredOnly GPT-4.1 measured
Chess puzzles3.0%Not measuredOnly GPT-4.1 measured
LMArena Text: hard prompts13841220GPT-4.1
LMArena Text: expert13641203GPT-4.1
LMArena Text: hard prompts in English13931230GPT-4.1
LMArena Vision: diagrams1215Not measuredOnly GPT-4.1 measured
LMArena Vision: homework1248Not measuredOnly GPT-4.1 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 and Phi 4
BenchmarkGPT-4.1Phi 4Leader
AIME39.6%Not measuredOnly GPT-4.1 measured
MATH 500 (Vals AI)87.2%Not measuredOnly GPT-4.1 measured
MGSM (Vals AI)87.7%Not measuredOnly GPT-4.1 measured
AA Math Index34.718.0GPT-4.1
AIME 2025 (Artificial Analysis run)34.7%18.0%GPT-4.1
OTIS Mock AIME38.3%13.8%GPT-4.1
FrontierMath, tiers 1 to 36.0%Not measuredOnly GPT-4.1 measured
MATH level 583.0%64.9%GPT-4.1
LMArena Text: math13691246GPT-4.1
LMArena Text: mathematical work13601254GPT-4.1
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 and Phi 4
BenchmarkGPT-4.1Phi 4Leader
MMLU Pro80.5%Not measuredOnly GPT-4.1 measured
LegalBench (Vals AI)83.1%Not measuredOnly GPT-4.1 measured
CaseLaw (Vals AI)69.9%Not measuredOnly GPT-4.1 measured
CorpFin (Vals AI)63.0%Not measuredOnly GPT-4.1 measured
TaxEval (Vals AI)75.1%Not measuredOnly GPT-4.1 measured
MortgageTax (Vals AI)65.9%Not measuredOnly GPT-4.1 measured
MedQA (Vals AI)91.2%Not measuredOnly GPT-4.1 measured
MMLU Pro (Artificial Analysis run)80.6%71.4%GPT-4.1
SimpleQA Verified31.1%Not measuredOnly GPT-4.1 measured
MMLUNot measured84.8%Only Phi 4 measured
GeoBench72.0%Not measuredOnly GPT-4.1 measured
LMArena Text: science13821206GPT-4.1
LMArena Text: medicine and healthcare13791202GPT-4.1
LMArena Text: legal and government13991241GPT-4.1
LMArena Text: business and finance13691199GPT-4.1
Neither model has a result on the other 2 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
Web design benchmarks for GPT-4.1 and Phi 4
BenchmarkGPT-4.1Phi 4Leader
Design Arena: websites1039Not measuredOnly GPT-4.1 measured
Design Arena: UI components1000Not measuredOnly GPT-4.1 measured
Design Arena: game dev1080Not measuredOnly GPT-4.1 measured
Design Arena: data viz1104Not measuredOnly GPT-4.1 measured
Design Arena: 3D850Not measuredOnly GPT-4.1 measured
Design Arena: all code categories1026Not measuredOnly GPT-4.1 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 and Phi 4
BenchmarkGPT-4.1Phi 4Leader
IFBench43.0%23.5%GPT-4.1
Long context reasoning (AA-LCR)68.3%0.0%GPT-4.1
DTBench68.3%Not measuredOnly GPT-4.1 measured
LMCA25.6%Not measuredOnly GPT-4.1 measured
Fiction.LiveBench63.9%Not measuredOnly GPT-4.1 measured
Creative writing (Lech Mazur)Not measured62.6%Only Phi 4 measured
LMArena Text13831217GPT-4.1
LMArena Text: instruction following13671201GPT-4.1
LMArena Text: creative writing13631181GPT-4.1
LMArena Vision1210Not measuredOnly GPT-4.1 measured
LMArena Text: English13921231GPT-4.1
LMArena Text: non-English13701197GPT-4.1
LMArena Text: Chinese13821212GPT-4.1
LMArena Text: German13811222GPT-4.1
LMArena Text: Japanese13191158GPT-4.1
LMArena Text: Korean13381151GPT-4.1
LMArena Text: French13821224GPT-4.1
LMArena Text: Spanish13761234GPT-4.1
LMArena Text: Russian13771209GPT-4.1
LMArena Text: Polish1389Not measuredOnly GPT-4.1 measured
LMArena Text: multi-turn13971206GPT-4.1
LMArena Text: longer queries13851217GPT-4.1
LMArena Text: writing and language13711198GPT-4.1
LMArena Text: entertainment and media13651162GPT-4.1
LMArena Vision: English1209Not measuredOnly GPT-4.1 measured
LMArena Vision: Chinese1226Not measuredOnly GPT-4.1 measured
LMArena Vision: reading text1218Not measuredOnly GPT-4.1 measured
LMArena Vision: humor1196Not measuredOnly GPT-4.1 measured
LMArena Vision: captioning1207Not measuredOnly GPT-4.1 measured
LMArena Vision: recognizing things1208Not measuredOnly GPT-4.1 measured
LMArena Vision: creative writing1210Not measuredOnly GPT-4.1 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 and Phi 4
BenchmarkGPT-4.1Phi 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$0.0060Fits in one request
Phi 4$0.0001Fits in one request

Phi 4 costs less

Repository review

50K input + 3K output tokens

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

Phi 4 costs less

Agent loop

200K input + 10K output tokens

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

Questions

Is GPT-4.1 better than Phi 4 for coding?

Neither model has a coding score yet, so the two cannot be ranked on coding. Pick GPT-4.1 for a larger context window (1.05M against 16K tokens).

Which is cheaper, GPT-4.1 or Phi 4?

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

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

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

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

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