Enter opens the highlighted result. Esc closes.

Claude Opus 4.1 vs Phi 4

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

Claude Opus 4.1Anthropic
Coding
No data
Overall
22.8
Output $/M
$75.00
32
Phi 4Microsoft
Coding
No data
Overall
5.9
Output $/M
$0.14
0
vs boards won of 32 shared

Decision reading

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

Claude Opus 4.1 has the edge where the context window is larger, 200K against 16K tokens.

Shared results
32
Claude Opus 4.1 only
39
Phi 4 only
13
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
Claude Opus 4.1 not benchmarked, Phi 4 not benchmarked.
Widest category
Coding, 39.7 points apart on average over 2 shared benchmarks.
Widest single gap
OTIS Mock AIME: Claude Opus 4.1 68.9% against Phi 4 13.8%, 55.1 points apart on a 0 to 100 scale.
Output price
Claude Opus 4.1 $75.00 against Phi 4 $0.14 per million output tokens, 535.7x apart.
Context window
Claude Opus 4.1 takes 200K 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
CategoryClaude Opus 4.1BarsPhi 4Ties
Coding20
Intelligence20
Reasoning40
Math30
Knowledge40
General170
All shared boards320
CodingLike-for-likeSix of these boards feed the Vibe Coding Index20
Coding benchmarks for Claude Opus 4.1 and Phi 4
BenchmarkClaude Opus 4.1Phi 4Leader
LMArena WebDev1390Not measuredOnly Claude Opus 4.1 measured
LiveCodeBench (Vals AI)66.5%Not measuredOnly Claude Opus 4.1 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
Terminal-Bench38.0%Not measuredOnly Claude Opus 4.1 measured
WeirdML45.9%Not measuredOnly Claude Opus 4.1 measured
Cybench42.0%Not measuredOnly Claude Opus 4.1 measured
LMArena Text: coding14791231Claude Opus 4.1
LMArena Text: software and IT14561228Claude Opus 4.1
LMArena WebDev: HTML1399Not measuredOnly Claude Opus 4.1 measured
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 Claude Opus 4.1 and Phi 4
BenchmarkClaude Opus 4.1Phi 4Leader
AA Intelligence Index22.85.9Claude Opus 4.1
Epoch Capabilities Index144.1130.5Claude Opus 4.1
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index5 boards, none shared
Agentic work benchmarks for Claude Opus 4.1 and Phi 4
BenchmarkClaude Opus 4.1Phi 4Leader
τ²-Bench TelecomNot measured0.0%Only Phi 4 measured
METR time horizons66.8%Not measuredOnly Claude Opus 4.1 measured
GDPval43.6%Not measuredOnly Claude Opus 4.1 measured
BALROGNot measured11.6%Only Phi 4 measured
DeepResearch Bench48.3%Not measuredOnly Claude Opus 4.1 measured
Neither model has a result on the other 34 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index40
Reasoning benchmarks for Claude Opus 4.1 and Phi 4
BenchmarkClaude Opus 4.1Phi 4Leader
GPQA Diamond76.3%Not measuredOnly Claude Opus 4.1 measured
MMMU Pro (Vals AI)77.5%Not measuredOnly Claude Opus 4.1 measured
GPQA Diamond (Artificial Analysis run)Not measured57.5%Only Phi 4 measured
Humanity's Last Exam (Artificial Analysis run)Not measured3.8%Only Phi 4 measured
GPQA Diamond (Epoch AI run)77.3%56.1%Claude Opus 4.1
SimpleBench60.0%Not measuredOnly Claude Opus 4.1 measured
Mystery game puzzles21.0%Not measuredOnly Claude Opus 4.1 measured
EBR-bench7.9%Not measuredOnly Claude Opus 4.1 measured
VPCT35.0%Not measuredOnly Claude Opus 4.1 measured
LMArena Text: hard prompts14421220Claude Opus 4.1
LMArena Text: expert14381203Claude Opus 4.1
LMArena Text: hard prompts in English14511230Claude Opus 4.1
Neither model has a result on the other 9 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index30
Math benchmarks for Claude Opus 4.1 and Phi 4
BenchmarkClaude Opus 4.1Phi 4Leader
AIME78.2%Not measuredOnly Claude Opus 4.1 measured
MATH 500 (Vals AI)95.4%Not measuredOnly Claude Opus 4.1 measured
MGSM (Vals AI)94.4%Not measuredOnly Claude Opus 4.1 measured
AA Math IndexNot measured18.0Only Phi 4 measured
AIME 2025 (Artificial Analysis run)Not measured18.0%Only Phi 4 measured
OTIS Mock AIME68.9%13.8%Claude Opus 4.1
FrontierMath, tiers 1 to 312.6%Not measuredOnly Claude Opus 4.1 measured
FrontierMath, tier 42.4%Not measuredOnly Claude Opus 4.1 measured
MATH level 5Not measured64.9%Only Phi 4 measured
LMArena Text: math14311246Claude Opus 4.1
LMArena Text: mathematical work14341254Claude Opus 4.1
Neither model has a result on the other 2 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index40
Knowledge benchmarks for Claude Opus 4.1 and Phi 4
BenchmarkClaude Opus 4.1Phi 4Leader
MMLU Pro87.9%Not measuredOnly Claude Opus 4.1 measured
LegalBench (Vals AI)83.5%Not measuredOnly Claude Opus 4.1 measured
TaxEval (Vals AI)73.7%Not measuredOnly Claude Opus 4.1 measured
MortgageTax (Vals AI)61.1%Not measuredOnly Claude Opus 4.1 measured
MedQA (Vals AI)93.6%Not measuredOnly Claude Opus 4.1 measured
MedCode (Vals AI)47.2%Not measuredOnly Claude Opus 4.1 measured
MMLU Pro (Artificial Analysis run)Not measured71.4%Only Phi 4 measured
MMLUNot measured84.8%Only Phi 4 measured
LMArena Text: science14221206Claude Opus 4.1
LMArena Text: medicine and healthcare14161202Claude Opus 4.1
LMArena Text: legal and government14211241Claude Opus 4.1
LMArena Text: business and finance14061199Claude Opus 4.1
Neither model has a result on the other 5 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for Claude Opus 4.1 and Phi 4
BenchmarkClaude Opus 4.1Phi 4Leader
Design Arena: websites1177Not measuredOnly Claude Opus 4.1 measured
Design Arena: UI components1164Not measuredOnly Claude Opus 4.1 measured
Design Arena: game dev1171Not measuredOnly Claude Opus 4.1 measured
Design Arena: data viz1166Not measuredOnly Claude Opus 4.1 measured
Design Arena: 3D1153Not measuredOnly Claude Opus 4.1 measured
Design Arena: all code categories1171Not measuredOnly Claude Opus 4.1 measured
Design Arena: SVG1152Not measuredOnly Claude Opus 4.1 measured
Design Arena: ASCII art1167Not measuredOnly Claude Opus 4.1 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index170
General benchmarks for Claude Opus 4.1 and Phi 4
BenchmarkClaude Opus 4.1Phi 4Leader
SAGE (Vals AI)31.4%Not measuredOnly Claude Opus 4.1 measured
MedScribe (Vals AI)73.9%Not measuredOnly Claude Opus 4.1 measured
IFBenchNot measured23.5%Only Phi 4 measured
Long context reasoning (AA-LCR)Not measured0.0%Only Phi 4 measured
DTBench80.0%Not measuredOnly Claude Opus 4.1 measured
LMCA37.1%Not measuredOnly Claude Opus 4.1 measured
Creative writing (Lech Mazur)84.7%62.6%Claude Opus 4.1
LMArena Text14191217Claude Opus 4.1
LMArena Text: instruction following14351201Claude Opus 4.1
LMArena Text: creative writing14121181Claude Opus 4.1
LMArena Text: English14331231Claude Opus 4.1
LMArena Text: non-English14051197Claude Opus 4.1
LMArena Text: Chinese14271212Claude Opus 4.1
LMArena Text: German14131222Claude Opus 4.1
LMArena Text: Japanese13771158Claude Opus 4.1
LMArena Text: Korean13811151Claude Opus 4.1
LMArena Text: French14331224Claude Opus 4.1
LMArena Text: Spanish14481234Claude Opus 4.1
LMArena Text: Russian14221209Claude Opus 4.1
LMArena Text: Polish1413Not measuredOnly Claude Opus 4.1 measured
LMArena Text: multi-turn14441206Claude Opus 4.1
LMArena Text: longer queries14551217Claude Opus 4.1
LMArena Text: writing and language14181198Claude Opus 4.1
LMArena Text: entertainment and media13981162Claude Opus 4.1
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 Claude Opus 4.1 and Phi 4
BenchmarkClaude Opus 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

