Claude Opus 4.8 API pricing and benchmark context

Claude Opus 4.8's published scorecard includes 88.6% on SWE-bench Verified, 93.6% on GPQA Diamond, and 96% on HumanEval. At $5/1M input it is priced at the high-end tier, while its $25/1M output rate is below GPT-5.5's dated $30 snapshot. Those benchmarks are useful inputs, not proof that one model wins every production workload.

By benchr Editorial Team · · Provider pricing and benchmark figures rechecked; undocumented latency estimates removed · View changelog

Input / 1MAnthropic · May 2026
Output / 1MAnthropic
SWE-benchAnthropic-reported
Contextmax window

Pricing breakdown

claude-opus-4-8 — official Anthropic pricing
TierRate / 1M tokens
Standard input$5.00
Standard output$25.00
Cached input$0.50
Fast Mode input$10.00
Fast Mode output$50.00
Batch (50% off)$2.50 / $12.50
Context window1,000,000 tokens
Max output128,000 tokens

How to interpret the coding benchmark

Claude Opus 4.8 is reported at 88.6% on SWE-bench Verified. DeepSeek V4-Pro has a separate provider-published 80.6% result, while the checked Google material does not publish a directly comparable SWE-bench Verified figure for Gemini 3.5 Flash and the GPT-5.5 value formerly shown by benchr was unsupported. Those unsupported comparisons have been removed. Even properly sourced point gaps do not establish fewer retries, lower cost, or a higher success rate in your repository.

The same scorecard lists GPQA Diamond at 93.6%, HumanEval at 96%, and MMLU at 93.5%. Treat these as task-specific signals and confirm prompt format, tool use, correctness, and cost on a representative private evaluation set.

The $25 vs $30 output-price comparison

In this dated rate snapshot, Claude Opus 4.8 and GPT-5.5 both list $5/1M input, while Opus output is $25/1M vs $30/1M — 17% lower per output token. Opus has a lower token-only cost only when the compared tasks use the same input and output volumes; different success rates, retries, or response lengths can reverse the per-successful-task result.

Example: with identical 5K input and 20K output token counts, Opus 4.8 totals $0.525 and GPT-5.5 totals $0.625. At 100K such tasks, the arithmetic difference is $10,000. Their separately published benchmark figures do not prove a quality advantage for this workload.

Prompt caching: the 90% discount

Cached input tokens cost $0.50/1M — 90% off the standard $5/1M rate. The cache persists for up to 5 minutes. For agents with large, stable system prompts, caching can materially change cost. A 100K-token system prompt sent 100 times per hour costs $50 without caching; at a 90% cache-hit assumption, the modeled input cost is $9.50. Actual savings depend on eligible tokens, cache writes, expiry, and the hit rate you observe.

Fast Mode: when latency is the constraint

Fast Mode doubles the listed price to $10/1M input and $50/1M output in this snapshot. Anthropic does not publish one universal first-token or tokens-per-second guarantee for every region and request shape, and benchr has no controlled cross-region measurement. The undocumented latency values previously shown in comparisons have been removed. Measure both modes from your deployment region before making a customer-facing routing decision.

When Sonnet is enough

Claude Opus 4.8 can cost materially more than a Sonnet-tier model depending on token mix and caching. A defensible workflow is to evaluate the cheaper eligible model first, identify failure cases, and test whether routing those cases to Opus improves the outcome enough to cover the added cost. The appropriate routing share comes from your own evaluation; benchr does not claim a universal production split.

Use-case fit

Candidate for: difficult automated coding tasks, multi-step agentic pipelines where failures are expensive, and architecture-level reasoning—provided a representative evaluation shows an advantage at acceptable cost.

Compare alternatives if: you need low-cost volume or low latency, or your task does not benefit from the reported benchmark delta. Test current Sonnet, GPT, Gemini, and other eligible options rather than assuming a universal default.

Decision checklist

Before routing production traffic to Opus 4.8, run the same task on Claude Sonnet 4.6 and measure accepted outputs, review effort, retries, latency, and token cost. If Sonnet passes your threshold, it is the lower-priced candidate. Against GPT-5.5, use an output-weighted comparison rather than input price alone.

Check whether your workload benefits from caching. Large, repeated system prompts make Opus 4.8 far cheaper than the headline rate suggests. A 50K-token system prompt with 90% cache hit rate drops effective input cost to approximately $0.95 per million.

Frequently asked

What does the reported 88.6% SWE-bench score tell me?

It records performance on a defined software-engineering benchmark and was high in the June 2026 comparison snapshot used here. It is not proof of current market leadership or of your production success rate. Recheck current leaderboards and run repository-specific tasks with fixed pass criteria before choosing a model.

What is Fast Mode and when does it matter?

Fast Mode uses the higher listed $10/$50 per-million tier and is intended to reduce latency. Anthropic does not publish one universal first-token or tokens-per-second guarantee for every region and request shape, so test standard and Fast Mode from your region before deciding whether the latency change justifies the price.

How does prompt caching work with Claude Opus 4.8?

Cached input tokens cost $0.50/1M — 90% off the $5 standard rate. Cache persists up to 5 minutes. At a 90% hit rate, effective input cost drops to approximately $0.95 per million. Most valuable for agents with large, stable system prompts. For short, stateless calls, caching doesn't help.

Changelog

  • — Removed unsupported cross-provider SWE-bench and latency estimates; retained only source-linked figures.
  • — Labeled the headline benchmark as provider-reported and clarified that token-price arithmetic does not establish quality or cost per successful task.
  • — Removed universal-winner and production-success claims, labeled latency figures as editorial planning estimates, corrected the caching example, and added task-specific evaluation guidance.
  • — Expanded with benchmark analysis, output-price comparison, caching guide, Fast Mode breakdown, and use-case sections.
  • — Published. Pricing verified at anthropic.com/api.

Sources