Anthropic: Claude Opus 4.8

anthropic/claude-opus-4-8

Anthropic Claude Opus 4.8 API pricing

Claude Opus 4.8 costs $2.00 per million input tokens and $10.00 per million output tokens on Oxyy. These are the pay-as-you-go prices after the current 60% discount (Launch Promo; standard price $5.00 input and $25.00 output), and cached input tokens are billed at $0.200 per million. It accepts text and images and returns text, with a 1M-token context window and up to 128K output tokens per response. A cheaper Anthropic option is Claude Opus 5.5 at $1.60 / $8.00 per 1M tokens; for every model and rate, see Claude API pricing.

Previous-generation Opus model with adaptive thinking. Anthropic recommends migrating to Claude Opus 5.
ModalitiesTextImageText
Price$2.00 / $10.00 per 1M tokens in / outAll Claude API pricing
Context1M

Providers

Where this model runs, and what each route costs. Requests are sent to a healthy provider automatically; if one errors, the gateway retries against another serving the same model.

ProviderInput /MOutput /MCache read /MLatencyThroughput
Anthropic$2.00$10.00$0.2006.08s98 tps

Capabilities (18)

StreamingTool callingStructured outputThinkingReasoningSystem promptVisionMultilingualPrompt cachingBatchFast ModeWeb searchWeb FetchCode executionComputer useBrowser UseBash ToolText Editor Tool

Supported parameters (7)

max_tokenseffortspeedinference_geotoolsresponse_formatreasoning_effort

A parameter not listed here may be removed before the request reaches the model. When it is, the request still succeeds and the response names it, with the reason, in provider_specific_fields.dropped_params.

Pricing

What this model costs on Oxyy, pay as you go. "Charged" is the rate a request is billed at; the standard price is shown beside it for reference.

Input price
$2.00
per 1M input tokens · standard price $5.00
Output price
$10.00
per 1M output tokens · standard price $25.00
RateStandard priceChargedUnit
Input$5.00$2.00per 1M input tokens
Output$25.00$10.00per 1M output tokens
Cached input$0.500$0.200per 1M cached input tokens
Cache write (5 min)$6.25$2.50per 1M cache-write tokens, 5-minute
Cache write (1 hour)$10.00$4.00per 1M cache-write tokens, 1-hour

Discount. Charged rates include the current "Launch Promo" discount of 60% on every rate.

UTC

Specifications

Model ID
claude-opus-4-8
Developer
Anthropic
Type
Text
Input
Text and images
Output
Text
Context window
1,000,000 tokens
Max output
128,000 tokens
Tokenizer
Claude
Series
Claude 4.8
Image input
Up to 20 MB each
Endpoint
/v1/chat/completions
Status
Deprecation scheduled for May 28, 2027

Best for

ReasoningCodingAgenticLong context

Quickstart

Call claude-opus-4-8 with a POST to /v1/chat/completions on https://api.oxyy.ai, using your Oxyy API key from the OXYY_API_KEY environment variable. The same key works for every model in the catalog.

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.oxyy.ai/v1",
    api_key=os.environ["OXYY_API_KEY"],
)

response = client.chat.completions.create(
    model="claude-opus-4-8",
    messages=[
        {"role": "user", "content": "Explain unified AI APIs in one sentence."},
    ],
)
print(response.choices[0].message.content)

Performance

Throughput is how fast the model writes (tokens per second — higher is better). Latency is total round-trip time (lower is better). TTFT is time-to-first-token — how long before you see anything appear (lower is better). Throughput and TTFT are measured on streaming requests, which are the only ones with a first-token moment to time.

Throughput
98tok/s
P50, streaming requests
Latency
6.08s
P50, end to end
UTC

Throughput

P99198 tok/s
P95173 tok/s
P5099 tok/s

Latency

P506759ms
P7517.3s
P9536.5s
P9968.6s

Time to first token

P502627ms
P954468ms

Cache hit rate

93.00%
Share of input tokens served from the prompt cache over the window.

Availability

The share of requests to this model that completed successfully over the last 30 days. Requests the caller cancelled, and requests still in flight, are not counted. When an upstream provider errors, the gateway retries against another provider serving the same model, so a single provider incident does not necessarily show up here.

Success rate (30 days)
95.90%
over 3,870 completed requests
Days with traffic
30
of the last 30 days

Days are UTC days. Days with no completed requests are omitted rather than drawn at 100% — no traffic is not evidence of availability.

Activity

Token volume and request traffic to this model over time. Daily totals, UTC.

Prompt233.4M
Reasoning284
Completion (excl. reasoning)1.4M

Prompt tokens measure input size. Reasoning tokens show internal thinking before a response. They are part of the output, so the completion bars show the rest of it and each day’s bar is its total.

Frequently asked questions

What is Claude Opus 4.8?
Previous-generation Opus model with adaptive thinking. Anthropic recommends migrating to Claude Opus 5.
How much does Claude Opus 4.8 cost?
Claude Opus 4.8 costs $2.00 per million input tokens and $10.00 per million output tokens on Oxyy. These are the pay-as-you-go prices after the current 60% discount (Launch Promo; standard price $5.00 input and $25.00 output), and cached input tokens are billed at $0.200 per million. You pay per request, with no subscription.
What is the context length of Claude Opus 4.8?
Claude Opus 4.8 has a context window of 1,000,000 tokens, and can return up to 128,000 tokens in one response.
Does Claude Opus 4.8 support tool calling and structured outputs?
Yes — Claude Opus 4.8 supports both tool calling and structured outputs.
What inputs and outputs does Claude Opus 4.8 support?
Claude Opus 4.8 accepts text and images as input and returns text.
Which API endpoint does Claude Opus 4.8 use?
Send a POST request to https://api.oxyy.ai/v1/chat/completions with "model": "claude-opus-4-8", authenticated with your Oxyy API key. It is also served on /v1/messages (Anthropic SDK) and /v1/responses (Responses API).
What other models does Anthropic have?
Anthropic also offers Claude Fable 5, Claude Fable 5.1, Claude Haiku 4.5 and Claude Haiku 5.5 through Oxyy.

Alternatives to Claude Opus 4.8

Models of the same kind from other vendors, closest in price first. Prices are pay-as-you-go on Oxyy, through the same API key.

Explore more models

More models from Anthropic