Claude Opus 5

anthropic/claude-opus-5

For complex agentic coding and enterprise work.

Claude Opus 5 is Anthropic's flagship model for complex agentic coding and enterprise work — a step change over Opus 4.8 on deep reasoning, long-horizon autonomy and test-time compute scaling, at the same price. Thinking is on by default and the full effort ladder runs from low through max, so you tune depth per request rather than per model. It holds a 1M-token context window and writes up to 128K tokens in a single response.

  • ModalitiesText + Imageout: Text
  • Price$5 / $25per 1M in / out
  • Context1M128K max output
  • ReleasedNot publishedcutoff May 2026

Providers

Every routable endpoint for this model, with the rates the gateway bills against. One endpoint today, so there is no routing decision to make — when there is more than one, the router picks between them on price, health and latency.

ProviderInput / MOutput / MCache read / MLatencyThroughputUptime
Anthropic · Messages APIclaude-opus-5 · global$5$25$0.50780ms62 tok/s99.94%
Latency, throughput and uptime are sample data. Prices are Anthropic's published figures.

Effective Pricing Computed

What input tokens actually cost once prompt caching is working. This is arithmetic over Anthropic's published prices, not a measurement — cached input bills at $0.50 per million instead of $5, so the blended rate falls as more of your prefix is reused: list × (1 − hit) + cache read × hit.

Chart requires JavaScript. The figures are in the table below.

  • Blended input rate
  • List price, no caching
Computed from list prices — not a measurement. Output tokens are unaffected by caching and always bill at list price.
View as table
Blended input price for Claude Opus 5 by cache hit ratio
Cache hit ratio0%25%50%75%90%
Blended input rate$5$3.88$2.75$1.63$0.95
List price, no caching$5$5$5$5$5
Cache hit ratioBlended input / MSaving1M in + 1M out
0%$5$30
25%$3.8822%$28.88
50%$2.7545%$27.75
75%$1.6368%$26.63
90%$0.9581%$25.95
Writing to the cache costs more than a plain read the first time: $6.25 per million for a five-minute prefix and $10 for a one-hour one. That is a one-off per prefix, so it is excluded from the steady-state rates above. Prefixes under 512 tokens never cache.

Performance Sample data

Throughput, round-trip latency and time to first token. Nothing here has been measured — there are no probes running and no traffic to learn from yet, so these are placeholders showing what the hydration layer will fill in.

  • 62tokens / secondoutput, median
  • 780mstime to first tokenmedian
  • 780msp50 latencyend to end
  • 2400msp99 latencyend to end

Throughput across Anthropic

Sample data — illustrative ordering, not a benchmark.

Uptime Sample data

Share of requests that completed without an upstream error, over a rolling 30-day window. Sample data — the gateway has not made enough requests to have an opinion.

  • 99.94%success raterolling 30d
  • 0.06%error raterolling 30d

Uptime across Anthropic

Sample data. Bars start at 99.45% so the differences are visible — they are all within a fraction of a percent.

Apps Sample data

How many distinct applications sent traffic to this model each week. We deliberately do not list app names: the per-app breakdown arrives with label passthrough on the event stream, and inventing customer names to fill the gap would be worse than an empty section.

  • 29 Jun 2026774 apps
  • 6 Jul 2026845 apps
  • 13 Jul 2026910 apps
  • 20 Jul 2026980 apps
Sample data.

Activity Sample data

Token volume and request traffic over the trailing four weeks, rolled up from the event stream. Sample data until the stream has something real in it.

Chart requires JavaScript. The figures are in the table below.

