Anthropic
Claude Opus 5
Anthropic's next-generation Opus flagship for deep reasoning and complex agentic coding — near Fable 5 capability at half the price
Context Length1M tokens
Model TypeLarge Language Model (LLM)
MultimodalText, Image Input
Pricing & Specs
💰 Pricing
Input$5 / M tokens
Output$25 / M tokens
Cache Write5m: $6.25 / MTok; 1h: $10 / MTok
Cache Hit$0.50 / MTok
⚙️ Specs
Context Length1M tokens
Model TypeLarge Language Model (LLM)
MultimodalText, Image Input
Adaptive ThinkingSupported (on by default)
Max Output128K tokens
Fast ModeBilled at 2x tokens
Release DateJuly 24, 2026
Knowledge CutoffMay 2026
API CompatibilityClaude API, Claude Code, OpenAI API
API Examples
Python
import anthropic
client = anthropic.Anthropic(
api_key="your-api-key"
)
message = client.messages.create(
model="claude-opus-5",
max_tokens=1024,
messages=[
{"role": "user", "content": "Hello, Claude!"}
]
)
print(message.content[0].text)cURL
curl https://api.xairouter.com/v1/messages
-H "Content-Type: application/json"
-H "x-api-key: YOUR_API_KEY"
-H "anthropic-version: 2023-06-01"
-d '{
"model": "claude-opus-5",
"max_tokens": 1024,
"messages": [
{"role": "user", "content": "Hello, Claude!"}
]
}'Developer Assist
# Set environment variables in terminal
export ANTHROPIC_AUTH_TOKEN=sk-Xvs... # Your API Key
export ANTHROPIC_BASE_URL=https://api.xairouter.com
# Start Claude Code
claude
# Now you can use claude-opus-5 model directly for development