AI model comparison
Claude Opus 4.8 vs GPT-5.4 Mini
Compare benchmark results, pricing, and API capabilities for each model. Estimate the cost of your own token mix.
Change models
Anthropic
Claude Opus 4.8- Context tokens
- 1M
- Input / 1M
- $5.00
- Output / 1M
- $25.00
OpenAI
GPT-5.4 Mini- Context tokens
- 400K
- Input / 1M
- $0.75
- Output / 1M
- $4.50
Percent score · Result source · Test method
The trade-offs
Start with the differences that affect how this model fits your workload.
- Benchmark results
- Claude Opus 4.8 and GPT-5.4 Mini scored 84.783% and 75.556%, respectively, on Code Completion. Use the test setup below to check whether it matches your workload.
- Token cost
- For 1 million input tokens and 250,000 output tokens, the listed rates estimate $11.25 for Claude Opus 4.8 and $1.875 for GPT-5.4 Mini.
- Context window
- Claude Opus 4.8 lists 1,000,000 tokens of context. GPT-5.4 Mini lists 400,000 tokens. Reserve space for the output before routing long inputs.
Benchmarks
Shared results come from the same published benchmark release. Reasoning effort and serving configuration can differ.
Source Result source · Test method
Code Completion
Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Code Generation
Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Javascript
Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Python
Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Typescript
Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Amps Hard
Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Connections
Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Consecutive Events
Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Show 15 more shared results
Integrals With Game
Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Logic With Navigation
Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Math Comp
Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Olympiad
Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Paraphrase
IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Plot Unscrambling
Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Simplify
IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Spatial
Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Story Generation
IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Summarize
IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Tablejoin
Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Tablereformat
Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Theory Of Mind
Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Typos
Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Zebra Puzzle
Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- Claude Opus 4.8
- claude-opus-4-8-max-effort
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
View individual benchmark records
These model-level records can include other benchmark releases, test configurations, and vendor-reported results.
Claude Opus 4.8
| Benchmark | Score | Configuration | Source model label | Evidence |
|---|---|---|---|---|
| Long Agentic | 48.3% | claude-opus-4.8 · Suite release Oct 14, 2026 · run date unavailable | claude-opus-4.8 | Result source · Test method |
| Reasoning | 89.2% | claude-opus-4.8 · Suite release Oct 14, 2026 · run date unavailable | claude-opus-4.8 | Result source · Test method |
| Coding | 77.3% | claude-opus-4.8 · Suite release Oct 14, 2026 · run date unavailable | claude-opus-4.8 | Result source · Test method |
| Browser | 96% | claude-opus-4.8 · Suite release Oct 14, 2026 · run date unavailable | claude-opus-4.8 | Result source · Test method |
| Data Analysis | 66% | claude-opus-4.8 · Suite release Oct 14, 2026 · run date unavailable | claude-opus-4.8 | Result source · Test method |
| Research | 81.8% | claude-opus-4.8 · Suite release Oct 14, 2026 · run date unavailable | claude-opus-4.8 | Result source · Test method |
| Design | 78.8% | claude-opus-4.8 · Suite release Oct 14, 2026 · run date unavailable | claude-opus-4.8 | Result source · Test method |
GPT-5.4 Mini
No additional benchmark results are available for this model ID.
Pricing and token cost
Listed OpenRouter prices in US dollars. Actual charges depend on the endpoint, tier, cache, and token mix.
| USD per million tokens | Claude Opus 4.8 | GPT-5.4 Mini |
|---|---|---|
| Uncached input | $5.00 | $0.75 |
| Output | $25.00 | $4.50 |
| Cache read | $0.50 | $0.075 |
| Cache write | $6.25 | Unavailable |
Rates are a catalog snapshot. OpenRouter Models API
Estimate your workload
Enter total token counts. The estimate uses uncached input and output rates.
GPT-5.4 Mini costs $9.375 less at this token mix.
Model specifications
Context, output limits, modalities, and supported API parameters from the catalog.
| Specification | Claude Opus 4.8 | GPT-5.4 Mini |
|---|---|---|
| Catalog status | Listed | Listed |
| Catalog model ID | anthropic/claude-opus-4.8 | openai/gpt-5.4-mini |
| Provider | Anthropic | OpenAI |
| Context window | 1,000,000 tokens | 400,000 tokens |
| Max output | 128,000 tokens | 128,000 tokens |
| Input modalities | Text, Image, File | File, Image, Text |
| Output modalities | Text | Text |
| Reasoning controls | Listed | Listed |
| Tool calling | Listed | Listed |
| Structured outputs | Listed | Listed |
| Serving endpoints | /api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses | /api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses |
| Catalog listing date | May 27, 2026 | Mar 17, 2026 |
Use with Weave Router
Set a quality bar on your own coding tasks. Then compare cost per completed task and use the same harness when you change models.
Claude Opus 4.8
Listed in the public Router catalog.
claude-opus-4-8GPT-5.4 Mini
Listed in the public Router catalog.
gpt-5.4-miniCatalog presence does not guarantee availability for a specific plan or account. Public Weave Router catalog · Nov 27, 2026
Sources
Each benchmark links to its own result and test method when available.
- OpenRouter Models API · token rates and catalog specifications
- Weave Router catalog · verified Router model IDs
- Claude Opus 4.8 catalog entry
- GPT-5.4 Mini catalog entry