Claude Opus 4.8

Anthropic's latest Opus model with stronger agentic coding, long-context work, and advanced reasoning capabilities.

Input price
$5.50
Output price
$27.50
Context
1M
Max output
128K
Modalities
InputTextImagePDFOutputText
160 (#15 of 89)
1454
—
Released
2026-05-28
Knowledge cutoff
2026-01
Try in ChatCompare

Providers

Providers that serve this model. With Auto, each request goes to the best available provider. Prices in USD per 1M tokens; stats cover the last 30 days.

Pricing

Prices vary by provider. Showing Anthropic, the lowest. Pick a provider above to see its prices.

ItemStandardfast
Inputper 1M tokens$5.50$11.00
Outputper 1M tokens$27.50$55.00
Cache readper 1M tokens$0.55$1.10
Cache write (5 min)per 1M tokens$6.875$13.75
Cache write (1 hour)per 1M tokens$11.00$22.00
Batch inputper 1M tokens$2.75—
Batch outputper 1M tokens$13.75—
Web searchper request$0.011$0.011

Make a request

Set your provider preferences, then copy the request. It reads your API key from OHMYGPT_API_KEY.

Anthropic Messages supports pinning one provider only. Other preferences work with Chat Completions and Responses.

curl https://api.ohmygpt.com/v1/messages \
  -H "x-api-key: $OHMYGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -H "anthropic-version: 2023-06-01" \
  -d '{
    "model": "anthropic/claude-opus-4-8",
    "max_tokens": 1024,
    "messages": [
      {
        "role": "user",
        "content": "Hello"
      }
    ]
  }'

Similar models

Other models with the same output types at a similar price.

  • Better value: more capable, lower price
  • Pareto frontier
  • This model
  • Similar models

Capability scores are from Epoch AI’s Epoch Capabilities Index (CC BY 4.0, as of 2026-11-02), which combines dozens of benchmarks with GPT-5 set at 150. epoch.ai/eci

Price: our current input price per 1M tokens in USD, lowest across channels. Dated snapshots and resold copies of the same model are merged into one point; free models are not shown.

Shaded area: capability above and price below the median of all models. Pareto frontier: no other model is both cheaper and more capable.

Claude Opus 4.8This model
160
Input
$5.50
Output
$27.50
164
Input
$5.50
Output
$27.50
159
Input
$4.50–$9.00
Output
$27.00–$40.50
—
Input
$4.1756–$4.40
Output
$21.8416–$22.00
129
Input
$3.85
Output
$3.85

Human preference ratings are from the LMArena Text Arena (CC BY 4.0, as of 2026-10-28): Elo ratings from blind votes, on a different scale from capability scores. lmarena.ai/leaderboard/text