Enter opens the highlighted result. Esc closes.

GPT-4 vs Phi 4

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

GPT-4OpenAI
Coding
No data
Overall
6.7
Output $/M
$60.00
7
Phi 4Microsoft
Coding
No data
Overall
5.9
Output $/M
$0.14
26
vs boards won of 33 shared

Decision reading

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

GPT-4 has the edge where what matters is LMArena Text: coding or LMArena Text: software and IT, where it leads.

Shared results
33
GPT-4 only
12
Phi 4 only
12
Like-for-like categories
6 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 not benchmarked, Phi 4 not benchmarked.
Widest category
Reasoning, 9.6 points apart on average over 4 shared benchmarks.
Widest single gap
GPQA Diamond (Artificial Analysis run): GPT-4 34.9% against Phi 4 57.5%, 22.6 points apart on a 0 to 100 scale.
Output price
GPT-4 $60.00 against Phi 4 $0.14 per million output tokens, 428.6x apart.
Context window
GPT-4 takes 8K 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-4BarsPhi 4Ties
Coding02
Intelligence11
Reasoning04
Math02
Knowledge15
General512
All shared boards726
CodingLike-for-likeSix of these boards feed the Vibe Coding Index02
Coding benchmarks for GPT-4 and Phi 4
BenchmarkGPT-4Phi 4Leader
SWE-bench Verified22.4%Not measuredOnly GPT-4 measured
SWE-bench Lite39.7%Not measuredOnly GPT-4 measured
SWE-bench (full test set)12.5%Not measuredOnly GPT-4 measured
AA Coding Index13.1Not measuredOnly GPT-4 measured
LiveCodeBench (Artificial Analysis run)Not measured23.1%Only Phi 4 measured
Terminal-Bench Hard (Artificial Analysis run)Not measured3.8%Only Phi 4 measured
LMArena Text: coding12091231Phi 4
LMArena Text: software and IT11951228Phi 4
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 and Phi 4
BenchmarkGPT-4Phi 4Leader
AA Intelligence Index6.75.9GPT-4
Epoch Capabilities Index125.7130.5Phi 4
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index2 boards, none shared
Agentic work benchmarks for GPT-4 and Phi 4
BenchmarkGPT-4Phi 4Leader
τ²-Bench TelecomNot measured0.0%Only Phi 4 measured
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 index04
Reasoning benchmarks for GPT-4 and Phi 4
BenchmarkGPT-4Phi 4Leader
GPQA Diamond (Artificial Analysis run)34.9%57.5%Phi 4
Humanity's Last Exam (Artificial Analysis run)Not measured3.8%Only Phi 4 measured
GPQA Diamond (Epoch AI run)Not measured56.1%Only Phi 4 measured
BIG-Bench Hard75.1%Not measuredOnly GPT-4 measured
LMArena Text: hard prompts12001220Phi 4
LMArena Text: expert11491203Phi 4
LMArena Text: hard prompts in English12091230Phi 4
Neither model has a result on the other 14 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index02
Math benchmarks for GPT-4 and Phi 4
BenchmarkGPT-4Phi 4Leader
AA Math IndexNot measured18.0Only Phi 4 measured
AIME 2025 (Artificial Analysis run)Not measured18.0%Only Phi 4 measured
OTIS Mock AIMENot measured13.8%Only Phi 4 measured
MATH level 5Not measured64.9%Only Phi 4 measured
GSM8K92.0%Not measuredOnly GPT-4 measured
LMArena Text: math12301246Phi 4
LMArena Text: mathematical work12281254Phi 4
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index15
Knowledge benchmarks for GPT-4 and Phi 4
BenchmarkGPT-4Phi 4Leader
MMLU Pro (Artificial Analysis run)56.2%71.4%Phi 4
MMLU86.4%84.8%GPT-4
AI2 Reasoning Challenge96.3%Not measuredOnly GPT-4 measured
LMArena Text: science11771206Phi 4
LMArena Text: medicine and healthcare11451202Phi 4
LMArena Text: legal and government11911241Phi 4
LMArena Text: business and finance11451199Phi 4
Neither model has a result on the other 10 boards here
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Web design benchmarks for GPT-4 and Phi 4
BenchmarkGPT-4Phi 4Leader
Neither model has a result on 9 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index512
General benchmarks for GPT-4 and Phi 4
BenchmarkGPT-4Phi 4Leader
IFBench33.2%23.5%GPT-4
Long context reasoning (AA-LCR)Not measured0.0%Only Phi 4 measured
DTBench62.7%Not measuredOnly GPT-4 measured
LMCA17.1%Not measuredOnly GPT-4 measured
Creative writing (Lech Mazur)Not measured62.6%Only Phi 4 measured
HellaSwag95.3%Not measuredOnly GPT-4 measured
WinoGrande87.5%Not measuredOnly GPT-4 measured
LMArena Text12061217Phi 4
LMArena Text: instruction following12011201Phi 4
LMArena Text: creative writing11911181GPT-4
LMArena Text: English12201231Phi 4
LMArena Text: non-English11941197Phi 4
LMArena Text: Chinese11841212Phi 4
LMArena Text: German11981222Phi 4
LMArena Text: Japanese11371158Phi 4
LMArena Text: Korean10871151Phi 4
LMArena Text: French12201224Phi 4
LMArena Text: Spanish11971234Phi 4
LMArena Text: Russian11951209Phi 4
LMArena Text: Polish1265Not measuredOnly GPT-4 measured
LMArena Text: multi-turn12061206GPT-4
LMArena Text: longer queries11901217Phi 4
LMArena Text: writing and language12191198GPT-4
LMArena Text: entertainment and media11841162GPT-4
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 and Phi 4
BenchmarkGPT-4Phi 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$0.060Fits in one request
Phi 4$0.0001Fits in one request

Phi 4 costs less

Repository review

50K input + 3K output tokens

GPT-4$1.68Exceeds the context window
Phi 4$0.0039Exceeds the context window

Phi 4 costs less

Agent loop

200K input + 10K output tokens

GPT-4$6.60Exceeds the context window
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 and Phi 4
SpecificationOpenAI GPT-4Microsoft Phi 4
MakerOpenAIMicrosoft
WeightsNo public weights listedOpen weights
ReleasedMay 28, 2023January 10, 2025
Context window8K16K
Input $/Mtok$30.00$0.07
Output $/Mtok$60.00$0.14
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it00
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is GPT-4 better than Phi 4 for coding?

Neither model has a coding score yet, so the two cannot be ranked on coding. GPT-4 has the edge where what matters is LMArena Text: coding or LMArena Text: software and IT, where it leads.

Which is cheaper, GPT-4 or Phi 4?

GPT-4 costs $30.00 per million input tokens and $60.00 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 or Phi 4?

Phi 4, with 16K tokens against 8K.

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

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