Claude Opus 4.1$0.052Fits in one request
Phi 4$0.0001Fits in one request

Phi 4 costs less

Repository review

50K input + 3K output tokens

Claude Opus 4.1$0.975Fits in one request
Phi 4$0.0039Exceeds the context window

Phi 4 costs less

Agent loop

200K input + 10K output tokens

Claude Opus 4.1$3.75Exceeds 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 Claude Opus 4.1 and Phi 4
SpecificationAnthropic Claude Opus 4.1Microsoft Phi 4
MakerAnthropicMicrosoft
WeightsNo public weights listedOpen weights
ReleasedAugust 5, 2025January 10, 2025
Context window200K16K
Input $/Mtok$15.00$0.07
Output $/Mtok$75.00$0.14
Coding indexNot benchmarkedNot benchmarked
Independent measurements behind it10
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Opus 4.1 better than Phi 4 for coding?

Neither model has a coding score yet, so the two cannot be ranked on coding. Claude Opus 4.1 has the edge where the context window is larger, 200K against 16K tokens.

Which is cheaper, Claude Opus 4.1 or Phi 4?

Claude Opus 4.1 costs $15.00 per million input tokens and $75.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, Claude Opus 4.1 or Phi 4?

Claude Opus 4.1, with 200K tokens against 16K.

How many benchmarks is the Claude Opus 4.1 vs Phi 4 comparison based on?

32 benchmarks have a result for both models as of October 21, 2026. Claude Opus 4.1's coding index rests on 1 independent benchmark and Phi 4's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next