Sample data. The final bar is hatched because that day is still in progress.
View as table
Daily tokens processed by Claude Opus 5
Metric26 Apr27 Apr28 Apr29 Apr30 Apr1 May2 May3 May4 May5 May6 May7 May8 May9 May10 May11 May12 May13 May14 May15 May16 May17 May18 May19 May20 May21 May22 May23 May24 May25 May26 May27 May28 May29 May30 May31 May1 Jun2 Jun3 Jun4 Jun5 Jun6 Jun7 Jun8 Jun9 Jun10 Jun11 Jun12 Jun13 Jun14 Jun15 Jun16 Jun17 Jun18 Jun19 Jun20 Jun21 Jun22 Jun23 Jun24 Jun25 Jun26 Jun27 Jun28 Jun29 Jun30 Jun1 Jul2 Jul3 Jul4 Jul5 Jul6 Jul7 Jul8 Jul9 Jul10 Jul11 Jul12 Jul13 Jul14 Jul15 Jul16 Jul17 Jul18 Jul19 Jul20 Jul21 Jul22 Jul23 Jul24 Jul
Tokens197M248M223M220M243M277M214M209M263M237M234M259M294M227M221M278M251M248M275M312M240M234M293M264M262M290M330M253M246M308M278M276M306M347M267M258M323M292M290M322M365M280M270M338M305M305M338M383M293M282M352M319M319M355M401M306M294M367M332M333M371M419M319M306M382M346M347M387M437M332M318M396M359M362M403M455M345M330M411M373M376M420M473M358M342M425M386M390M436M187M
WeekTokensRequestsApps
20 Jul 20263.15B2.4M980
13 Jul 20262.72B2.1M910
6 Jul 20262.38B1.8M845
29 Jun 20262.05B1.6M774

Call it

Standard OpenAI client, one changed line. Streaming is the default path — non-streaming is just collecting the stream.

example.ts
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.aigate.dev/v1",
  apiKey: process.env.AIGATE_API_KEY,
});

const stream = await client.chat.completions.create({
  model: "anthropic/claude-opus-5",
  messages: [{ role: "user", content: "Hello" }],
  stream: true,
});

for await (const chunk of stream) {
  process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}

Capabilities

  • Streaming
  • Tool use
  • Vision
  • High-res vision
  • PDF input
  • Citations
  • Structured outputs
  • Adaptive thinking
  • Effort control
  • Task budgets
  • Fast mode
  • Prompt caching
  • Compaction
  • Batch API
  • 1M context

Accepted parameters

  • max_tokens
  • stream
  • stop_sequences
  • system
  • tools
  • tool_choice
  • thinking
  • effort
  • output_config.format
  • speed

Specification

Model ID
anthropic/claude-opus-5
Upstream ID
claude-opus-5
Context window
1,000,000 tokens
Max output
128,000 tokens
API dialect
anthropic — translated for you
Knowledge cutoff
May 2026
Min cacheable prefix
512 tokens
Also available on
claude-api, bedrock, google-cloud

FAQ

What does Claude Opus 5 cost?

$5 per million input tokens and $25 per million output tokens — Anthropic's published list price. AI Gate adds a flat 5% routing fee on top, billed from prepaid credits. Cached input is far cheaper at $0.50 per million tokens.

What is the context window for Claude Opus 5?

1,000,000 tokens of context, with up to 128,000 tokens in a single response. Its knowledge is most reliable through May 2026.

How do I call Claude Opus 5?

Point any OpenAI-compatible client at https://api.aigate.dev/v1 and pass "anthropic/claude-opus-5" as the model string. There is no SDK to install — we translate the request into Anthropic's anthropic dialect on the way out and the response stream back on the way in.

How is prompt caching billed?

Reading from cache costs $0.50 per million tokens, one tenth of the list input price. Writing to a five-minute cache costs $6.25 (1.25× list), and a one-hour cache costs $10 (2× list). Prefixes shorter than 512 tokens will not cache at all.

Which API dialect does Claude Opus 5 speak?

The anthropic dialect. You never write it: the gateway accepts OpenAI-shaped requests and translates them at the edge, streaming byte by byte rather than buffering. Switching to a model on a different dialect means changing the model string and nothing else.

Is Claude Opus 5 being retired?

No retirement date has been announced. Anthropic publishes deprecations ahead of time, and this page tracks that field, so a date will appear here if one is set.

Closest alternatives

By input price. Switch between any of them by changing the model string.