Claude Opus 4.8 vs GPT-5.4
Claude Opus 4.8 leads GPT-5.4 on coding, 65.0 to 64.4 on the Vibe Coding Index, and GPT-5.4 costs 1.7x less per output token ($15.00 vs $25.00 per million). Updated October 22, 2026; 99 benchmarks have a result for both.
Claude Opus 4.8 or GPT-5.4: which to pick
Claude Opus 4.8 and GPT-5.4 are level for coding, 65.0 against 64.4 on the Vibe Coding Index, so price and context decide.
Pick GPT-5.4 for output tokens 1.7x cheaper ($15.00 vs $25.00 per million) and a lower cost per solved task ($1.02 against $2.17). Pick Claude Opus 4.8 for work measured by LMArena WebDev or AA Coding Index, where it leads.
- Shared results
- 99
- Claude Opus 4.8 only
- 31
- GPT-5.4 only
- 11
- Like-for-like categories
- 8 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
No call
Level: 65.0 against 64.4, inside 2 points.
6 and 3 benchmarks behind the scores
Intelligence
AA Intelligence Index
Claude Opus 4.8
Claude Opus 4.8 leads, 41.8 against 39.0.
Same board, both measured
Agentic work
AA Agentic Index
No call
Only Claude Opus 4.8 has a AA Agentic Index result, 41.9.
Directional only
Reasoning
GPQA Diamond
Claude Opus 4.8
Claude Opus 4.8 leads, 92.4% against 91.7%.
Same board, both measured
Math
AIME
No call
Only GPT-5.4 has a AIME result, 96.7%.
Directional only
Knowledge
MMLU Pro
Claude Opus 4.8
Claude Opus 4.8 leads, 89.6% against 87.5%.
Same board, both measured
Web design
Design Arena: websites
Claude Opus 4.8
Claude Opus 4.8 leads, 1258 against 1198.
Same board, both measured
Long documents
Listed context window
GPT-5.4
GPT-5.4 takes 1.05M tokens against 1M.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GPT-5.4
Claude Opus 4.8 $0.018, GPT-5.4 $0.010 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
GPT-5.4
Claude Opus 4.8 $2.17, GPT-5.4 $1.02.
Published attempt cost and pass rate
At a glance
- Coding index
- Claude Opus 4.8 65.0 from 6 benchmarks, GPT-5.4 64.4 from 3 benchmarks.
- Widest category
- Agentic work, 14.8 points apart on average over 10 shared benchmarks.
- Widest single gap
- Design Arena: agents building full-stack apps: Claude Opus 4.8 1249 against GPT-5.4 1017, 29.0 points apart on a 0 to 100 scale.
- Output price
- Claude Opus 4.8 $25.00 against GPT-5.4 $15.00 per million output tokens, 1.7x apart.
- Context window
- Claude Opus 4.8 takes 1M tokens, GPT-5.4 1.05M.
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.8 | Bars | GPT-5.4 | Ties |
|---|---|---|---|---|
| Coding | 13 | 2 | ||
| Intelligence | 2 | 0 | ||
| Agentic work | 8 | 2 | ||
| Reasoning | 7 | 8 | 1 tie | |
| Math | 5 | 1 | ||
| Knowledge | 7 | 4 | ||
| Web design | 8 | 0 | ||
| General | 14 | 17 | ||
| All shared boards | 64 | 34 | 1 tie |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index132
| Benchmark | Claude Opus 4.8 | GPT-5.4 | Leader |
|---|---|---|---|
| LiveBench coding | 77.3% | Not measured | Only Claude Opus 4.8 measured |
| LMArena WebDev | 1556 | 1464 | Claude Opus 4.8 |
| AA Coding Index | 74.3 | 71.1 | Claude Opus 4.8 |
| LiveCodeBench (Vals AI) | 87.8% | 84.1% | Claude Opus 4.8 |
| SWE-bench Verified (Vals AI) | 88.6% | 78.2% | Claude Opus 4.8 |
| Terminal-Bench 4 (Vals AI) | 23.2% | Not measured | Only Claude Opus 4.8 measured |
| Vibe Code Bench (Vals AI) | 82.7% | 67.4% | Claude Opus 4.8 |
| Code migration (Vals AI) | 47.3% | 35.0% | Claude Opus 4.8 |
| ProgramBench (Vals AI) | 1.0% | 0.5% | Claude Opus 4.8 |
| Terminal-Bench 2.1 (Vals AI) | 71.9% | Not measured | Only Claude Opus 4.8 measured |
| SkillsBench (Vals AI) | 59.2% | 51.7% | Claude Opus 4.8 |
| SciCode | 54.4% | Not measured | Only Claude Opus 4.8 measured |
| Terminal-Bench Hard (Artificial Analysis run) | 58.3% | 57.6% | Claude Opus 4.8 |
| Terminal-Bench | Not measured | 81.8% | Only GPT-5.4 measured |
| FrontierCode | 46.5% | Not measured | Only Claude Opus 4.8 measured |
| GSO-Bench | 47.1% | 31.4% | Claude Opus 4.8 |
| WeirdML | 82.9% | 77.7% | Claude Opus 4.8 |
| MirrorCode | Not measured | 15.6% | Only GPT-5.4 measured |
| ALE-Bench | Not measured | 1607.0 | Only GPT-5.4 measured |
| LMArena Text: coding | 1490 | 1496 | GPT-5.4 |
| LMArena Text: software and IT | 1488 | 1491 | GPT-5.4 |
| LMArena WebDev: React | 1557 | 1454 | Claude Opus 4.8 |
| LMArena WebDev: HTML | 1543 | 1478 | Claude Opus 4.8 |
| LMArena WebDev: from an image | Not measured | 1436 | Only GPT-5.4 measured |
| SciCode | 12.3% | Not measured | Only Claude Opus 4.8 measured |
| Neither model has a result on the other 14 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
| Benchmark | Claude Opus 4.8 | GPT-5.4 | Leader |
|---|---|---|---|
| AA Intelligence Index | 41.8 | 39.0 | Claude Opus 4.8 |
| Epoch Capabilities Index | 159.0 | 157.3 | Claude Opus 4.8 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index82
| Benchmark | Claude Opus 4.8 | GPT-5.4 | Leader |
|---|---|---|---|
| AA Agentic Index | 41.9 | Not measured | Only Claude Opus 4.8 measured |
| Design Arena: agents building web apps | 1233 | 1059 | Claude Opus 4.8 |
| Design Arena: agents building full-stack apps | 1249 | 1017 | Claude Opus 4.8 |
| Design Arena: agents building mobile apps | 1222 | 1087 | Claude Opus 4.8 |
| Design Arena: agents building Android apps | 1233 | 1031 | Claude Opus 4.8 |
| Design Arena: agents building Godot games | 1231 | 1135 | Claude Opus 4.8 |
| Design Arena: agents building games | 1239 | Not measured | Only Claude Opus 4.8 measured |
| Design Arena: HTML slides | 1171 | Not measured | Only Claude Opus 4.8 measured |
| Design Arena: PowerPoint slides | 1202 | Not measured | Only Claude Opus 4.8 measured |
| Design Arena: spreadsheets | 1303 | Not measured | Only Claude Opus 4.8 measured |
| LiveBench research | 81.8% | Not measured | Only Claude Opus 4.8 measured |
| LiveBench browser | 96.0% | Not measured | Only Claude Opus 4.8 measured |
| LiveBench long agentic | 48.3% | Not measured | Only Claude Opus 4.8 measured |
| Finance Agent (Vals AI) | 53.9% | Not measured | Only Claude Opus 4.8 measured |
| Tax Agent Bench (Vals AI) | 30.0% | Not measured | Only Claude Opus 4.8 measured |
| Legal Research Bench (Vals AI) | 43.8% | Not measured | Only Claude Opus 4.8 measured |
| Excel Modeling Benchmark (Vals AI) | 69.4% | Not measured | Only Claude Opus 4.8 measured |
| Terminal-Bench-Science (Vals AI) | 4.3% | Not measured | Only Claude Opus 4.8 measured |
| Time Horizon Index (Vals AI) | 11.8% | Not measured | Only Claude Opus 4.8 measured |
| τ²-Bench Telecom | 94.4% | 87.1% | Claude Opus 4.8 |
| APEX-Agents | 48.9% | 52.4% | GPT-5.4 |
| METR time horizons | Not measured | 74.3% | Only GPT-5.4 measured |
| Remote Labor Index | 8.3% | Not measured | Only Claude Opus 4.8 measured |
| OSWorld 2.0 | 20.6% | Not measured | Only Claude Opus 4.8 measured |
| DeepResearch Bench | 50.2% | 35.1% | Claude Opus 4.8 |
| PostTrainBench | 33.8% | 19.0% | Claude Opus 4.8 |
| Vending-Bench 2 | $5,787 | $6,144 | GPT-5.4 |
| LMArena Search | 1204 | Not measured | Only Claude Opus 4.8 measured |
| Neither model has a result on the other 13 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index78
| Benchmark | Claude Opus 4.8 | GPT-5.4 | Leader |
|---|---|---|---|
| GPQA Diamond | 92.4% | 91.7% | Claude Opus 4.8 |
| LiveBench reasoning | 89.2% | Not measured | Only Claude Opus 4.8 measured |
| MMMU Pro (Vals AI) | 86.6% | 87.5% | GPT-5.4 |
| GPQA Diamond (Artificial Analysis run) | 92.0% | 92.0% | Tie |
| Humanity's Last Exam (Artificial Analysis run) | 48.7% | 43.7% | Claude Opus 4.8 |
| GPQA Diamond (Epoch AI run) | 91.0% | 93.3% | GPT-5.4 |
| ARC-AGI | 92.5% | 93.7% | GPT-5.4 |
| ARC-AGI-2 | 72.1% | 74.0% | GPT-5.4 |
| SimpleBench | 64.8% | Not measured | Only Claude Opus 4.8 measured |
| Chess puzzles | 52.0% | 48.0% | Claude Opus 4.8 |
| Mystery game puzzles | 36.0% | 37.0% | GPT-5.4 |
| EBR-bench | 28.6% | 25.4% | Claude Opus 4.8 |
| LMArena Text: hard prompts | 1482 | 1485 | GPT-5.4 |
| LMArena Text: expert | 1503 | 1507 | GPT-5.4 |
| LMArena Text: hard prompts in English | 1487 | 1479 | Claude Opus 4.8 |
| LMArena Vision: diagrams | 1315 | 1327 | GPT-5.4 |
| LMArena Vision: homework | 1337 | 1336 | Claude Opus 4.8 |
| Kagi LLM Benchmark | 88.8% | 63.8% | Claude Opus 4.8 |
| Neither model has a result on the other 4 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index51
| Benchmark | Claude Opus 4.8 | GPT-5.4 | Leader |
|---|---|---|---|
| AIME | Not measured | 96.7% | Only GPT-5.4 measured |
| OTIS Mock AIME | 98.3% | 97.8% | Claude Opus 4.8 |
| FrontierMath, tiers 1 to 3 | 80.0% | 78.6% | Claude Opus 4.8 |
| FrontierMath, tier 4 | 56.1% | 49.0% | Claude Opus 4.8 |
| ProofBench | 69.0% | 56.0% | Claude Opus 4.8 |
| LMArena Text: math | 1486 | 1488 | GPT-5.4 |
| LMArena Text: mathematical work | 1497 | 1497 | Claude Opus 4.8 |
| Neither model has a result on the other 6 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index74
| Benchmark | Claude Opus 4.8 | GPT-5.4 | Leader |
|---|---|---|---|
| MMLU Pro | 89.6% | 87.5% | Claude Opus 4.8 |
| LegalBench (Vals AI) | 83.6% | 86.0% | GPT-5.4 |
| CaseLaw (Vals AI) | Not measured | 63.8% | Only GPT-5.4 measured |
| CorpFin (Vals AI) | 66.7% | 65.3% | Claude Opus 4.8 |
| TaxEval (Vals AI) | 75.6% | 74.0% | Claude Opus 4.8 |
| MortgageTax (Vals AI) | 69.9% | 68.3% | Claude Opus 4.8 |
| MedQA (Vals AI) | Not measured | 96.1% | Only GPT-5.4 measured |
| MedCode (Vals AI) | 53.2% | 41.3% | Claude Opus 4.8 |
| SimpleQA Verified | 53.0% | 45.1% | Claude Opus 4.8 |
| LMArena Text: science | 1477 | 1479 | GPT-5.4 |
| LMArena Text: medicine and healthcare | 1464 | 1458 | Claude Opus 4.8 |
| LMArena Text: legal and government | 1477 | 1486 | GPT-5.4 |
| LMArena Text: business and finance | 1458 | 1474 | GPT-5.4 |
| FACTS Benchmark Suite | 53.5% | Not measured | Only Claude Opus 4.8 measured |
| Neither model has a result on the other 4 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index80
| Benchmark | Claude Opus 4.8 | GPT-5.4 | Leader |
|---|---|---|---|
| Design Arena: websites | 1258 | 1198 | Claude Opus 4.8 |
| Design Arena: UI components | 1255 | 1212 | Claude Opus 4.8 |
| Design Arena: game dev | 1264 | 1194 | Claude Opus 4.8 |
| Design Arena: data viz | 1240 | 1196 | Claude Opus 4.8 |
| Design Arena: 3D | 1222 | 1065 | Claude Opus 4.8 |
| Design Arena: all code categories | 1255 | 1179 | Claude Opus 4.8 |
| Design Arena: SVG | 1195 | 1141 | Claude Opus 4.8 |
| Design Arena: ASCII art | 1277 | 1188 | Claude Opus 4.8 |
| LiveBench design | 78.8% | Not measured | Only Claude Opus 4.8 measured |
GeneralLike-for-likePublic boards, shown as published, kept out of the index1417
| Benchmark | Claude Opus 4.8 | GPT-5.4 | Leader |
|---|---|---|---|
| LiveBench data analysis | 66.0% | Not measured | Only Claude Opus 4.8 measured |
| Public Benefits Bench (Vals AI) | 68.1% | Not measured | Only Claude Opus 4.8 measured |
| SAGE (Vals AI) | 54.8% | 43.3% | Claude Opus 4.8 |
| MedScribe (Vals AI) | 85.8% | 77.5% | Claude Opus 4.8 |
| Vals Multimodal Index | 70.9% | Not measured | Only Claude Opus 4.8 measured |
| IFBench | 62.2% | 73.9% | GPT-5.4 |
| Long context reasoning (AA-LCR) | 77.7% | 82.0% | GPT-5.4 |
| DTBench | 94.9% | 94.4% | Claude Opus 4.8 |
| LMCA | 57.5% | 52.0% | Claude Opus 4.8 |
| CL-bench | Not measured | 27.9% | Only GPT-5.4 measured |
| Surface Evolver Bench | 87.5% | Not measured | Only Claude Opus 4.8 measured |
| Furniture assembly | 42.5% | 37.5% | Claude Opus 4.8 |
| CL-bench Life | Not measured | 21.7% | Only GPT-5.4 measured |
| LMArena Text | 1461 | 1469 | GPT-5.4 |
| LMArena Text: instruction following | 1476 | 1469 | Claude Opus 4.8 |
| LMArena Text: creative writing | 1454 | 1439 | Claude Opus 4.8 |
| LMArena Vision | 1294 | 1303 | GPT-5.4 |
| LMArena Text: English | 1468 | 1467 | Claude Opus 4.8 |
| LMArena Text: non-English | 1450 | 1465 | GPT-5.4 |
| LMArena Text: Chinese | 1506 | 1520 | GPT-5.4 |
| LMArena Text: German | 1472 | 1472 | GPT-5.4 |
| LMArena Text: Japanese | 1442 | 1485 | GPT-5.4 |
| LMArena Text: Korean | 1431 | 1449 | GPT-5.4 |
| LMArena Text: French | 1481 | 1493 | GPT-5.4 |
| LMArena Text: Spanish | 1465 | 1452 | Claude Opus 4.8 |
| LMArena Text: Russian | 1474 | 1480 | GPT-5.4 |
| LMArena Text: Polish | 1459 | 1472 | GPT-5.4 |
| LMArena Text: multi-turn | 1476 | 1482 | GPT-5.4 |
| LMArena Text: longer queries | 1483 | 1473 | Claude Opus 4.8 |
| LMArena Text: writing and language | 1461 | 1458 | Claude Opus 4.8 |
| LMArena Text: entertainment and media | 1440 | 1438 | Claude Opus 4.8 |
| LMArena Vision: English | 1293 | 1301 | GPT-5.4 |
| LMArena Vision: Chinese | 1346 | 1354 | GPT-5.4 |
| LMArena Vision: reading text | 1303 | 1312 | GPT-5.4 |
| LMArena Vision: humor | 1282 | 1284 | GPT-5.4 |
| LMArena Vision: recognizing things | Not measured | 1251 | Only GPT-5.4 measured |
| LMArena Vision: creative writing | 1301 | 1283 | Claude Opus 4.8 |
| LMArena Document | 1475 | 1471 | Claude Opus 4.8 |
| Neither model has a result on the other 8 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Claude Opus 4.8 | GPT-5.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
GPT-5.4 costs less
Repository review
50K input + 3K output tokens
GPT-5.4 costs less
Agent loop
200K input + 10K output tokens
GPT-5.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.8 | OpenAI GPT-5.4 |
|---|---|---|
| Maker | Anthropic | OpenAI |
| Weights | No public weights listed | No public weights listed |
| Released | May 27, 2026 | March 5, 2026 |
| Context window | 1M | 1.05M |
| Input $/Mtok | $5.00 | $2.50 |
| Output $/Mtok | $25.00 | $15.00 |
| Coding index | 65.0 | 64.4 |
| Independent measurements behind it | 6 | 3 |
| Cost per solved task | $2.17 | $1.02 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Opus 4.8 better than GPT-5.4 for coding?
Claude Opus 4.8 and GPT-5.4 are level for coding, 65.0 against 64.4 on the Vibe Coding Index, so price and context decide. Pick GPT-5.4 for output tokens 1.7x cheaper ($15.00 vs $25.00 per million) and a lower cost per solved task ($1.02 against $2.17). Pick Claude Opus 4.8 for work measured by LMArena WebDev or AA Coding Index, where it leads.
Which is cheaper, Claude Opus 4.8 or GPT-5.4?
Claude Opus 4.8 costs $5.00 per million input tokens and $25.00 per million output tokens; GPT-5.4 costs $2.50 and $15.00. Per solved SWE-bench Verified task, Claude Opus 4.8 costs $2.17 and GPT-5.4 $1.02.
Which has the bigger context window, Claude Opus 4.8 or GPT-5.4?
GPT-5.4, with 1.05M tokens against 1M.
How many benchmarks is the Claude Opus 4.8 vs GPT-5.4 comparison based on?
99 benchmarks have a result for both models as of October 22, 2026. Claude Opus 4.8's coding index rests on 6 independent benchmarks and GPT-5.4's on 3. Where only one model has a result, the page says so instead of naming a winner.