LiteLLMModels

Claude Opus 4.8 API Pricing

As of October 10, 2026, Claude Opus 4.8 costs $5.00 per 1M input tokens and $25.00 per 1M output tokens on Anthropic, with cache reads at $0.50 and cache writes at $6.25 per 1M tokens. It has a 1,000,000-token context window and returns up to 128,000 tokens per response.

By AnthropicModel ID claude-opus-4-8Prices updated Checked
Input
$5.00 / 1M tokens
Output
$25.00 / 1M tokens
Cache read
$0.50 / 1M tokens
Context window
1,000,000 tokens
Max output
128,000 tokens
Providers
8
Added to LiteLLM
June 2026

Claude Opus 4.8 pricing by provider

18 listings across 8 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

ProviderModel name in LiteLLMInputOutputCache readCache writeBatch inBatch outContext
Anthropicclaude-opus-4-8$5.00$25.00$0.50$6.25$2.50$12.501M
Amazon Bedrockanthropic.claude-opus-4-8$5.00$25.00$0.50$6.25––1M
Azure AI Foundryazure_ai/claude-opus-4-8$5.00$25.00$0.50$6.25––1M
Databricksdatabricks/databricks-claude-opus-4-8$5.00$25.00$0.50$6.25––1M
DeepInfradeepinfra/anthropic/claude-opus-4-8$5.00$25.00––––1M
GitHub Copilotgithub_copilot/claude-opus-4.8––––––200K
Google Vertex AIvertex_ai/claude-opus-4-8$5.00$25.00$0.50$6.25$2.50$12.501M
Google Vertex AIvertex_ai/claude-opus-4-8@default$5.00$25.00$0.50$6.25$2.50$12.501M
Perplexityperplexity/anthropic/claude-opus-4-8$5.00$25.00$0.50––––
Amazon BedrockAPAC cross-regionapac.anthropic.claude-opus-4-8$5.50$27.50$0.55$6.875––1M
Amazon BedrockAustralia cross-regionau.anthropic.claude-opus-4-8$5.50$27.50$0.55$6.875––1M
Amazon Bedrockus-gov-east-1bedrock/us-gov-east-1/anthropic.claude-opus-4-8$6.00$30.00$0.60$7.50––1M
Amazon Bedrockus-gov-west-1bedrock/us-gov-west-1/anthropic.claude-opus-4-8$6.00$30.00$0.60$7.50––1M
Amazon BedrockEU cross-regioneu.anthropic.claude-opus-4-8$5.50$27.50$0.55$6.875––1M
Amazon BedrockGlobal cross-regionglobal.anthropic.claude-opus-4-8$5.00$25.00$0.50$6.25––1M
Amazon BedrockJapan cross-regionjp.anthropic.claude-opus-4-8$5.50$27.50$0.55$6.875––1M
Amazon BedrockUS GovCloud cross-regionus-gov.anthropic.claude-opus-4-8$6.00$30.00$0.60$7.50––1M
Amazon BedrockUS cross-regionus.anthropic.claude-opus-4-8$5.50$27.50$0.55$6.875––1M

Other Claude Opus 4.8 prices on Anthropic

Cache write, 1 hour$10.00 per 1M tokens
Web search$10.00 per 1K searches

What Claude Opus 4.8 costs in practice

1,000 requests with 2,000 input and 500 output tokens each

Anthropic$22.50
Amazon Bedrock$22.50
Azure AI Foundry$22.50
DeepInfra$22.50
Anthropic batch$11.25

100 long-document requests with 100,000 input and 2,000 output tokens each

Anthropic$55.00
Amazon Bedrock$55.00
Azure AI Foundry$55.00
DeepInfra$55.00

Claude Opus 4.8 features

Use Claude Opus 4.8 with LiteLLM

Call Claude Opus 4.8 through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.

Python SDK
from litellm import completion

response = completion(
    model="claude-opus-4-8",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: claude-opus-4-8
    litellm_params:
      model: claude-opus-4-8
      api_key: os.environ/ANTHROPIC_API_KEY
Call the proxy
curl http://0.0.0.0:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-1234" \
  -d '{
    "model": "claude-opus-4-8",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Claude Opus 4.8 FAQ

How much does Claude Opus 4.8 cost?

Claude Opus 4.8 costs $5.00 per 1M input tokens and $25.00 per 1M output tokens on Anthropic, with cache reads at $0.50 and cache writes at $6.25 per 1M tokens. Batch requests cost $2.50 per 1M input tokens and $12.50 per 1M output tokens.

What is the context window of Claude Opus 4.8?

Claude Opus 4.8 has a 1,000,000-token context window and returns up to 128,000 tokens per response.

Which providers offer Claude Opus 4.8?

Claude Opus 4.8 is available from 8 providers through LiteLLM: Anthropic, Amazon Bedrock, Azure AI Foundry, Databricks, DeepInfra, GitHub Copilot, Google Vertex AI and Perplexity. The lowest price is on Anthropic.

How do I call Claude Opus 4.8 with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="claude-opus-4-8", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

What features does Claude Opus 4.8 support?

Claude Opus 4.8 supports function calling, parallel tool calls, structured output, image input, PDF input, reasoning, prompt caching, web search and computer use.

When did LiteLLM add Claude Opus 4.8?

Claude Opus 4.8 was added to LiteLLM's model price file in June 2026.

Sources

Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Provider pricing pages:

LiteLLM docs: Anthropic, Amazon Bedrock, Azure AI Foundry, Databricks, DeepInfra, GitHub Copilot.

Provider pages: Anthropic, Amazon Bedrock, Azure AI Foundry, Databricks, DeepInfra, GitHub Copilot, Google Vertex AI, Perplexity.