Enter opens the highlighted result. Esc closes.

GPT-5.1 vs Phi 4

GPT-5.1 leads Phi 4 on the Artificial Analysis Intelligence Index, 24.7 to 5.9, and Phi 4 costs 71.4x less per output token ($0.14 vs $10.00 per million). Updated October 21, 2026; 41 benchmarks have a result for both.

GPT-5.1OpenAI
Coding
40.4
Overall
55.0
Output $/M
$10.00
41
Phi 4Microsoft
Coding
No data
Overall
24.7
Output $/M
$0.14
0
vs boards won of 41 shared

GPT-5.1 or Phi 4: which to pick

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

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

Shared results
41
GPT-5.1 only
60
Phi 4 only
5
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.1 40.4 from 3 benchmarks, Phi 4 not benchmarked.
Widest category
Agentic work, 81.9 points apart on average over 1 shared benchmark.
Widest single gap
τ²-Bench Telecom: GPT-5.1 81.9% against Phi 4 0.0%, 81.9 points apart on a 0 to 100 scale.
Output price
GPT-5.1 $10.00 against Phi 4 $0.14 per million output tokens, 71.4x apart.
Context window
GPT-5.1 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.1BarsPhi 4Ties
Coding40
Intelligence20
Agentic work10
Reasoning60
Math50
Knowledge50
General180
All shared boards410
CodingLike-for-likeSix of these boards feed the Vibe Coding Index40
Coding benchmarks for GPT-5.1 and Phi 4
BenchmarkGPT-5.1Phi 4Leader
SWE-bench Verified66.0%Not measuredOnly GPT-5.1 measured
LMArena WebDev1396Not measuredOnly GPT-5.1 measured
AA Coding Index49.4Not measuredOnly GPT-5.1 measured
LiveCodeBench (Vals AI)86.5%Not measuredOnly GPT-5.1 measured
SWE-bench Verified (Vals AI)69.8%Not measuredOnly GPT-5.1 measured
Vibe Code Bench (Vals AI)24.6%Not measuredOnly GPT-5.1 measured
LiveCodeBench (Artificial Analysis run)86.8%23.1%GPT-5.1
Terminal-Bench Hard (Artificial Analysis run)45.5%3.8%GPT-5.1
Terminal-Bench47.6%Not measuredOnly GPT-5.1 measured
GSO-Bench13.7%Not measuredOnly GPT-5.1 measured
WeirdML60.8%Not measuredOnly GPT-5.1 measured
LMArena Text: coding14531231GPT-5.1
LMArena Text: software and IT14541228GPT-5.1
LMArena WebDev: React1307Not measuredOnly GPT-5.1 measured
LMArena WebDev: HTML1405Not measuredOnly GPT-5.1 measured
LMArena WebDev: from an image1421Not measuredOnly GPT-5.1 measured
Neither model has a result on the other 23 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GPT-5.1 and Phi 4
BenchmarkGPT-5.1Phi 4Leader
AA Intelligence Index24.75.9GPT-5.1
Epoch Capabilities Index149.8130.5GPT-5.1
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GPT-5.1 and Phi 4
BenchmarkGPT-5.1Phi 4Leader
τ²-Bench Telecom81.9%0.0%GPT-5.1
BALROGNot measured11.6%Only Phi 4 measured
DeepResearch Bench42.8%Not measuredOnly GPT-5.1 measured
Vending-Bench 2$1,473Not measuredOnly GPT-5.1 measured
Berkeley Function Calling Leaderboard (BFCL)Not measured28.8%Only Phi 4 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.1 and Phi 4
BenchmarkGPT-5.1Phi 4Leader
GPQA Diamond86.6%Not measuredOnly GPT-5.1 measured
MMMU Pro (Vals AI)83.2%Not measuredOnly GPT-5.1 measured
GPQA Diamond (Artificial Analysis run)87.3%57.5%GPT-5.1
Humanity's Last Exam (Artificial Analysis run)28.5%3.8%GPT-5.1
GPQA Diamond (Epoch AI run)87.6%56.1%GPT-5.1
ARC-AGI72.8%Not measuredOnly GPT-5.1 measured
ARC-AGI-217.6%Not measuredOnly GPT-5.1 measured
SimpleBench53.2%Not measuredOnly GPT-5.1 measured
Chess puzzles42.0%Not measuredOnly GPT-5.1 measured
Mystery game puzzles19.0%Not measuredOnly GPT-5.1 measured
VPCT58.7%Not measuredOnly GPT-5.1 measured
LMArena Text: hard prompts14571220GPT-5.1
LMArena Text: expert14701203GPT-5.1
LMArena Text: hard prompts in English14621230GPT-5.1
LMArena Vision: diagrams1264Not measuredOnly GPT-5.1 measured
LMArena Vision: homework1272Not measuredOnly GPT-5.1 measured
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index50
Math benchmarks for GPT-5.1 and Phi 4
BenchmarkGPT-5.1Phi 4Leader
AIME93.3%Not measuredOnly GPT-5.1 measured
MGSM (Vals AI)93.0%Not measuredOnly GPT-5.1 measured
AA Math Index94.018.0GPT-5.1
AIME 2025 (Artificial Analysis run)94.0%18.0%GPT-5.1
OTIS Mock AIME88.6%13.8%GPT-5.1
MATH level 5Not measured64.9%Only Phi 4 measured
LMArena Text: math14461246GPT-5.1
LMArena Text: mathematical work14491254GPT-5.1
Neither model has a result on the other 5 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index50
Knowledge benchmarks for GPT-5.1 and Phi 4
BenchmarkGPT-5.1Phi 4Leader
MMLU Pro86.4%Not measuredOnly GPT-5.1 measured
LegalBench (Vals AI)85.7%Not measuredOnly GPT-5.1 measured
CaseLaw (Vals AI)73.4%Not measuredOnly GPT-5.1 measured
CorpFin (Vals AI)63.8%Not measuredOnly GPT-5.1 measured
TaxEval (Vals AI)74.9%Not measuredOnly GPT-5.1 measured
MortgageTax (Vals AI)61.4%Not measuredOnly GPT-5.1 measured
MedQA (Vals AI)96.4%Not measuredOnly GPT-5.1 measured
MedCode (Vals AI)52.7%Not measuredOnly GPT-5.1 measured
MMLU Pro (Artificial Analysis run)87.0%71.4%GPT-5.1
SimpleQA Verified48.0%Not measuredOnly GPT-5.1 measured
MMLUNot measured84.8%Only Phi 4 measured
LMArena Text: science14591206GPT-5.1
LMArena Text: medicine and healthcare14561202GPT-5.1
LMArena Text: legal and government14591241GPT-5.1
LMArena Text: business and finance14311199GPT-5.1
FACTS Benchmark Suite45.0%Not measuredOnly GPT-5.1 measured
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.1 and Phi 4
BenchmarkGPT-5.1Phi 4Leader
Design Arena: websites1187Not measuredOnly GPT-5.1 measured
Design Arena: UI components1166Not measuredOnly GPT-5.1 measured
Design Arena: game dev1179Not measuredOnly GPT-5.1 measured
Design Arena: data viz1204Not measuredOnly GPT-5.1 measured
Design Arena: 3D1061Not measuredOnly GPT-5.1 measured
Design Arena: all code categories1171Not measuredOnly GPT-5.1 measured
Design Arena: SVG1149Not measuredOnly GPT-5.1 measured
Design Arena: ASCII art1119Not measuredOnly GPT-5.1 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index180
General benchmarks for GPT-5.1 and Phi 4
BenchmarkGPT-5.1Phi 4Leader
SAGE (Vals AI)43.2%Not measuredOnly GPT-5.1 measured
MedScribe (Vals AI)88.1%Not measuredOnly GPT-5.1 measured
IFBench72.9%23.5%GPT-5.1
Long context reasoning (AA-LCR)80.0%0.0%GPT-5.1
DTBench90.1%Not measuredOnly GPT-5.1 measured
LMCA43.9%Not measuredOnly GPT-5.1 measured
Creative writing (Lech Mazur)Not measured62.6%Only Phi 4 measured
CL-bench23.7%Not measuredOnly GPT-5.1 measured
CL-bench Life17.3%Not measuredOnly GPT-5.1 measured
LMArena Text14431217GPT-5.1
LMArena Text: instruction following14431201GPT-5.1
LMArena Text: creative writing14271181GPT-5.1
LMArena Vision1250Not measuredOnly GPT-5.1 measured
LMArena Text: English14511231GPT-5.1
LMArena Text: non-English14311197GPT-5.1
LMArena Text: Chinese14951212GPT-5.1
LMArena Text: German14381222GPT-5.1
LMArena Text: Japanese14531158GPT-5.1
LMArena Text: Korean14011151GPT-5.1
LMArena Text: French14501224GPT-5.1
LMArena Text: Spanish14331234GPT-5.1
LMArena Text: Russian14351209GPT-5.1
LMArena Text: Polish1440Not measuredOnly GPT-5.1 measured
LMArena Text: multi-turn14501206GPT-5.1
LMArena Text: longer queries14481217GPT-5.1
LMArena Text: writing and language14281198GPT-5.1
LMArena Text: entertainment and media14151162GPT-5.1
LMArena Vision: English1252Not measuredOnly GPT-5.1 measured
LMArena Vision: Chinese1270Not measuredOnly GPT-5.1 measured
LMArena Vision: reading text1255Not measuredOnly GPT-5.1 measured
LMArena Vision: humor1263Not measuredOnly GPT-5.1 measured
LMArena Vision: captioning1252Not measuredOnly GPT-5.1 measured
LMArena Vision: recognizing things1232Not measuredOnly GPT-5.1 measured
LMArena Vision: creative writing1266Not measuredOnly GPT-5.1 measured
LMArena Document1403Not measuredOnly GPT-5.1 measured
Neither model has a result on the other 11 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GPT-5.1 and Phi 4
BenchmarkGPT-5.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-5.1$0.0063Fits in one request
Phi 4$0.0001Fits in one request

Phi 4 costs less

Repository review

50K input + 3K output tokens

GPT-5.1$0.092Fits in one request
Phi 4$0.0039Exceeds the context window

Phi 4 costs less

Agent loop

200K input + 10K output tokens

GPT-5.1$0.350Fits 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.1 and Phi 4
SpecificationOpenAI GPT-5.1Microsoft Phi 4
MakerOpenAIMicrosoft
WeightsNo public weights listedOpen weights
ReleasedNovember 13, 2025January 10, 2025
Context window400K16K
Input $/Mtok$1.25$0.07
Output $/Mtok$10.00$0.14
Coding index40.4Not benchmarked
Independent measurements behind it30
Cost per solved task$1.02Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is GPT-5.1 better than Phi 4 for coding?

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

Which is cheaper, GPT-5.1 or Phi 4?

GPT-5.1 costs $1.25 per million input tokens and $10.00 per million output tokens; Phi 4 costs $0.07 and $0.14. Cost per solved task is known for GPT-5.1 only.

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

GPT-5.1, with 400K tokens against 16K.

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

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