Model comparison - Same provider, successor
Claude Opus 4.7 vs Claude Opus 4.8
Claude Opus 4.7 and Claude Opus 4.8 are both Anthropic models. Both list the same first-party API price: $5 per 1M input tokens and $25 per 1M output tokens. Claude Opus 4.7 and Claude Opus 4.8 both have a 1,000,000-token context window, and both return up to 128,000 output tokens per response. Claude Opus 4.7 was released on April 16, 2026 and Claude Opus 4.8 on May 28, 2026. Both are closed-weights models, available only through an API.
Last verified from each provider's pricing page. All sources
Side-by-side specs
| Spec | Claude Opus 4.7 | Claude Opus 4.8 |
|---|---|---|
| Provider | Anthropic | Anthropic |
| Input / 1M tokens | $5 | $5 |
| Output / 1M tokens | $25 | $25 |
| Cache read / 1M | $0.50 | $0.50 |
| Cache write / 1M | $6.25 | $6.25 |
| Batch input / 1M | $2.50 | $2.50 |
| Batch output / 1M | $12.50 | $12.50 |
| Context window | 1,000,000 | 1,000,000 |
| Max output | 128,000 | 128,000 |
| Release date | ||
| Weights | Closed | Closed |
| API model id | claude-opus-4-7 | claude-opus-4-8 |
| AI Gateway id | anthropic/claude-opus-4.7 | anthropic/claude-opus-4.8 |
| Last verified |
Prices in USD per 1M tokens at each provider's standard first-party rate. A dash means the provider does not bill that item separately or no primary page states it.
What each costs in practice
The same three workloads every model page uses, worked from each model's standard list rates. Swap in your own token counts with the math on each model's page.
| Workload | Claude Opus 4.7 | Claude Opus 4.8 |
|---|---|---|
| One agent session1M input tokens and 100K output tokens, no caching. | $7.50 | $7.50 |
| A chat app10,000 requests a day at 2K input and 500 output tokens each. | $225.00$6,750.00 per 30-day month | $225.00$6,750.00 per 30-day month |
| The same session at a 90% cache hit90% of the input is read from the prompt cache. The one-time cache write premium is not included. | $3.45 | $3.45 |
Show the math
Claude Opus 4.7
- One agent sessionInput: 1M x $5 = $5.00Output: 0.1M x $25 = $2.50
- A chat appInput: 20M x $5 = $100.00Output: 5M x $25 = $125.00
- The same session at a 90% cache hitCached input: 0.9M x $0.50 = $0.45Uncached input: 0.1M x $5 = $0.50Output: 0.1M x $25 = $2.50
Claude Opus 4.8
- One agent sessionInput: 1M x $5 = $5.00Output: 0.1M x $25 = $2.50
- A chat appInput: 20M x $5 = $100.00Output: 5M x $25 = $125.00
- The same session at a 90% cache hitCached input: 0.9M x $0.50 = $0.45Uncached input: 0.1M x $5 = $0.50Output: 0.1M x $25 = $2.50
Benchmarks under the same setting
Only boards that list both models under the same run setting appear here, one row per board and setting, with each score exactly as the board shows it. Scores on different boards use different scales and are never combined.
| Board and setting | Claude Opus 4.7 | Claude Opus 4.8 |
|---|---|---|
| ProgramBenchmini-SWE-agent, 200 tasksOfficial leaderboard - programbench.com | 0% resolved (Almost: 4.5%) | 0% resolved (Almost: 16.5%) |
| tau3-Banking (tau-knowledge)tau3-Banking leaderboard, banking_knowledge pass^1; standard submission by Sierra; reasoning effort: max; retrieval config: alltools; user simulator gpt-5.2Official leaderboard - taubench.com | 40.2% | 39.7% |
Model pages
FAQ
How do Claude Opus 4.7 and Claude Opus 4.8 compare on price?
Both list the same first-party API price: $5 per 1M input tokens and $25 per 1M output tokens. For one agent session of 1M input and 100K output tokens with no caching, that is $7.50 on Claude Opus 4.7 and $7.50 on Claude Opus 4.8. Prices are each provider's first-party list rates, verified October 17, 2026 and October 17, 2026.
What are the context windows of Claude Opus 4.7 and Claude Opus 4.8?
Claude Opus 4.7 and Claude Opus 4.8 both have a 1,000,000-token context window, and both return up to 128,000 output tokens per response.
Are Claude Opus 4.7 and Claude Opus 4.8 open weights?
Claude Opus 4.7 is closed-weights and is called through Anthropic's API as claude-opus-4-7. Claude Opus 4.8 is closed-weights and is called through Anthropic's API as claude-opus-4-8.
More comparisons
Sources
Claude Opus 4.7 verified from platform.claude.com; Claude Opus 4.8 verified from platform.claude.com. This page is as current as the older of the two: .
- https://platform.claude.com/docs/en/about-claude/pricing
- https://platform.claude.com/docs/en/models/opus-4-7/overview
- https://platform.claude.com/docs/en/about-claude/models/overview
- https://platform.claude.com/docs/en/release-notes/overview
- https://platform.claude.com/docs/en/about-claude/model-deprecations
- https://platform.claude.com/docs/en/models/opus-4-8/overview
- https://platform.claude.com/docs/en/build-with-claude/fast-mode
Newsletter
Get model price changes as they ship
One email per week. New model releases, price cuts and what they mean for your bill.