Anthropic: Claude Opus 4.8

Claude Opus 4.8 is Anthropic's flagship Opus-family model, released 2026-05, built for long-horizon agentic work and memory-driven tasks where coherence over extended sessions matters. It is particularly strong on multi-step reasoning, complex coding, and end-to-end project orchestration across large codebases and asynchronous agent pipelines. It also handles knowledge work like drafting documents, building presentations, and analyzing data with consistent quality over long outputs.

Modalities
inTextinImageinFileoutText
Price / 1M−70%
$1.50 / $7.50$5.00 / $25.00
Context
1M
Released
May 27, 2026

Channels

Every channel serves the same model, but they differ in price and stability. On each API key in the Platform, you pick a primary and a backup channel per vendor, and each billing line shows which channel served the request.

Provider
Discount
Input /M
Output /M
Cache read /M
Cache write 5m /M
Cache write 1h /M
Code_maxcheap
−70%
$1.50
$7.50
$0.15
$1.88
$3.00
Defaultstable
−10%
$4.50
$22.50
$0.45
$5.63
$9.00

Context pricing

This model’s price depends on how much input context a request carries. The headline price is the cheapest band, and a longer prompt moves the whole request into a higher one.

Input context
Input /M
Output /M
Cache read /M
Cache write /M
Cache write 1h /M
Code_maxcheap
standardBase
$1.50
$7.50
$0.15
$1.88
$3.00
Defaultstable
standardBase
$4.50
$22.50
$0.45
$5.63
$9.00

Capabilities

ReasoningVisionTool useLong contextPrompt cachingStructured output

Parameters

Request parameters this model accepts through the API.

include_reasoningmax_completion_tokensmax_tokensreasoningreasoning_effortresponse_formatstopstructured_outputstool_choicetoolsverbosity

Cost calculator

Pick a channel and a usage scenario, then drag the sliders to match your workload. Each scenario assumes a different prompt-cache hit rate.

Channel
Scenario
Unit $1.50 / $7.50 /1MDaily chat: 40% cache hit rate assumed · cache read $0.15 /1M
List price $1507.20On MirAPI$452.16/ moYou save $1055.04Create an API key

Benchmarks

bar = score (0–100) · ▏ median

Scores come from vendor reports and public leaderboards, not private evals.

Intelligence Index
General ability
41.8
#18
Coding Index
Code
74.3
#13
Agentic Index
Agentic
41.9
#17
GPQA Diamond
Science QA
89.6
#27
τ-bench (airline)
Agentic tool use
76.9
#15

Showcase

Every chat model gets the same three fixed prompts. Outputs are archived verbatim, so you can copy a prompt and reproduce the result.

Task prompt · identical for all models
Build a single-file HTML page using three.js from a CDN: a low-poly planet with a tilted ring of ~200 orbiting particles, a soft key light plus rim light, slow auto-rotation, and drag-to-orbit controls. No build tools — one file only.
Archived output
Archive not published yet

Every model will run this exact prompt, and its output will appear here verbatim with token counts and the cost per run.

Quick start

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.mirapi.ai/v1",   # changed
    api_key=os.environ["MIRAPI_API_KEY"],   # changed
)

resp = client.chat.completions.create(
    model="claude-opus-4-8",
    messages=[{"role": "user", "content": "Hello"}],
)
Wire Claude Opus 4.8 into your product

1M free tokens to start, no card required. It’s OpenAI-compatible, so you only change the base URL.

Start free