AI API PricesAnthropic › Claude Opus 4.8

Claude Opus 4.8 pricing

Claude Opus 4.8 API cost from Anthropic — $5.00 per 1M input tokens and $25.00 per 1M output tokens. Top Opus reasoning/agentic. Estimate your real monthly bill below, then compare it against every other model.

Input price
$5.00
per 1M input tokens
Output price
$25.00
per 1M output tokens
Cached input
$0.500
per 1M · ~90% off input
Reference call
$0.030
1K in + 1K out

Flagship 1M context · all prices USD per 1M tokens, list price last verified 2026-06-27.

Claude Opus 4.8 capabilities & limits

Representative specs for this tier — confirm exact limits in the Anthropic docs.

Context window1M
Max output64K
Knowledge cutoffSep 2025
API formatanthropic
✓ Vision✓ Tools / functions✓ JSON / structured✓ Prompt caching✓ Batch API

API acting up? Check live Anthropic status → · all AI API status

Call Claude Opus 4.8 from your code

The exact model string and endpoint to use. Uses the Anthropic API format.

Model stringclaude-opus-4-8
Base URLhttps://api.anthropic.com/v1
API key envANTHROPIC_API_KEY
curl https://api.anthropic.com/v1/messages \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-opus-4-8",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Hello"}]
  }'

Model strings follow each provider's naming convention; confirm the current id in the Anthropic docs before relying on it.

What a Claude Opus 4.8 API call actually costs

Blended input + output cost at Claude Opus 4.8's list rates — useful yardsticks before you commit to volume.

$0.030
Short call
1K in · 1K out
$0.028
Chat turn
3K in · 500 out
$0.125
RAG / long prompt
20K in · 1K out
$30.00
1M in + 1M out
bulk job

Claude Opus 4.8 cost calculator

Enter your monthly volume to estimate the Claude Opus 4.8 bill. Runs entirely in your browser.

Estimated monthly cost

For the full multi-model breakdown, use the cost calculator.

Anthropic models — Claude Opus 4.8 in context

How Claude Opus 4.8 prices against its siblings. Cheapest reference cost first.

Model Input /1M Output /1M Cost / call* Context Type
Claude Haiku 4.5
Fastest, near-frontier
$1.00 $5.00 $0.0060 200K Fast / cheap
Claude Sonnet 4.6
Best speed/intelligence; caching cuts input ~90%
$3.00 $15.00 $0.018 1M Balanced
Claude Opus 4.8
Top Opus reasoning/agentic
$5.00 $25.00 $0.030 1M Flagship
Claude Fable 5
Most capable widely released
$10.00 $50.00 $0.060 1M Flagship

*Reference cost of one call with 1,000 input + 1,000 output tokens — a neutral yardstick. Use the calculator for your real usage. Cheapest row highlighted.

Cheaper than Claude Opus 4.8? In the same flagship tier, MiniMax-M3 runs $0.300 in / $1.20 out. The overall cheapest model tracked is Gemini 1.5 Flash-8B — see the cheapest LLM API guide.

How Claude Opus 4.8 pricing works

Claude Opus 4.8 is billed per token: a lower input price of $5.00 per million tokens for everything you send, and a higher output price of $25.00 per million for everything the model generates. To turn that into a real Claude Opus 4.8 bill, multiply by your monthly request volume and average prompt/response length — the calculator above does exactly that.

Prompt caching is the biggest lever on your Claude Opus 4.8 cost: cached input tokens bill at just $0.500 per million — about 90% cheaper. If you reuse a long system prompt or context across calls, caching can dramatically cut the input portion of your bill.

List prices move fast — always confirm the current numbers on the official Anthropic pricing page before relying on them for budgeting.

Claude Opus 4.8 pricing FAQ

How much does the Claude Opus 4.8 API cost?

Claude Opus 4.8 costs $5.00 per 1M input tokens and $25.00 per 1M output tokens, with cached input at $0.500 per 1M (about 90% off). A typical 3K-input / 500-output call works out to about $0.028.

What is Claude Opus 4.8's context window?

Claude Opus 4.8 has a 1M-token context window. Tokens you put in the prompt are billed at the $5.00 per 1M input rate.

Does Claude Opus 4.8 support prompt caching?

Yes. Claude Opus 4.8 bills cached input tokens at $0.500 per 1M instead of $5.00 — roughly 90% cheaper for the repeated part of your prompts.

Is there a cheaper alternative to Claude Opus 4.8?

In the same flagship tier, MiniMax-M3 (MiniMax) is cheaper at $0.300 in / $1.20 out. The overall cheapest model on the market is Gemini 1.5 Flash-8B.

Compare Claude Opus 4.8 with other models