Claude Opus 4.8 API
Claude Opus model for text generation, code, and reasoning.
Starting at
$0.662
input price per 1M tokens
Claude Opus 4.8 playground
Input
openaiInput
$0.662 / 1M
Output
$3.31 / 1M
Output

Start a conversation
Ask Claude Opus 4.8 anything. Messages are sent directly to the API and charged by token usage.
Sign in to chatClaude Opus 4.8 API pricing
| Option | Price per 1M tokens |
|---|---|
| input | $0.662 |
| output | $3.31 |
| cacheRead | $0.066 |
| cacheWrite | $0.827 |
| cacheWrite1h | $1.32 |
Quick start
Full API reference →1curl -X POST https://api.api-stock.com/api/v1/chat/completions \2 -H "Authorization: Bearer $API_STOCK_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "model": "claude-opus-4-8",6 "messages": [7 {8 "role": "user",9 "content": "A cinematic shot of a city at dusk"10 }11 ]12 }'
Frequently asked questions
How much does Claude Opus 4.8 cost?
Claude Opus 4.8 starts at $0.662 per 1M input tokens on API Stock. The final charge depends on the selected settings.
How do I get an API key for Claude Opus 4.8?
Create an account and API key on API Stock, then fund your balance. The same key works with Claude Opus 4.8 and other catalog models.
How do I call the Claude Opus 4.8 API?
Send a POST request to https://api.api-stock.com/api/v1/chat/completions with your API key and the model "claude-opus-4-8", using the openai-compatible request format shown in the quick start above.
What happens if a Claude Opus 4.8 request fails?
API Stock automatically retries the request on a reserve provider. If every provider fails, the charge is refunded to your balance.
Can I use Claude Opus 4.8 with the same API key as other models?
Yes. Use your API Stock API key and balance for Claude Opus 4.8 and other catalog models.
Other Chat models
- Gemini 4 HydrogenGoogle$0.596/ 1M tokens
- Gemini 3 Flash PreviewGoogle$0.6/ 1M tokens
- Kimi K2.5Moonshot AI$0.617/ 1M tokens
- GLM-5.1Z.ai$0.63/ 1M tokens
- Claude Opus 4.6Anthropic$0.662/ 1M tokens
- Claude Opus 4.7Anthropic$0.662/ 1M tokens
- Claude Sonnet 5.5Anthropic$0.9/ 1M tokens
- Gemini 3.5 FlashGoogle$0.9/ 1M tokens
- Gemini 3.6 FlashGoogle$0.9/ 1M tokens
Guides
- Choose a model for an agent taskCompare models on completed tool-using tasks, repeated attempts and observed cost before setting an agent's default.2 min read
- LLM API pricing: GPT, Claude, Gemini, DeepSeek comparedCompare LLM API pricing for GPT, Claude, Gemini, DeepSeek, Grok and Kimi per 1M tokens, with worked monthly cost examples and practical ways to cut the bill.9 min read
- Give your coding agent image, video and music toolsConnect Claude Code, Codex, OpenCode or OpenClaw to API Stock and use generated media in a page, app or content draft.3 min read
