Anthropic API
Claude Opus 4.8 API Pricing 2026 — Cost per 1 Million Tokens
Current Claude Opus 4.8 API pricing from Anthropic per 1 million tokens, including input, output and cached-token rates when available.
| Model | Rate | Price / 1M tokens |
|---|---|---|
| Claude Opus 4.8 Previous Opus generation retained for comparison and existing integrations. Previous-generation Opus; Opus 5 is the current upgrade at the same token price. | Input | $5 |
| Claude Opus 4.8 | Output | $25 |
How API token cost is calculated
Multiply the number of tokens by the provider rate, then divide by 1,000,000.
cost = tokens × price per 1M ÷ 1,000,000
Example: 250,000 input tokens at $2 / 1M = $0.50.