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.
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.
Coding
Vibe Coding Index, six public coding benchmarks
No call
Neither has a coding score yet.
One side not measured
Intelligence
AA Intelligence Index
Claude Opus 4.1
Claude Opus 4.1 leads, 22.8 against 5.9.
Same board, both measured
Reasoning
GPQA Diamond
No call
Only Claude Opus 4.1 has a GPQA Diamond result, 76.3%.
Directional only
Math
AIME
No call
Only Claude Opus 4.1 has a AIME result, 78.2%.
Directional only
Knowledge
MMLU Pro
No call
Only Claude Opus 4.1 has a MMLU Pro result, 87.9%.
Directional only
Web design
Design Arena: websites
No call
Only Claude Opus 4.1 has a Design Arena: websites result, 1177.
Directional only
Long documents
Listed context window
Claude Opus 4.1
Claude Opus 4.1 takes 200K tokens against 16K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Phi 4
Claude Opus 4.1 $0.052, Phi 4 $0.0001 per turn.
List prices
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.
| Category | Claude Opus 4.1 | Bars | Phi 4 | Ties |
|---|---|---|---|---|
| Coding | 2 | 0 | ||
| Intelligence | 2 | 0 | ||
| Reasoning | 4 | 0 | ||
| Math | 3 | 0 | ||
| Knowledge | 4 | 0 | ||
| General | 17 | 0 | ||
| All shared boards | 32 | 0 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index20
| Benchmark | Claude Opus 4.1 | Phi 4 | Leader |
|---|---|---|---|
| LMArena WebDev | 1390 | Not measured | Only Claude Opus 4.1 measured |
| LiveCodeBench (Vals AI) | 66.5% | Not measured | Only Claude Opus 4.1 measured |
| LiveCodeBench (Artificial Analysis run) | Not measured | 23.1% | Only Phi 4 measured |
| Terminal-Bench Hard (Artificial Analysis run) | Not measured | 3.8% | Only Phi 4 measured |
| Terminal-Bench | 38.0% | Not measured | Only Claude Opus 4.1 measured |
| WeirdML | 45.9% | Not measured | Only Claude Opus 4.1 measured |
| Cybench | 42.0% | Not measured | Only Claude Opus 4.1 measured |
| LMArena Text: coding | 1479 | 1231 | Claude Opus 4.1 |
| LMArena Text: software and IT | 1456 | 1228 | Claude Opus 4.1 |
| LMArena WebDev: HTML | 1399 | Not measured | Only 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
| Benchmark | Claude Opus 4.1 | Phi 4 | Leader |
|---|---|---|---|
| AA Intelligence Index | 22.8 | 5.9 | Claude Opus 4.1 |
| Epoch Capabilities Index | 144.1 | 130.5 | Claude Opus 4.1 |
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index5 boards, none shared
| Benchmark | Claude Opus 4.1 | Phi 4 | Leader |
|---|---|---|---|
| τ²-Bench Telecom | Not measured | 0.0% | Only Phi 4 measured |
| METR time horizons | 66.8% | Not measured | Only Claude Opus 4.1 measured |
| GDPval | 43.6% | Not measured | Only Claude Opus 4.1 measured |
| BALROG | Not measured | 11.6% | Only Phi 4 measured |
| DeepResearch Bench | 48.3% | Not measured | Only 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
| Benchmark | Claude Opus 4.1 | Phi 4 | Leader |
|---|---|---|---|
| GPQA Diamond | 76.3% | Not measured | Only Claude Opus 4.1 measured |
| MMMU Pro (Vals AI) | 77.5% | Not measured | Only Claude Opus 4.1 measured |
| GPQA Diamond (Artificial Analysis run) | Not measured | 57.5% | Only Phi 4 measured |
| Humanity's Last Exam (Artificial Analysis run) | Not measured | 3.8% | Only Phi 4 measured |
| GPQA Diamond (Epoch AI run) | 77.3% | 56.1% | Claude Opus 4.1 |
| SimpleBench | 60.0% | Not measured | Only Claude Opus 4.1 measured |
| Mystery game puzzles | 21.0% | Not measured | Only Claude Opus 4.1 measured |
| EBR-bench | 7.9% | Not measured | Only Claude Opus 4.1 measured |
| VPCT | 35.0% | Not measured | Only Claude Opus 4.1 measured |
| LMArena Text: hard prompts | 1442 | 1220 | Claude Opus 4.1 |
| LMArena Text: expert | 1438 | 1203 | Claude Opus 4.1 |
| LMArena Text: hard prompts in English | 1451 | 1230 | Claude 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
| Benchmark | Claude Opus 4.1 | Phi 4 | Leader |
|---|---|---|---|
| AIME | 78.2% | Not measured | Only Claude Opus 4.1 measured |
| MATH 500 (Vals AI) | 95.4% | Not measured | Only Claude Opus 4.1 measured |
| MGSM (Vals AI) | 94.4% | Not measured | Only Claude Opus 4.1 measured |
| AA Math Index | Not measured | 18.0 | Only Phi 4 measured |
| AIME 2025 (Artificial Analysis run) | Not measured | 18.0% | Only Phi 4 measured |
| OTIS Mock AIME | 68.9% | 13.8% | Claude Opus 4.1 |
| FrontierMath, tiers 1 to 3 | 12.6% | Not measured | Only Claude Opus 4.1 measured |
| FrontierMath, tier 4 | 2.4% | Not measured | Only Claude Opus 4.1 measured |
| MATH level 5 | Not measured | 64.9% | Only Phi 4 measured |
| LMArena Text: math | 1431 | 1246 | Claude Opus 4.1 |
| LMArena Text: mathematical work | 1434 | 1254 | Claude 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
| Benchmark | Claude Opus 4.1 | Phi 4 | Leader |
|---|---|---|---|
| MMLU Pro | 87.9% | Not measured | Only Claude Opus 4.1 measured |
| LegalBench (Vals AI) | 83.5% | Not measured | Only Claude Opus 4.1 measured |
| TaxEval (Vals AI) | 73.7% | Not measured | Only Claude Opus 4.1 measured |
| MortgageTax (Vals AI) | 61.1% | Not measured | Only Claude Opus 4.1 measured |
| MedQA (Vals AI) | 93.6% | Not measured | Only Claude Opus 4.1 measured |
| MedCode (Vals AI) | 47.2% | Not measured | Only Claude Opus 4.1 measured |
| MMLU Pro (Artificial Analysis run) | Not measured | 71.4% | Only Phi 4 measured |
| MMLU | Not measured | 84.8% | Only Phi 4 measured |
| LMArena Text: science | 1422 | 1206 | Claude Opus 4.1 |
| LMArena Text: medicine and healthcare | 1416 | 1202 | Claude Opus 4.1 |
| LMArena Text: legal and government | 1421 | 1241 | Claude Opus 4.1 |
| LMArena Text: business and finance | 1406 | 1199 | Claude 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
| Benchmark | Claude Opus 4.1 | Phi 4 | Leader |
|---|---|---|---|
| Design Arena: websites | 1177 | Not measured | Only Claude Opus 4.1 measured |
| Design Arena: UI components | 1164 | Not measured | Only Claude Opus 4.1 measured |
| Design Arena: game dev | 1171 | Not measured | Only Claude Opus 4.1 measured |
| Design Arena: data viz | 1166 | Not measured | Only Claude Opus 4.1 measured |
| Design Arena: 3D | 1153 | Not measured | Only Claude Opus 4.1 measured |
| Design Arena: all code categories | 1171 | Not measured | Only Claude Opus 4.1 measured |
| Design Arena: SVG | 1152 | Not measured | Only Claude Opus 4.1 measured |
| Design Arena: ASCII art | 1167 | Not measured | Only 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
| Benchmark | Claude Opus 4.1 | Phi 4 | Leader |
|---|---|---|---|
| SAGE (Vals AI) | 31.4% | Not measured | Only Claude Opus 4.1 measured |
| MedScribe (Vals AI) | 73.9% | Not measured | Only Claude Opus 4.1 measured |
| IFBench | Not measured | 23.5% | Only Phi 4 measured |
| Long context reasoning (AA-LCR) | Not measured | 0.0% | Only Phi 4 measured |
| DTBench | 80.0% | Not measured | Only Claude Opus 4.1 measured |
| LMCA | 37.1% | Not measured | Only Claude Opus 4.1 measured |
| Creative writing (Lech Mazur) | 84.7% | 62.6% | Claude Opus 4.1 |
| LMArena Text | 1419 | 1217 | Claude Opus 4.1 |
| LMArena Text: instruction following | 1435 | 1201 | Claude Opus 4.1 |
| LMArena Text: creative writing | 1412 | 1181 | Claude Opus 4.1 |
| LMArena Text: English | 1433 | 1231 | Claude Opus 4.1 |
| LMArena Text: non-English | 1405 | 1197 | Claude Opus 4.1 |
| LMArena Text: Chinese | 1427 | 1212 | Claude Opus 4.1 |
| LMArena Text: German | 1413 | 1222 | Claude Opus 4.1 |
| LMArena Text: Japanese | 1377 | 1158 | Claude Opus 4.1 |
| LMArena Text: Korean | 1381 | 1151 | Claude Opus 4.1 |
| LMArena Text: French | 1433 | 1224 | Claude Opus 4.1 |
| LMArena Text: Spanish | 1448 | 1234 | Claude Opus 4.1 |
| LMArena Text: Russian | 1422 | 1209 | Claude Opus 4.1 |
| LMArena Text: Polish | 1413 | Not measured | Only Claude Opus 4.1 measured |
| LMArena Text: multi-turn | 1444 | 1206 | Claude Opus 4.1 |
| LMArena Text: longer queries | 1455 | 1217 | Claude Opus 4.1 |
| LMArena Text: writing and language | 1418 | 1198 | Claude Opus 4.1 |
| LMArena Text: entertainment and media | 1398 | 1162 | Claude 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
| Benchmark | Claude Opus 4.1 | Phi 4 | Leader |
|---|---|---|---|
| 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
Phi 4 costs less
Repository review
50K input + 3K output tokens
Phi 4 costs less
Agent loop
200K input + 10K output tokens
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.
| Specification | Anthropic Claude Opus 4.1 | Microsoft Phi 4 |
|---|---|---|
| Maker | Anthropic | Microsoft |
| Weights | No public weights listed | Open weights |
| Released | August 5, 2025 | January 10, 2025 |
| Context window | 200K | 16K |
| Input $/Mtok | $15.00 | $0.07 |
| Output $/Mtok | $75.00 | $0.14 |
| Coding index | Not benchmarked | Not benchmarked |
| Independent measurements behind it | 1 | 0 |
| Cost per solved task | Not computable | Not computable |
| Source | OpenRouter listing | OpenRouter 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.