Claude Opus 4.8 is the latest version of Anthropic's top-tier AI model, succeeding Claude Opus 4.7. Rather than a ground-up redesign, it represents a focused, meaningful upgrade — one that compounds on strong foundations with measurable improvements across coding, reasoning, agentic reliability, and what Anthropic calls honesty: the model's willingness to surface uncertainty rather than paper over gaps with confident-sounding approximations.
Multiple engineering teams report that Opus 4.8 is more reliable as an autonomous coding assistant. It asks sharper clarifying questions before making large changes, pushes back when plans seem flawed, and catches more of its own mistakes before they propagate. On CursorBench — a rigorous evaluation from the Cursor team covering full end-to-end development tasks, Opus 4.8 outperformed all prior Opus models at every effort level. Tool calling is more efficient too, completing the same work with fewer intermediate steps.
In complex, multi-step autonomous workflows, Opus 4.8 shows the reliability characteristics that production AI agent deployments depend on. On a Super-Agent benchmark developed by one external partner, it was the only model to complete every case end-to-end, outperforming prior Opus versions and GPT-5.5 at equivalent cost. It's consistently better at carrying context across long sessions and following stylistic or technical direction without drift.
Opus 4.8 is the first model to surpass 10% on the all-pass standard of the Legal Agent Benchmark — a significant threshold in an industry where accuracy errors carry real professional consequences. Multiple legal AI platforms report that the improvement in consistency and reasoning quality translates directly into confidence about which attorney tasks can be delegated to AI-assisted workflows.
With an 84% score on Online-Mind2Web, Opus 4.8 ranks as the strongest computer-use and browser-agent model tested by any external team at launch. It maintains focus across long, complex web-based tasks in ways that directly benefit real-world automation pipelines.
For financial document workflows, processing dense filings, earnings reports, and structured data, Opus 4.8 maintains the quality of Opus 4.7 while improving citation precision, reducing token consumption on retrieval tasks, and proactively flagging anomalies in inputs and outputs that other models left for human reviewers to catch.
The Messages API now accepts system entries inside the messages array, not just at the top level. Developers can update Claude's instructions mid-task — changing permissions, token budgets, or environmental context — without breaking the prompt cache or routing the update through a user turn. This makes it substantially easier to build sophisticated, adaptive agent harnesses.
Opus 4.8 is Anthropic's flagship model, positioned for work where quality is the primary constraint and cost is secondary. It's the right choice when you're building production-grade AI agents, handling high-stakes professional knowledge work, or need a model that can sustain coherent context and judgment across very long sessions.
On agentic benchmarks, Opus 4.8 outperforms GPT-5.5 in specific evaluations: one external partner's Super-Agent benchmark showed Opus 4.8 completing every case that GPT-5.5 could not, at cost parity. On computer use (Online-Mind2Web), Opus 4.8's 84% score beats GPT-5.5's reported result on the same evaluation. Comparative performance varies by task type; users with specific workloads should run their own evaluations.
The headline improvements are better honesty (Opus 4.8 flags uncertainties and code flaws at a significantly higher rate), improved judgment in autonomous tasks, more efficient tool calling, and better alignment scores. Verbose comment generation and tool-calling inconsistencies reported with Opus 4.7 are addressed in this release.
Dynamic workflows let Claude plan a large software task and then execute it by spinning up hundreds of parallel subagents within a single Claude Code session. It verifies its outputs before surfacing results. It's currently in research preview and available on Enterprise, Team, and Max plans.
Opus 4.8 can reason over PDFs, diagrams, charts, and other unstructured visual content. For document-heavy workflows, it delivers this at a 61% lower token cost compared to Opus 4.7, according to one enterprise data platform's internal benchmarks.
Measured on the AI/ML API gateway across live traffic. Figures are medians unless stated. Last updated 2026-10-12.
Claude Opus 5 is documented as suited to scientific research, particularly where deeper reasoning is helpful. It is also described as a strong fit for secure coding, including scanning source code for vulnerabilities, triaging security issues, and building secure code.
For professional and enterprise work, it is suited to complex analysis of long, document-heavy inputs, especially tasks that require higher accuracy and structured reasoning. It is also documented for agentic workflow automation, where it can break complex jobs into sub-agents and handle multi-step work with less oversight.
import requests
r = requests.post(
"https://api.aimlapi.com/v1/chat/completions",
headers={"Authorization": "Bearer " + AIMLAPI_KEY},
json={
"model": "anthropic/claude-opus-5",
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
},
)
print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "anthropic/claude-opus-5",
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
}),
});
console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/chat/completions \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"anthropic/claude-opus-5","messages":[{"role":"user","content":"Hello!"}]}'
OpenAI-compatible — swap the base URL and it works with your existing SDK.
| Type | Price |
|---|---|
| Input | |
| Output | |
| Cached input |
The full 1M context window is included at standard pricing. Free credits on signup.
| Benchmark | Score | What it measures | Source | Retrieved |
|---|---|---|---|---|
| Intelligence | 50.7 | Composite score across standardised reasoning, knowledge and problem-solving evaluations, measured independently by Artificial Analysis | Source | September 12, 2026 |
| Coding | 78 | Composite score across standardised coding evaluations, measured independently by Artificial Analysis | Source | September 12, 2026 |
| Model | Input | Output | Context | Best for |
|---|---|---|---|---|
Claude Opus 5 This page | Complex agentic coding and enterprise workflows | |||
| Reasoning + agents | ||||
| Balanced coding + agents | ||||
| Long-context, multimodal & agentic workflows | ||||
| Reasoning + agents | ||||
| Reasoning + agents |
Claude Opus 5 has a 1,000,000 tokens context window and can return up to 128,000 tokens.
Claude Opus 5 takes text as input and returns text.
Use anthropic/claude-opus-5 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
Claude Opus 5 became available on July 24, 2026.
Claude Opus 5 is priced at input $6.5 / 1M tokens, output $32.5 / 1M tokens, cached input $0.65 / 1M tokens.
Yes, Claude Opus 5 can stream responses as they are generated.
Yes, Claude Opus 5 accepts image input alongside text.
Claude Opus 5 was built by Anthropic.