Speed
Output tokens / second
Custom pricing for production workloads
Claude 4.8 Opus is Anthropic's most capable model designed for complex reasoning and agentic coding workflows. Features a 1M token context window, adaptive thinking, and top-tier performance across multilingual tasks, long-context handling, and vision.
Sharper reasoning, more honest output, and the best agentic performance the company has shipped.
anthropic/claude-opus-4.8https://api.aimlapi.com/v1Claude 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.
| Benchmark | Focus Area | Opus 4.8 Result |
|---|---|---|
|
Online-Mind2Web
|
Browser agent and computer-use capability | 84% |
|
Legal Agent Benchmark (all-pass)
|
Legal reasoning accuracy and reliability | >10% |
|
CursorBench
|
End-to-end software development workflows | Best-in-class |
|
Super-Agent Benchmark
|
Complex multi-step agentic execution | 100% completion |
|
Code flaw detection
|
Honesty, verification, and error detection | 4× fewer missed flaws |
Claude Opus 4.8 is documented as suited to coding, especially navigating real codebases, planning before editing, and maintaining context across long sessions.
It is also documented as suited to agentic workflows and long-running agents, where it can handle multi-step tool use, complex dependency chains, and extended tasks with less oversight.
Claude Opus 4.8 is documented as suited to professional work and enterprise workflows, including synthesizing long, complex sources into briefs, analyses, reports, and other polished deliverables.
It is additionally documented as suited to financial analysis and cybersecurity, including investment research and earnings analysis, as well as threat intelligence synthesis, vulnerability finding, and incident response.
See how Claude Opus 4.8 compares in generation speed and latency. Data retrieved Nov 4, 2026.
Output tokens / second
Compare 8 models available on AI/ML API across 5 independent benchmarks.
Expert-written questions across academic subjects.
Graduate-level science questions written to resist web search.
Agentic tasks completed in a command-line environment.
Reasoning across long documents of about 100k tokens.
Python coding tasks drawn from scientific research.
| Usage | Price | Unit |
|---|---|---|
| Input | $5 | 1M tokens |
| Output | $25 | 1M tokens |
| Cached input | $0.529 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $5 | $25 | |
| $0.1 | $0.5 | |
| $2 | $10 | |
| $4 | $20 | |
| $10 | $50 |
Give your agent the model details, code and documentation.
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "anthropic/claude-opus-4.8",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "anthropic/claude-opus-4.8",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = 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-4.8",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Claude Opus 4.8 costs $5 input and $25 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Use anthropic/claude-opus-4.8 as the model parameter. Requests go to the OpenAI-compatible endpoint with your AI/ML API key.
Claude Opus 4.8 accepts up to 1,000,000 tokens of context and returns up to 128,000 output tokens.