Skip to main content

Moderate
anthropic/claude-opus-4.8/chat

Anthropic's Claude Opus 4.8 chat API provides a 1,000,000-token context, 128,000-token output ceiling, vision input, and four reasoning levels for sustained engineering.

Input $4.3322Output $21.661per 1 million tokensCached input $0.4332Cache write $5.4152

Workbench

Claude Opus 4.8

What can Claude Opus 4.8 help with?

Missing the model you need?

AGENTIC VERIFICATION CHAT API

Claude Opus 4.8 API at a glance

Million-token engineering and verification flagship with four reasoning effort tiers.

Context window
1M
1,000,000 tokens for full repositories and logs
Output ceiling
128K
Long design reviews and multi-file patch plans
Reasoning effort
4 tiers
low, medium, high, and max per request

Results

What Claude Opus 4.8 is good at

  • Verification

    Check complex code changes before merge

    Claude Opus 4.8 excels at reviewing cross-service patches, comparing invariants against specs, and explaining exact failure paths across large diffs.

  • Agentic

    Control parallel or step-by-step tool loops

    Pair up to 128 function definitions with parallel_tool_calls and four reasoning tiers to pace long debugging runs reliably.

  • Caching

    Explicit prompt cache metering

    Separate input, cache-read, cache-write, and output rates help multi-turn investigations reuse million-token code snapshots economically.

Before you run it

What to know before you run Claude Opus 4.8

Chat
Claude Opus 4.8 accepts text and image_url parts; audio and video files are not supported on this endpoint.
Chat
Live checks showed Claude Opus 4.8 declines explicit erotica even without a platform filter.

Use cases

What to build with the Claude Opus 4.8 API

  • Audit database migrations and API contracts

    Load SQL migrations, service handlers, and schema tests into Claude Opus 4.8 to flag locking hazards or breaking response fields.

  • Run multi-step refactoring agents

    Keep architectural guidelines in cached system messages while iterating through repository fixes across dozens of tool turns.

Prompts

Claude Opus 4.8 prompt examples you can copy

  • Chat

    Audit a schema migration for downtime risks

    Inspect this PostgreSQL migration and service handler diff. List any lock-escalation or backward-compatibility risks in priority order with a zero-downtime alternative.

    Why it works. Highlights Claude Opus 4.8's strength in high-stakes engineering verification.

    Try this prompt

Pricing

Claude Opus 4.8 API pricing

From $4.33 per million input tokens and $21.66 per million output tokens.

Get started

How to use the Claude Opus 4.8 API in three steps

  1. Step 1

    Match the reasoning level to review risk

    Use low or medium for routine code navigation and step up to high or max when validating concurrency, billing, or security changes.

  2. Step 2

    Raise the output limit for deep audits

    The default 4,096 ceiling is enough for short answers; raise max_tokens when requesting thorough reasoning plus patch listings.

Parameter reference and code samples are in the API and Readme tabs at the top of this page.

FAQ

Claude Opus 4.8 API FAQ

About Claude Opus 4.8

Choose Claude Opus 4.8 when you need careful code verification, million-token repository context, and disciplined multi-step tool execution.

All Claude models13

Related models and next tasks