Claude Opus 4.7 vs GPT-5.4 Nano
Claude Opus 4.7 leads GPT-5.4 Nano on coding, 67.5 to 44.8 on the Vibe Coding Index, and GPT-5.4 Nano costs 20.0x less per output token ($1.25 vs $25.00 per million). Updated October 22, 2026; 83 benchmarks have a result for both.
Claude Opus 4.7 or GPT-5.4 Nano: which to pick
Pick Claude Opus 4.7 for coding: it scores 67.5 on the Vibe Coding Index against 44.8 for GPT-5.4 Nano.
Pick GPT-5.4 Nano for output tokens 20.0x cheaper ($1.25 vs $25.00 per million) and a lower cost per solved task ($0.14 against $2.95).
- Shared results
- 83
- Claude Opus 4.7 only
- 20
- GPT-5.4 Nano only
- 2
- 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.
Coding
Vibe Coding Index, six public coding benchmarks
Claude Opus 4.7
Claude Opus 4.7 scores 67.5 against 44.8.
4 and 2 benchmarks behind the scores
Intelligence
AA Intelligence Index
Claude Opus 4.7
Claude Opus 4.7 leads, 40.7 against 20.7.
Same board, both measured
Agentic work
AA Agentic Index
Claude Opus 4.7
Claude Opus 4.7 leads, 38.6 against 16.0.
Same board, both measured
Reasoning
GPQA Diamond
Claude Opus 4.7
Claude Opus 4.7 leads, 90.2% against 77.5%.
Same board, both measured
Math
AIME
Claude Opus 4.7
Claude Opus 4.7 leads, 96.3% against 88.8%.
Same board, both measured
Knowledge
MMLU Pro
Claude Opus 4.7
Claude Opus 4.7 leads, 89.9% against 77.2%.
Same board, both measured
Long documents
Listed context window
Claude Opus 4.7
Claude Opus 4.7 takes 1M tokens against 400K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GPT-5.4 Nano
Claude Opus 4.7 $0.018, GPT-5.4 Nano $0.0008 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
GPT-5.4 Nano
Claude Opus 4.7 $2.95, GPT-5.4 Nano $0.14.
Published attempt cost and pass rate
At a glance
- Coding index
- Claude Opus 4.7 67.5 from 4 benchmarks, GPT-5.4 Nano 44.8 from 2 benchmarks.
- Widest category
- Reasoning, 22.5 points apart on average over 15 shared benchmarks.
- Widest single gap
- ARC-AGI-2: Claude Opus 4.7 75.8% against GPT-5.4 Nano 5.7%, 70.1 points apart on a 0 to 100 scale.
- Output price
- Claude Opus 4.7 $25.00 against GPT-5.4 Nano $1.25 per million output tokens, 20.0x apart.
- Context window
- Claude Opus 4.7 takes 1M tokens, GPT-5.4 Nano 400K.
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.7 | Bars | GPT-5.4 Nano | Ties |
|---|---|---|---|---|
| Coding | 10 | 0 | ||
| Intelligence | 2 | 0 | ||
| Agentic work | 6 | 0 | ||
| Reasoning | 14 | 1 | ||
| Math | 7 | 0 | ||
| Knowledge | 12 | 0 | ||
| General | 30 | 1 | ||
| All shared boards | 81 | 2 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index100
| Benchmark | Claude Opus 4.7 | GPT-5.4 Nano | Leader |
|---|---|---|---|
| LMArena WebDev | 1558 | Not measured | Only Claude Opus 4.7 measured |
| AA Coding Index | 73.6 | 56.1 | Claude Opus 4.7 |
| LiveCodeBench (Vals AI) | 85.1% | 84.0% | Claude Opus 4.7 |
| SWE-bench Verified (Vals AI) | 82.0% | 69.8% | Claude Opus 4.7 |
| Vibe Code Bench (Vals AI) | 71.0% | 26.1% | Claude Opus 4.7 |
| Code migration (Vals AI) | 43.9% | 14.5% | Claude Opus 4.7 |
| ProgramBench (Vals AI) | 0.0% | Not measured | Only Claude Opus 4.7 measured |
| Terminal-Bench 2.1 (Vals AI) | 68.5% | 41.6% | Claude Opus 4.7 |
| SciCode | Not measured | 47.2% | Only GPT-5.4 Nano measured |
| Terminal-Bench Hard (Artificial Analysis run) | 54.5% | 42.4% | Claude Opus 4.7 |
| Terminal-Bench | 80.2% | Not measured | Only Claude Opus 4.7 measured |
| FrontierCode | 38.5% | Not measured | Only Claude Opus 4.7 measured |
| GSO-Bench | 44.1% | Not measured | Only Claude Opus 4.7 measured |
| WeirdML | 76.4% | 49.2% | Claude Opus 4.7 |
| MirrorCode | 31.1% | Not measured | Only Claude Opus 4.7 measured |
| ALE-Bench | Not measured | 1004.5 | Only GPT-5.4 Nano measured |
| LMArena Text: coding | 1519 | 1404 | Claude Opus 4.7 |
| LMArena Text: software and IT | 1516 | 1402 | Claude Opus 4.7 |
| LMArena WebDev: React | 1560 | Not measured | Only Claude Opus 4.7 measured |
| LMArena WebDev: HTML | 1554 | Not measured | Only Claude Opus 4.7 measured |
| LMArena WebDev: from an image | 1577 | Not measured | Only Claude Opus 4.7 measured |
| Neither model has a result on the other 18 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
| Benchmark | Claude Opus 4.7 | GPT-5.4 Nano | Leader |
|---|---|---|---|
| AA Intelligence Index | 40.7 | 20.7 | Claude Opus 4.7 |
| Epoch Capabilities Index | 156.8 | 146.0 | Claude Opus 4.7 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index60
| Benchmark | Claude Opus 4.7 | GPT-5.4 Nano | Leader |
|---|---|---|---|
| AA Agentic Index | 38.6 | 16.0 | Claude Opus 4.7 |
| Finance Agent (Vals AI) | 51.5% | 38.2% | Claude Opus 4.7 |
| Tax Agent Bench (Vals AI) | 23.7% | 5.0% | Claude Opus 4.7 |
| Legal Research Bench (Vals AI) | 38.5% | 6.3% | Claude Opus 4.7 |
| Excel Modeling Benchmark (Vals AI) | 63.7% | 44.8% | Claude Opus 4.7 |
| τ²-Bench Telecom | 88.6% | 76.0% | Claude Opus 4.7 |
| APEX-Agents | 49.2% | Not measured | Only Claude Opus 4.7 measured |
| OSWorld 2.0 | 18.2% | Not measured | Only Claude Opus 4.7 measured |
| PostTrainBench | 28.6% | Not measured | Only Claude Opus 4.7 measured |
| Vending-Bench 2 | $10,937 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Search | 1230 | Not measured | Only Claude Opus 4.7 measured |
| Neither model has a result on the other 30 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index141
| Benchmark | Claude Opus 4.7 | GPT-5.4 Nano | Leader |
|---|---|---|---|
| GPQA Diamond | 90.2% | 77.5% | Claude Opus 4.7 |
| MMMU Pro (Vals AI) | 85.5% | 73.6% | Claude Opus 4.7 |
| GPQA Diamond (Artificial Analysis run) | 91.4% | 81.7% | Claude Opus 4.7 |
| Humanity's Last Exam (Artificial Analysis run) | 42.3% | 28.3% | Claude Opus 4.7 |
| GPQA Diamond (Epoch AI run) | 90.2% | 78.5% | Claude Opus 4.7 |
| ARC-AGI | 93.5% | 51.5% | Claude Opus 4.7 |
| ARC-AGI-2 | 75.8% | 5.7% | Claude Opus 4.7 |
| SimpleBench | 61.7% | Not measured | Only Claude Opus 4.7 measured |
| Chess puzzles | 41.0% | 45.0% | GPT-5.4 Nano |
| Mystery game puzzles | 28.0% | 9.0% | Claude Opus 4.7 |
| EBR-bench | 19.0% | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: hard prompts | 1506 | 1381 | Claude Opus 4.7 |
| LMArena Text: expert | 1521 | 1396 | Claude Opus 4.7 |
| LMArena Text: hard prompts in English | 1508 | 1387 | Claude Opus 4.7 |
| LMArena Vision: diagrams | 1336 | 1210 | Claude Opus 4.7 |
| LMArena Vision: homework | 1337 | 1225 | Claude Opus 4.7 |
| Kagi LLM Benchmark | 80.7% | 39.7% | Claude Opus 4.7 |
| Neither model has a result on the other 5 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index70
| Benchmark | Claude Opus 4.7 | GPT-5.4 Nano | Leader |
|---|---|---|---|
| AIME | 96.3% | 88.8% | Claude Opus 4.7 |
| OTIS Mock AIME | 97.8% | 87.8% | Claude Opus 4.7 |
| FrontierMath, tiers 1 to 3 | 70.2% | 44.9% | Claude Opus 4.7 |
| FrontierMath, tier 4 | 31.7% | 12.2% | Claude Opus 4.7 |
| ProofBench | 54.0% | 5.0% | Claude Opus 4.7 |
| LMArena Text: math | 1498 | 1405 | Claude Opus 4.7 |
| LMArena Text: mathematical work | 1509 | 1409 | Claude Opus 4.7 |
| Neither model has a result on the other 6 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index120
| Benchmark | Claude Opus 4.7 | GPT-5.4 Nano | Leader |
|---|---|---|---|
| MMLU Pro | 89.9% | 77.2% | Claude Opus 4.7 |
| LegalBench (Vals AI) | 85.3% | 77.9% | Claude Opus 4.7 |
| CaseLaw (Vals AI) | 68.4% | 51.9% | Claude Opus 4.7 |
| CorpFin (Vals AI) | 66.1% | 61.2% | Claude Opus 4.7 |
| TaxEval (Vals AI) | 75.3% | 67.4% | Claude Opus 4.7 |
| MortgageTax (Vals AI) | 70.3% | 59.1% | Claude Opus 4.7 |
| MedCode (Vals AI) | 54.9% | 41.0% | Claude Opus 4.7 |
| SimpleQA Verified | 51.7% | 11.7% | Claude Opus 4.7 |
| LMArena Text: science | 1508 | 1374 | Claude Opus 4.7 |
| LMArena Text: medicine and healthcare | 1495 | 1369 | Claude Opus 4.7 |
| LMArena Text: legal and government | 1504 | 1368 | Claude Opus 4.7 |
| LMArena Text: business and finance | 1490 | 1366 | Claude Opus 4.7 |
| FACTS Benchmark Suite | 45.5% | Not measured | Only Claude Opus 4.7 measured |
| Neither model has a result on the other 5 boards here | |||
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Claude Opus 4.7 | GPT-5.4 Nano | Leader |
|---|---|---|---|
| Neither model has a result on 9 boards here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index301
| Benchmark | Claude Opus 4.7 | GPT-5.4 Nano | Leader |
|---|---|---|---|
| SAGE (Vals AI) | 56.1% | 38.1% | Claude Opus 4.7 |
| MedScribe (Vals AI) | 83.0% | 77.1% | Claude Opus 4.7 |
| Vals Multimodal Index | 67.4% | 47.6% | Claude Opus 4.7 |
| IFBench | 58.6% | 75.9% | GPT-5.4 Nano |
| Long context reasoning (AA-LCR) | 78.7% | 76.7% | Claude Opus 4.7 |
| DTBench | 94.7% | 80.3% | Claude Opus 4.7 |
| LMCA | 52.2% | 36.9% | Claude Opus 4.7 |
| Furniture assembly | 33.3% | Not measured | Only Claude Opus 4.7 measured |
| ExploitBench | 26.5% | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text | 1490 | 1372 | Claude Opus 4.7 |
| LMArena Text: instruction following | 1498 | 1362 | Claude Opus 4.7 |
| LMArena Text: creative writing | 1486 | 1315 | Claude Opus 4.7 |
| LMArena Vision | 1317 | 1196 | Claude Opus 4.7 |
| LMArena Text: English | 1496 | 1381 | Claude Opus 4.7 |
| LMArena Text: non-English | 1480 | 1359 | Claude Opus 4.7 |
| LMArena Text: Chinese | 1531 | 1391 | Claude Opus 4.7 |
| LMArena Text: German | 1495 | 1368 | Claude Opus 4.7 |
| LMArena Text: Japanese | 1474 | 1343 | Claude Opus 4.7 |
| LMArena Text: Korean | 1464 | 1321 | Claude Opus 4.7 |
| LMArena Text: French | 1503 | 1395 | Claude Opus 4.7 |
| LMArena Text: Spanish | 1494 | 1371 | Claude Opus 4.7 |
| LMArena Text: Russian | 1494 | 1363 | Claude Opus 4.7 |
| LMArena Text: Polish | 1489 | 1366 | Claude Opus 4.7 |
| LMArena Text: multi-turn | 1505 | 1382 | Claude Opus 4.7 |
| LMArena Text: longer queries | 1505 | 1365 | Claude Opus 4.7 |
| LMArena Text: writing and language | 1492 | 1338 | Claude Opus 4.7 |
| LMArena Text: entertainment and media | 1474 | 1325 | Claude Opus 4.7 |
| LMArena Vision: English | 1322 | 1202 | Claude Opus 4.7 |
| LMArena Vision: Chinese | 1371 | 1232 | Claude Opus 4.7 |
| LMArena Vision: reading text | 1327 | 1204 | Claude Opus 4.7 |
| LMArena Vision: humor | 1309 | 1161 | Claude Opus 4.7 |
| LMArena Vision: recognizing things | 1278 | 1141 | Claude Opus 4.7 |
| LMArena Vision: creative writing | 1326 | 1159 | Claude Opus 4.7 |
| LMArena Document | 1495 | Not measured | Only Claude Opus 4.7 measured |
| Neither model has a result on the other 12 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Claude Opus 4.7 | GPT-5.4 Nano | 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
GPT-5.4 Nano costs less
Repository review
50K input + 3K output tokens
GPT-5.4 Nano costs less
Agent loop
200K input + 10K output tokens
GPT-5.4 Nano 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.7 | OpenAI GPT-5.4 Nano |
|---|---|---|
| Maker | Anthropic | OpenAI |
| Weights | No public weights listed | No public weights listed |
| Released | April 16, 2026 | March 17, 2026 |
| Context window | 1M | 400K |
| Input $/Mtok | $5.00 | $0.20 |
| Output $/Mtok | $25.00 | $1.25 |
| Coding index | 67.5 | 44.8 |
| Independent measurements behind it | 4 | 2 |
| Cost per solved task | $2.95 | $0.14 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Opus 4.7 better than GPT-5.4 Nano for coding?
Pick Claude Opus 4.7 for coding: it scores 67.5 on the Vibe Coding Index against 44.8 for GPT-5.4 Nano. Pick GPT-5.4 Nano for output tokens 20.0x cheaper ($1.25 vs $25.00 per million) and a lower cost per solved task ($0.14 against $2.95).
Which is cheaper, Claude Opus 4.7 or GPT-5.4 Nano?
Claude Opus 4.7 costs $5.00 per million input tokens and $25.00 per million output tokens; GPT-5.4 Nano costs $0.20 and $1.25. Per solved SWE-bench Verified task, Claude Opus 4.7 costs $2.95 and GPT-5.4 Nano $0.14.
Which has the bigger context window, Claude Opus 4.7 or GPT-5.4 Nano?
Claude Opus 4.7, with 1M tokens against 400K.
How many benchmarks is the Claude Opus 4.7 vs GPT-5.4 Nano comparison based on?
83 benchmarks have a result for both models as of October 22, 2026. Claude Opus 4.7's coding index rests on 4 independent benchmarks and GPT-5.4 Nano's on 2. Where only one model has a result, the page says so instead of naming a winner.