Claude Opus 4.8 API pricing
Claude Opus 4.8 costs $5.00 per million input tokens and $25.0 per million output tokens on the Anthropic API, and $0.50 per million cached input tokens. Context window: 1M tokens. Updated .
| Price per 1M tokens | US dollars |
|---|---|
| Input | $5.00 |
| Cached input | $0.50 |
| Output | $25.0 |
What it costs in practice
- One chat or extraction call (2,000 tokens in, 500 out): $0.022
- 1,000 such calls: $22.50
- 1 million tokens at a typical 80% input / 20% output mix: $9.00
Abilities: image input, tool use, reasoning, JSON schema output. Batch, long-context, priority and regional prices differ; check the full table and the provider’s own pricing page before you commit.
Cheapest alternatives from other providers
| Model | Input | Output | Context | Typical call ×1,000 |
|---|---|---|---|---|
| GPT-5 nano OpenAI | $0.050 | $0.40 | 272k | $0.30 |
| Gemini 2.5 Flash Lite Google | $0.10 | $0.40 | 1.0M | $0.40 |
| GPT-6 luna OpenAI | $0.10 | $0.50 | 922k | $0.45 |
| Qwen3.8 Flash Alibaba (Qwen) | $0.15 | $0.47 | 992k | $0.54 |
| Qwen3.8 Omni Flash Alibaba (Qwen) | $0.15 | $0.47 | 992k | $0.54 |
| GLM 5.3 Flash Zhipu (GLM) | $0.15 | $0.50 | 1.0M | $0.55 |
Other Anthropic models
| Model | Input | Output | Context | Typical call ×1,000 |
|---|---|---|---|---|
| Claude Haiku 5.5 Anthropic | $0.10 | $0.50 | 1M | $0.45 |
| Claude Haiku 4.5 Anthropic | $1.00 | $5.00 | 200k | $4.50 |
| Claude Sonnet 5 Anthropic | $2.00 | $10.0 | 1M | $9.00 |
| Claude Sonnet 5.5 Anthropic | $2.00 | $10.0 | 1M | $9.00 |
| Claude Sonnet 4.5 Anthropic | $3.00 | $15.0 | 200k | $13.5 |
| Claude Sonnet 4.6 Anthropic | $3.00 | $15.0 | 1M | $13.5 |
Questions
How much does Claude Opus 4.8 cost?
Claude Opus 4.8 costs $5.00 per million input tokens and $25.0 per million output tokens on the Anthropic API; cached input is $0.50 per million. A typical call with 2,000 tokens in and 500 out costs about $0.022.
What is the context window of Claude Opus 4.8?
Claude Opus 4.8 accepts up to 1,000,000 input tokens and returns up to 128,000 output tokens.
Is there a cheaper alternative to Claude Opus 4.8?
For a typical call, GPT-5 nano (OpenAI, $0.0003 per call), Gemini 2.5 Flash Lite (Google, $0.0004 per call), GPT-6 luna (OpenAI, $0.0004 per call) cost less and also support image input, tool use, reasoning, JSON schema output. Quality differs, so test on your own prompts.
Source: the open LiteLLM model price map (MIT), checked daily (data file).