Claude Opus 4.8 API
Call Claude Opus 4.8 from Anthropic through Deftrouter's OpenAI-compatible endpoint: one key, the OpenAI SDK you already use, and usage tracked per key. Access is by request.
Top Claude Opus tier for the hardest reasoning, coding, and long-horizon agents.
Specifications
| Provider | Anthropic |
|---|---|
| Model ID | claude-opus-4-8 |
| Context window | 1,000,000 tokens |
| Maximum output | 128,000 tokens |
| Input types | text, image, PDF |
| Reasoning | Yes |
| Tool calling | Yes |
| Structured output | Yes |
| Open weights | No |
| Released | May 28, 2026 |
| Knowledge cutoff | January 2026 |
Claude Opus 4.8 API pricing
These are Anthropic's list prices as of November 30, 2026, in US dollars per 1 million tokens. Deftrouter confirms its own price by email when you request access.
For example, a request with 10,000 input tokens and 1,000 output tokens costs about $0.075 at list price.
Call Claude Opus 4.8 with the OpenAI SDK
Point the OpenAI SDK at Deftrouter and set the model ID. The rest of your code stays the same.
from openai import OpenAI
client = OpenAI(
base_url="https://api.deftrouter.com/v1",
api_key="YOUR_DEFTROUTER_KEY",
)
# Your Deftrouter key, sent to one endpoint for every model.
reply = client.chat.completions.create(
model="claude-opus-4-8",
messages=[{"role": "user", "content": "Hello"}],
) Request Claude Opus 4.8 API access
Access is by request for now. Leave your email and the models you need, and we will email you when your key is ready.
Claude Opus 4.8 API questions
How do I get Claude Opus 4.8 API access?
Request it through Deftrouter: send the form on this page with your email, and we will email you when your key is ready. You then call Claude Opus 4.8 with the OpenAI SDK by changing the base URL and the model ID.
How much does the Claude Opus 4.8 API cost?
Anthropic lists Claude Opus 4.8 at $5.00 per 1 million input tokens and $25.00 per 1 million output tokens as of November 30, 2026. Deftrouter confirms its own price by email when you request access.
What is the context window of Claude Opus 4.8?
Claude Opus 4.8 accepts up to 1,000,000 tokens of context and can return up to 128,000 tokens in a single response.
Does Claude Opus 4.8 support tool calling and image input?
Claude Opus 4.8 supports tool calling. It accepts images as input.
More Anthropic models
| Model | Context window | Input | Output |
|---|---|---|---|
| Claude Fable 5.2 | 1,000,000 | $8.00 | $40.00 |
| Claude Haiku 5.5 | 1,000,000 | $0.10 | $0.50 |
| Claude Sonnet 5.5 | 1,000,000 | $2.00 | $10.00 |
| Claude Opus 5.5 | 1,000,000 | $4.00 | $20.00 |
| Claude Fable 5.1 | 1,000,000 | $10.00 | $50.00 |
| Claude Opus 5 | 1,000,000 | $5.00 | $25.00 |
Model data from models.dev, retrieved November 30, 2026. Limits and prices are set by the provider and can change. models.dev · Anthropic