Enter opens the highlighted result. Esc closes.

GPT-5.2 vs Phi 4

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

GPT-5.2OpenAI
Coding
55.9
Overall
30.4
Output $/M
$14.00
41
Phi 4Microsoft
Coding
No data
Overall
5.9
Output $/M
$0.14
0
vs boards won of 41 shared

GPT-5.2 or Phi 4: which to pick

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

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

Shared results
41
GPT-5.2 only
70
Phi 4 only
4
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.2 55.9 from 3 benchmarks, Phi 4 not benchmarked.
Widest category
Agentic work, 84.8 points apart on average over 1 shared benchmark.
Widest single gap
τ²-Bench Telecom: GPT-5.2 84.8% against Phi 4 0.0%, 84.8 points apart on a 0 to 100 scale.
Output price
GPT-5.2 $14.00 against Phi 4 $0.14 per million output tokens, 100.0x apart.
Context window
GPT-5.2 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.2BarsPhi 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.2 and Phi 4
BenchmarkGPT-5.2Phi 4Leader
SWE-bench Verified72.8%Not measuredOnly GPT-5.2 measured
SWE-bench Multilingual66.7%Not measuredOnly GPT-5.2 measured
LMArena WebDev1417Not measuredOnly GPT-5.2 measured
LiveCodeBench (Vals AI)85.4%Not measuredOnly GPT-5.2 measured
SWE-bench Verified (Vals AI)75.8%Not measuredOnly GPT-5.2 measured
Vibe Code Bench (Vals AI)53.5%Not measuredOnly GPT-5.2 measured
LiveCodeBench (Artificial Analysis run)89.4%23.1%GPT-5.2
Terminal-Bench Hard (Artificial Analysis run)47.0%3.8%GPT-5.2
Terminal-Bench64.9%Not measuredOnly GPT-5.2 measured
GSO-Bench27.5%Not measuredOnly GPT-5.2 measured
WeirdML72.2%Not measuredOnly GPT-5.2 measured
ALE-Bench1293.5Not measuredOnly GPT-5.2 measured
LMArena Text: coding14421231GPT-5.2
LMArena Text: software and IT14341228GPT-5.2
LMArena WebDev: HTML1427Not measuredOnly GPT-5.2 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.2 and Phi 4
BenchmarkGPT-5.2Phi 4Leader
AA Intelligence Index30.45.9GPT-5.2
Epoch Capabilities Index153.7130.5GPT-5.2
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GPT-5.2 and Phi 4
BenchmarkGPT-5.2Phi 4Leader
Design Arena: agents building web apps1086Not measuredOnly GPT-5.2 measured
Design Arena: agents building full-stack apps1043Not measuredOnly GPT-5.2 measured
Design Arena: agents building mobile apps1093Not measuredOnly GPT-5.2 measured
Design Arena: agents building Android apps1058Not measuredOnly GPT-5.2 measured
Design Arena: agents building Godot games1142Not measuredOnly GPT-5.2 measured
τ²-Bench Telecom84.8%0.0%GPT-5.2
METR time horizons75.3%Not measuredOnly GPT-5.2 measured
Remote Labor Index2.5%Not measuredOnly GPT-5.2 measured
GDPval49.7%Not measuredOnly GPT-5.2 measured
BALROGNot measured11.6%Only Phi 4 measured
DeepResearch Bench41.1%Not measuredOnly GPT-5.2 measured
Vending-Bench 2$3,591Not measuredOnly GPT-5.2 measured
Neither model has a result on the other 27 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index60
Reasoning benchmarks for GPT-5.2 and Phi 4
BenchmarkGPT-5.2Phi 4Leader
GPQA Diamond91.7%Not measuredOnly GPT-5.2 measured
MMMU Pro (Vals AI)86.7%Not measuredOnly GPT-5.2 measured
GPQA Diamond (Artificial Analysis run)90.3%57.5%GPT-5.2
Humanity's Last Exam (Artificial Analysis run)37.7%3.8%GPT-5.2
GPQA Diamond (Epoch AI run)91.4%56.1%GPT-5.2
ARC-AGI86.2%Not measuredOnly GPT-5.2 measured
ARC-AGI-252.9%Not measuredOnly GPT-5.2 measured
SimpleBench45.8%Not measuredOnly GPT-5.2 measured
Chess puzzles48.0%Not measuredOnly GPT-5.2 measured
Mystery game puzzles23.0%Not measuredOnly GPT-5.2 measured
EBR-bench23.0%Not measuredOnly GPT-5.2 measured
VPCT84.0%Not measuredOnly GPT-5.2 measured
LMArena Text: hard prompts14281220GPT-5.2
LMArena Text: expert14451203GPT-5.2
LMArena Text: hard prompts in English14311230GPT-5.2
LMArena Vision: diagrams1265Not measuredOnly GPT-5.2 measured
LMArena Vision: homework1276Not measuredOnly GPT-5.2 measured
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index50
Math benchmarks for GPT-5.2 and Phi 4
BenchmarkGPT-5.2Phi 4Leader
AIME96.9%Not measuredOnly GPT-5.2 measured
MGSM (Vals AI)94.0%Not measuredOnly GPT-5.2 measured
AA Math Index99.018.0GPT-5.2
AIME 2025 (Artificial Analysis run)99.0%18.0%GPT-5.2
OTIS Mock AIME96.1%13.8%GPT-5.2
FrontierMath, tiers 1 to 367.4%Not measuredOnly GPT-5.2 measured
FrontierMath, tier 431.7%Not measuredOnly GPT-5.2 measured
ProofBench15.0%Not measuredOnly GPT-5.2 measured
MATH level 5Not measured64.9%Only Phi 4 measured
LMArena Text: math14401246GPT-5.2
LMArena Text: mathematical work14421254GPT-5.2
Neither model has a result on the other 2 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index50
Knowledge benchmarks for GPT-5.2 and Phi 4
BenchmarkGPT-5.2Phi 4Leader
MMLU Pro86.2%Not measuredOnly GPT-5.2 measured
LegalBench (Vals AI)82.8%Not measuredOnly GPT-5.2 measured
CaseLaw (Vals AI)66.0%Not measuredOnly GPT-5.2 measured
CorpFin (Vals AI)65.9%Not measuredOnly GPT-5.2 measured
TaxEval (Vals AI)75.8%Not measuredOnly GPT-5.2 measured
MortgageTax (Vals AI)67.1%Not measuredOnly GPT-5.2 measured
MedQA (Vals AI)94.1%Not measuredOnly GPT-5.2 measured
MedCode (Vals AI)49.8%Not measuredOnly GPT-5.2 measured
MMLU Pro (Artificial Analysis run)87.4%71.4%GPT-5.2
SimpleQA Verified37.1%Not measuredOnly GPT-5.2 measured
MMLUNot measured84.8%Only Phi 4 measured
LMArena Text: science14251206GPT-5.2
LMArena Text: medicine and healthcare14251202GPT-5.2
LMArena Text: legal and government14271241GPT-5.2
LMArena Text: business and finance14141199GPT-5.2
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.2 and Phi 4
BenchmarkGPT-5.2Phi 4Leader
Design Arena: websites1195Not measuredOnly GPT-5.2 measured
Design Arena: UI components1190Not measuredOnly GPT-5.2 measured
Design Arena: game dev1195Not measuredOnly GPT-5.2 measured
Design Arena: data viz1202Not measuredOnly GPT-5.2 measured
Design Arena: 3D1079Not measuredOnly GPT-5.2 measured
Design Arena: all code categories1170Not measuredOnly GPT-5.2 measured
Design Arena: SVG1139Not measuredOnly GPT-5.2 measured
Design Arena: ASCII art1152Not measuredOnly GPT-5.2 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.2 and Phi 4
BenchmarkGPT-5.2Phi 4Leader
SAGE (Vals AI)49.3%Not measuredOnly GPT-5.2 measured
MedScribe (Vals AI)84.4%Not measuredOnly GPT-5.2 measured
IFBench75.4%23.5%GPT-5.2
Long context reasoning (AA-LCR)82.7%0.0%GPT-5.2
DTBench90.9%Not measuredOnly GPT-5.2 measured
LMCA43.9%Not measuredOnly GPT-5.2 measured
Creative writing (Lech Mazur)Not measured62.6%Only Phi 4 measured
CL-bench18.2%Not measuredOnly GPT-5.2 measured
Furniture assembly38.3%Not measuredOnly GPT-5.2 measured
LMArena Text14161217GPT-5.2
LMArena Text: instruction following14091201GPT-5.2
LMArena Text: creative writing13761181GPT-5.2
LMArena Vision1246Not measuredOnly GPT-5.2 measured
LMArena Text: English14221231GPT-5.2
LMArena Text: non-English14051197GPT-5.2
LMArena Text: Chinese14471212GPT-5.2
LMArena Text: German14441222GPT-5.2
LMArena Text: Japanese14201158GPT-5.2
LMArena Text: Korean13741151GPT-5.2
LMArena Text: French14541224GPT-5.2
LMArena Text: Spanish14131234GPT-5.2
LMArena Text: Russian14151209GPT-5.2
LMArena Text: Polish1426Not measuredOnly GPT-5.2 measured
LMArena Text: multi-turn14191206GPT-5.2
LMArena Text: longer queries14131217GPT-5.2
LMArena Text: writing and language13921198GPT-5.2
LMArena Text: entertainment and media13781162GPT-5.2
LMArena Vision: English1243Not measuredOnly GPT-5.2 measured
LMArena Vision: Chinese1305Not measuredOnly GPT-5.2 measured
LMArena Vision: reading text1257Not measuredOnly GPT-5.2 measured
LMArena Vision: humor1227Not measuredOnly GPT-5.2 measured
LMArena Vision: captioning1267Not measuredOnly GPT-5.2 measured
LMArena Vision: recognizing things1232Not measuredOnly GPT-5.2 measured
LMArena Vision: creative writing1225Not measuredOnly GPT-5.2 measured
LMArena Document1405Not measuredOnly GPT-5.2 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.2 and Phi 4
BenchmarkGPT-5.2Phi 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.2$0.0088Fits in one request
Phi 4$0.0001Fits in one request

Phi 4 costs less

Repository review

50K input + 3K output tokens

GPT-5.2$0.130Fits in one request
Phi 4$0.0039Exceeds the context window

Phi 4 costs less

Agent loop

200K input + 10K output tokens

GPT-5.2$0.490Fits 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.2 and Phi 4
SpecificationOpenAI GPT-5.2Microsoft Phi 4
MakerOpenAIMicrosoft
WeightsNo public weights listedOpen weights
ReleasedDecember 10, 2025January 10, 2025
Context window400K16K
Input $/Mtok$1.75$0.07
Output $/Mtok$14.00$0.14
Coding index55.9Not benchmarked
Independent measurements behind it30
Cost per solved task$1.91Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is GPT-5.2 better than Phi 4 for coding?

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

Which is cheaper, GPT-5.2 or Phi 4?

GPT-5.2 costs $1.75 per million input tokens and $14.00 per million output tokens; Phi 4 costs $0.07 and $0.14. Cost per solved task is known for GPT-5.2 only.

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

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

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

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