Anthropic model API pricing
Anthropic Claude Opus 4.8 API pricing
Direct answer
As of June 27, 2026, Anthropic's Claude Opus 4.8 lists at $5.00 per 1M input tokens and $25.00 per 1M output tokens in the ByteCosts pricing index (A+ confidence, source last checked 2026-06-27), with a 1M-token context window, which is a planning estimate you should verify against the provider source before billing, because output volume, retries, and prompt-cache hit rate move the real Claude Opus 4.8 bill far more than the headline input rate.
Estimate Claude Opus 4.8 monthly cost - Open the calculator with your traffic →
Claude Opus 4.8 price card
List prices per million tokens from the ByteCosts pricing index, graded A+ confidence. Output tokens are the expensive side of almost every bill.
| Price field | Value |
|---|---|
| Input | $5.00 / 1M tokens |
| Output | $25.00 / 1M tokens |
| Cached input (read) | $0.500 / 1M tokens |
| Cache write | $6.25 / 1M tokens |
| Cache write (1h) | $10.00 / 1M tokens |
| Context window | 1M tokens |
Context window and output limits
What Claude Opus 4.8 can hold in a single request, and where ByteCosts stops short of a source-backed claim.
- Context window: 1M tokens of combined input plus output per request.
- Maximum output tokens: not a field in this committed pricing record. ByteCosts only states source-backed numbers, so treat the provider documentation as authoritative for the per-response output cap.
- The large 1M window suits long-document, whole-repository, and multi-turn agent workloads, but long prompts multiply the input-token line, so cache the shared prefix where you can.
What it costs at real workloads
Each row is computed from this record's committed input and output token prices with the ByteCosts cost engine. Assumptions are shown inline.
| Workload | Assumed monthly tokens | Estimated token cost |
|---|---|---|
| Light reference | 1M input + 250K output tokens/month | $11.25 / month |
| Production reference | 10M input + 2.5M output tokens/month | $113 / month |
| Heavy reference | 100M input + 25M output tokens/month | $1,125 / month |
Best-fit workloads for Claude Opus 4.8
Where this price profile is cost-effective, and where it is not, derived from the committed input, output, cache, and context fields.
- Good fit: Repeated-prefix agents and chat with a stable system prompt: cached input reads list at $0.500 per 1M, well below the $5.00 fresh-input rate.
- Good fit: Input-heavy, short-output work (RAG, extraction, classification, reranking pre-filters): output costs about 5.0x input here, so keeping responses tight protects the budget.
- Good fit: Long-context tasks that need the 1M window in one request.
- Not ideal: High-volume long-form generation: output is about 5.0x the input price ($25.00 vs $5.00 per 1M), so verbose or reasoning-heavy responses dominate the invoice.
Claude Opus 4.8 pricing across providers
Claude Opus 4.8 is listed by 2 providers in the ByteCosts index. Per-million-token list prices, lowest input first.
| Provider | Input / 1M | Output / 1M |
|---|---|---|
| Anthropic (this page) | $5.00 | $25.00 |
| Vertex (Anthropic) | $5.00 | $25.00 |
When Claude Opus 4.8 is cost-effective
Claude Opus 4.8 ranks 4 of 8 Anthropic records by combined list price ($30.00 for 1M input plus 1M output tokens). That puts it in the middle third of this provider's committed records.
Cached input reads are listed at $0.500 per 1M tokens, 10% of the fresh input rate, so repeated cached prompts have a lower committed input-token cost than fresh prompts.
The committed context window is 1M; use that as the only long-context signal on this page, not as a quality or latency claim.
Cheaper alternatives
Records with a lower combined input plus output list price than this one. Same-provider and same-model cross-provider records are preferred where available.
| Record | Input / 1M | Output / 1M | Combined / 1M + 1M | Detail page |
|---|---|---|---|---|
| Anthropic Claude Haiku 4.5 | $1.00 | $5.00 | $6.00 | /tools/ai-provider-pricing/anthropic--claude-haiku-4.5 |
| Anthropic Claude Sonnet 4.6 | $3.00 | $15.00 | $18.00 | /tools/ai-provider-pricing/anthropic--claude-sonnet-4.6 |
| Anthropic Claude Sonnet 4.5 | $3.00 | $15.00 | $18.00 | /tools/ai-provider-pricing/anthropic--claude-sonnet-4.5 |
Evidence, freshness, and limitations
ByteCosts grades this Anthropic Claude Opus 4.8 row A+: Read from the provider's official pricing page. The record was first tracked on 2026-05-30 and last checked on 2026-06-27, and the source URL stays attached so you can verify the provider source before a purchasing or architecture decision.
Every number here is a planning estimate, not a quote. Real invoices can differ because taxes, negotiated and volume discounts, minimum commitments, batch and priority tiers, gateway and observability fees, and non-token charges are excluded unless they appear in the committed record. Verify the provider source and quote the last-checked date with any copied figure, because model prices change often.
Hidden costs to watch
Flags attached to this source-backed record. They do not change the list price but they change the effective bill.
- batch only discount
- cache write premium
- speed tier upcharge
Frequently asked questions
How much does Anthropic Claude Opus 4.8 cost per 1M tokens?
Claude Opus 4.8 lists at $5.00 per 1M input tokens and $25.00 per 1M output tokens in the ByteCosts index, with cached input reads at $0.500 per 1M. Output is about 5.0x the input price, so completion length drives the bill. See the price card and cost examples above for current per-workload figures.
Is Claude Opus 4.8 cheaper than the alternatives?
On combined list price, 3 records in the index come in lower than Claude Opus 4.8, listed in the cheaper-alternatives table. Whether one is actually cheaper for you depends on your token mix, cache hit rate, and quality bar, so compare on your real workload in the calculator.
How fresh is this Claude Opus 4.8 price and where is it from?
The price comes from Anthropic's official source, normalized into the ByteCosts pricing index, graded A+ confidence, and last checked 2026-06-27. Prices are list prices and exclude negotiated discounts; verify the provider source before production billing.
Cite this page
Anthropic Claude Opus 4.8 API pricing. ByteCosts. Updated 2026-06-27. https://bytecosts.com/pricing/anthropic/claude-opus-4-8/