Phi 4 vs Qwen3.7 Max
Updated October 21, 2026. 10 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.
Decision reading
Only Qwen3.7 Max has a coding score, 54.1 on the Vibe Coding Index; Phi 4 has none, so the two cannot be ranked on coding.
Phi 4 has the edge where output tokens cost 31.6x less.
- Shared results
- 10
- Phi 4 only
- 35
- Qwen3.7 Max only
- 49
- 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
Only Qwen3.7 Max has a coding score, so no call is made.
One side not measured
Intelligence
AA Intelligence Index
Qwen3.7 Max
Qwen3.7 Max leads, 29.5 against 5.9.
Same board, both measured
Agentic work
AA Agentic Index
No call
Only Qwen3.7 Max has a AA Agentic Index result, 22.5.
Directional only
Reasoning
GPQA Diamond
No call
Only Qwen3.7 Max has a GPQA Diamond result, 90.2%.
Directional only
Knowledge
MMLU Pro
No call
Only Qwen3.7 Max has a MMLU Pro result, 89.3%.
Directional only
Web design
Design Arena: websites
No call
Only Qwen3.7 Max has a Design Arena: websites result, 1274.
Directional only
Long documents
Listed context window
Qwen3.7 Max
Qwen3.7 Max takes 1M tokens against 16K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Phi 4
Phi 4 $0.0001, Qwen3.7 Max $0.0037 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only Qwen3.7 Max has the number, $4.69.
Directional only
At a glance
- Coding index
- Phi 4 not benchmarked, Qwen3.7 Max 54.1 from 3 benchmarks.
- Widest category
- Agentic work, 94.7 points apart on average over 1 shared benchmark.
- Widest single gap
- τ²-Bench Telecom: Phi 4 0.0% against Qwen3.7 Max 94.7%, 94.7 points apart on a 0 to 100 scale.
- Output price
- Phi 4 $0.14 against Qwen3.7 Max $4.425 per million output tokens, 31.6x apart.
- Context window
- Phi 4 takes 16K tokens, Qwen3.7 Max 1M.
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 | Phi 4 | Bars | Qwen3.7 Max | Ties |
|---|---|---|---|---|
| Coding | 0 | 1 | ||
| Intelligence | 0 | 2 | ||
| Agentic work | 0 | 1 | ||
| Reasoning | 0 | 3 | ||
| Math | 0 | 1 | ||
| General | 0 | 2 | ||
| All shared boards | 0 | 10 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index01
| Benchmark | Phi 4 | Qwen3.7 Max | Leader |
|---|---|---|---|
| LMArena WebDev | Not measured | 1515 | Only Qwen3.7 Max measured |
| AA Coding Index | Not measured | 66.0 | Only Qwen3.7 Max measured |
| LiveCodeBench (Vals AI) | Not measured | 87.1% | Only Qwen3.7 Max measured |
| SWE-bench Verified (Vals AI) | Not measured | 68.8% | Only Qwen3.7 Max measured |
| Vibe Code Bench (Vals AI) | Not measured | 47.7% | Only Qwen3.7 Max measured |
| Code migration (Vals AI) | Not measured | 13.1% | Only Qwen3.7 Max measured |
| Terminal-Bench 2.1 (Vals AI) | Not measured | 61.0% | Only Qwen3.7 Max measured |
| LiveCodeBench (Artificial Analysis run) | 23.1% | Not measured | Only Phi 4 measured |
| SciCode | Not measured | 49.5% | Only Qwen3.7 Max measured |
| Terminal-Bench Hard (Artificial Analysis run) | 3.8% | 50.8% | Qwen3.7 Max |
| ALE-Bench | Not measured | 1189.4 | Only Qwen3.7 Max measured |
| LMArena Text: coding | 1231 | Not measured | Only Phi 4 measured |
| LMArena Text: software and IT | 1228 | Not measured | Only Phi 4 measured |
| LMArena WebDev: React | Not measured | 1514 | Only Qwen3.7 Max measured |
| LMArena WebDev: HTML | Not measured | 1512 | Only Qwen3.7 Max measured |
| Neither model has a result on the other 23 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | Phi 4 | Qwen3.7 Max | Leader |
|---|---|---|---|
| AA Intelligence Index | 5.9 | 29.5 | Qwen3.7 Max |
| Epoch Capabilities Index | 130.5 | 154.0 | Qwen3.7 Max |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index01
| Benchmark | Phi 4 | Qwen3.7 Max | Leader |
|---|---|---|---|
| AA Agentic Index | Not measured | 22.5 | Only Qwen3.7 Max measured |
| Design Arena: agents building web apps | Not measured | 1208 | Only Qwen3.7 Max measured |
| Design Arena: agents building full-stack apps | Not measured | 1191 | Only Qwen3.7 Max measured |
| Design Arena: agents building mobile apps | Not measured | 1153 | Only Qwen3.7 Max measured |
| Design Arena: agents building Android apps | Not measured | 1165 | Only Qwen3.7 Max measured |
| Design Arena: agents building Godot games | Not measured | 1187 | Only Qwen3.7 Max measured |
| Design Arena: agents building games | Not measured | 1161 | Only Qwen3.7 Max measured |
| Design Arena: HTML slides | Not measured | 1158 | Only Qwen3.7 Max measured |
| Design Arena: PowerPoint slides | Not measured | 1196 | Only Qwen3.7 Max measured |
| Finance Agent (Vals AI) | Not measured | 47.8% | Only Qwen3.7 Max measured |
| Tax Agent Bench (Vals AI) | Not measured | 15.8% | Only Qwen3.7 Max measured |
| Legal Research Bench (Vals AI) | Not measured | 25.5% | Only Qwen3.7 Max measured |
| Excel Modeling Benchmark (Vals AI) | Not measured | 57.0% | Only Qwen3.7 Max measured |
| τ²-Bench Telecom | 0.0% | 94.7% | Qwen3.7 Max |
| BALROG | 11.6% | Not measured | Only Phi 4 measured |
| Neither model has a result on the other 24 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index03
| Benchmark | Phi 4 | Qwen3.7 Max | Leader |
|---|---|---|---|
| GPQA Diamond | Not measured | 90.2% | Only Qwen3.7 Max measured |
| GPQA Diamond (Artificial Analysis run) | 57.5% | 92.3% | Qwen3.7 Max |
| Humanity's Last Exam (Artificial Analysis run) | 3.8% | 40.5% | Qwen3.7 Max |
| GPQA Diamond (Epoch AI run) | 56.1% | 90.9% | Qwen3.7 Max |
| SimpleBench | Not measured | 70.4% | Only Qwen3.7 Max measured |
| Chess puzzles | Not measured | 26.0% | Only Qwen3.7 Max measured |
| Mystery game puzzles | Not measured | 32.0% | Only Qwen3.7 Max measured |
| EBR-bench | Not measured | 9.5% | Only Qwen3.7 Max measured |
| LMArena Text: hard prompts | 1220 | Not measured | Only Phi 4 measured |
| LMArena Text: expert | 1203 | Not measured | Only Phi 4 measured |
| LMArena Text: hard prompts in English | 1230 | Not measured | Only Phi 4 measured |
| Neither model has a result on the other 10 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index01
| Benchmark | Phi 4 | Qwen3.7 Max | Leader |
|---|---|---|---|
| AA Math Index | 18.0 | Not measured | Only Phi 4 measured |
| AIME 2025 (Artificial Analysis run) | 18.0% | Not measured | Only Phi 4 measured |
| OTIS Mock AIME | 13.8% | 95.6% | Qwen3.7 Max |
| FrontierMath, tiers 1 to 3 | Not measured | 64.6% | Only Qwen3.7 Max measured |
| FrontierMath, tier 4 | Not measured | 34.1% | Only Qwen3.7 Max measured |
| ProofBench | Not measured | 26.0% | Only Qwen3.7 Max measured |
| MATH level 5 | 64.9% | Not measured | Only Phi 4 measured |
| LMArena Text: math | 1246 | Not measured | Only Phi 4 measured |
| LMArena Text: mathematical work | 1254 | Not measured | Only Phi 4 measured |
| Neither model has a result on the other 4 boards here | |||
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index12 boards, none shared
| Benchmark | Phi 4 | Qwen3.7 Max | Leader |
|---|---|---|---|
| MMLU Pro | Not measured | 89.3% | Only Qwen3.7 Max measured |
| LegalBench (Vals AI) | Not measured | 84.9% | Only Qwen3.7 Max measured |
| CorpFin (Vals AI) | Not measured | 63.7% | Only Qwen3.7 Max measured |
| TaxEval (Vals AI) | Not measured | 75.3% | Only Qwen3.7 Max measured |
| MedCode (Vals AI) | Not measured | 38.8% | Only Qwen3.7 Max measured |
| MMLU Pro (Artificial Analysis run) | 71.4% | Not measured | Only Phi 4 measured |
| SimpleQA Verified | Not measured | 55.8% | Only Qwen3.7 Max measured |
| MMLU | 84.8% | Not measured | Only Phi 4 measured |
| LMArena Text: science | 1206 | Not measured | Only Phi 4 measured |
| LMArena Text: medicine and healthcare | 1202 | Not measured | Only Phi 4 measured |
| LMArena Text: legal and government | 1241 | Not measured | Only Phi 4 measured |
| LMArena Text: business and finance | 1199 | Not measured | Only Phi 4 measured |
| 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 | Phi 4 | Qwen3.7 Max | Leader |
|---|---|---|---|
| Design Arena: websites | Not measured | 1274 | Only Qwen3.7 Max measured |
| Design Arena: UI components | Not measured | 1270 | Only Qwen3.7 Max measured |
| Design Arena: game dev | Not measured | 1265 | Only Qwen3.7 Max measured |
| Design Arena: data viz | Not measured | 1275 | Only Qwen3.7 Max measured |
| Design Arena: 3D | Not measured | 1266 | Only Qwen3.7 Max measured |
| Design Arena: all code categories | Not measured | 1275 | Only Qwen3.7 Max measured |
| Design Arena: SVG | Not measured | 1217 | Only Qwen3.7 Max measured |
| Design Arena: ASCII art | Not measured | 1211 | Only Qwen3.7 Max measured |
| Neither model has a result on the other 1 board here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | Phi 4 | Qwen3.7 Max | Leader |
|---|---|---|---|
| MedScribe (Vals AI) | Not measured | 79.4% | Only Qwen3.7 Max measured |
| IFBench | 23.5% | 80.5% | Qwen3.7 Max |
| Long context reasoning (AA-LCR) | 0.0% | 79.0% | Qwen3.7 Max |
| DTBench | Not measured | 92.3% | Only Qwen3.7 Max measured |
| LMCA | Not measured | 44.0% | Only Qwen3.7 Max measured |
| Creative writing (Lech Mazur) | 62.6% | Not measured | Only Phi 4 measured |
| LMArena Text | 1217 | Not measured | Only Phi 4 measured |
| LMArena Text: instruction following | 1201 | Not measured | Only Phi 4 measured |
| LMArena Text: creative writing | 1181 | Not measured | Only Phi 4 measured |
| LMArena Text: English | 1231 | Not measured | Only Phi 4 measured |
| LMArena Text: non-English | 1197 | Not measured | Only Phi 4 measured |
| LMArena Text: Chinese | 1212 | Not measured | Only Phi 4 measured |
| LMArena Text: German | 1222 | Not measured | Only Phi 4 measured |
| LMArena Text: Japanese | 1158 | Not measured | Only Phi 4 measured |
| LMArena Text: Korean | 1151 | Not measured | Only Phi 4 measured |
| LMArena Text: French | 1224 | Not measured | Only Phi 4 measured |
| LMArena Text: Spanish | 1234 | Not measured | Only Phi 4 measured |
| LMArena Text: Russian | 1209 | Not measured | Only Phi 4 measured |
| LMArena Text: multi-turn | 1206 | Not measured | Only Phi 4 measured |
| LMArena Text: longer queries | 1217 | Not measured | Only Phi 4 measured |
| LMArena Text: writing and language | 1198 | Not measured | Only Phi 4 measured |
| LMArena Text: entertainment and media | 1162 | Not measured | Only Phi 4 measured |
| Neither model has a result on the other 24 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Phi 4 | Qwen3.7 Max | 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 | Microsoft Phi 4 | Qwen3.7 Max |
|---|---|---|
| Maker | Microsoft | Qwen |
| Weights | Open weights | No public weights listed |
| Released | January 10, 2025 | May 21, 2026 |
| Context window | 16K | 1M |
| Input $/Mtok | $0.07 | $1.475 |
| Output $/Mtok | $0.14 | $4.425 |
| Coding index | Not benchmarked | 54.1 |
| Independent measurements behind it | 0 | 3 |
| Cost per solved task | Not computable | $4.69 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Phi 4 better than Qwen3.7 Max for coding?
Only Qwen3.7 Max has a coding score, 54.1 on the Vibe Coding Index; Phi 4 has none, so the two cannot be ranked on coding. Phi 4 has the edge where output tokens cost 31.6x less.
Which is cheaper, Phi 4 or Qwen3.7 Max?
Phi 4 costs $0.07 per million input tokens and $0.14 per million output tokens; Qwen3.7 Max costs $1.475 and $4.425. Cost per solved task is known for Qwen3.7 Max only.
Which has the bigger context window, Phi 4 or Qwen3.7 Max?
Qwen3.7 Max, with 1M tokens against 16K.
How many benchmarks is the Phi 4 vs Qwen3.7 Max comparison based on?
10 benchmarks have a result for both models as of October 21, 2026. Phi 4's coding index rests on 0 independent benchmarks and Qwen3.7 Max's on 3. Where only one model has a result, the page says so instead of naming a winner.