Claude Opus 4.8

anthropic/claude-opus-4.8
Featured
VisionToolsJSONReasoning
by Anthropic · 2026-05-28

Claude Opus 4.8 is Anthropic's most capable generally available model in the Opus family. It supports text, image, and file inputs with text output, with reasoning support and a 1M-token context window. It is suited for highly autonomous agents, long-horizon agentic work, knowledge work, and memory-driven tasks where coherence over extended sessions matters. It is particularly strong on multi-step reasoning, complex coding, and end-to-end project orchestration - large codebases, multi-stage debugging, and long-running asynchronous agent pipelines. Beyond coding, it handles knowledge work such as drafting documents, building presentations, and analyzing data, maintaining quality across very long outputs.

ctx1M tokens
Max output128K
Inputtext + image + file
Outputtext
p50 TTFT1.47 s
INPUT$5.00/ 1M tokens
OUTPUT$25.00/ 1M tokens
p50 TTFT1.47 s7d
p95 TTFT10.00 s7d
TRAFFIC18.7Mtokens / 7d

Code samples

Call from any SDK

OpenAI-compatible — keep the SDK you already use

  • OpenAI SDKhttps://api.orcarouter.ai/v1
  • Anthropic SDKhttps://api.orcarouter.ai
from openai import OpenAI

client = OpenAI(
    base_url="https://api.orcarouter.ai/v1",
    api_key="$ORCAROUTER_API_KEY",
)

response = client.chat.completions.create(
    model="anthropic/claude-opus-4.8",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Supported parameters

  • include_reasoning
  • max_tokens
  • reasoning
  • response_format
  • stop
  • stream
  • structured_outputs
  • temperature
  • tool_choice
  • tools
  • top_k
  • top_p

Pricing

Input / 1M tokens$5.00
Output / 1M tokens$25.00
Cache read / 1M$0.500
Cache write / 1M$6.25
CurrencyUSD

Cost calculator

Tokens / month10MM
Input share70%%
Estimated / month $110 · With prompt caching $94.25

Estimate based on list price

Token & cost estimator

Input tokens: 20Cost per request: $0.0126

Estimate only — actual token counts depend on the provider's tokenizer.

Performance

p50 TTFT
1.47 s
Output speed
85.5 tok/s
p95 TTFT
10.00 s
Error rate
0.09%

Public benchmarks

69.9
AA Coding
Better than 99% of models compared
#1 of 106
73.9
AA Intelligence
Better than 99% of models compared
#1 of 110
67.9
AA Math
Better than 58% of models compared
#34 of 81
GPQA Diamond
61.9 index
Humanity's Last Exam
45.7
IFBench
62.2
Long-Context Recall
67.7
MMLU-Pro
72.9 index
SciCode
53.5
TerminalBench Hard
58.3
τ²-Bench
54.9 index
Source: artificialanalysis.ai

How it compares

Claude Opus 4.8Claude Fable 5Claude Opus 4.7Claude Opus 4.6
Input $/M$5.00$10.00$5.00$5.00
Output $/M$25.00$50.00$25.00$25.00
Context1.0M1.0M1.0M1.0M
Quality10/1010/1010/109/10
Compare side-by-sideCompare side-by-sideCompare side-by-sideCompare side-by-side

FAQ

How much does Anthropic: Claude Opus 4.8 cost on OrcaRouter?
Anthropic: Claude Opus 4.8 is priced at $5.00 per 1M input tokens and $25.00 per 1M output tokens via OrcaRouter. Pricing is pulled live from the routing layer.
What is Anthropic: Claude Opus 4.8's context window?
Anthropic: Claude Opus 4.8 supports a context window of 1M tokens. Use long-context features (RAG, summarisation) up to that limit.
How do I call Anthropic: Claude Opus 4.8 via the OpenAI SDK?
Set OpenAI base_url to https://api.orcarouter.ai/v1, supply your OrcaRouter API key, and pass model="anthropic/claude-opus-4.8" in the chat.completions.create call.
Does OrcaRouter rate-limit Anthropic: Claude Opus 4.8?
Per-model rate limits follow your OrcaRouter plan. Free tiers ship with conservative caps; paid tiers lift them. Check /pricing for current quotas.

Embed this badge

Anthropic: Claude Opus 4.8$5.00/M in1471ms p50via OrcaRouter
HTML <a href="https://www.orcarouter.ai/models/anthropic/claude-opus-4.8" target="_blank"> <img src="https://www.orcarouter.ai/embed/anthropic/claude-opus-4.8.svg" alt="Anthropic: Claude Opus 4.8 on OrcaRouter" /> </a>
Markdown [![Anthropic: Claude Opus 4.8](https://www.orcarouter.ai/embed/anthropic/claude-opus-4.8.svg)](https://www.orcarouter.ai/models/anthropic/claude-opus-4.8)

Model card as data

GET /api/public/models/anthropic/claude-opus-4.8Open
Machine-readable:/llms.txt/llms-full.txt