Models / Claude Opus 4.6
Claude Opus 4.6
proprietaryAnthropic's most capable model. Excels at complex analysis, nuanced writing, and agentic coding.
anthropic/claude-opus-4.6Context Window
1M
Max Output
33K
Providers
1
Released
2026-03
Capabilities
chatcodevisionreasoningthinkingtoolsfunction_callingstreamingjson_mode
Pricing by Provider
| Provider | Input $/1M | Output $/1M | Latency p50 | Latency p95 | Status |
|---|---|---|---|---|---|
| anthropic | $5.00 | $25.00 | 600ms | 2000ms |
Quick Start
Python
import magicrouter
mr = magicrouter.Client(
provider_keys={"anthropic": "your-api-key"}
)
response = mr.chat(
"anthropic/claude-opus-4.6",
"Your prompt here"
)
print(response.choices[0].message.content)TypeScript
import { MagicRouter } from "magicrouter";
const mr = new MagicRouter({
providerKeys: { anthropic: "your-api-key" }
});
const response = await mr.chat({
model: "anthropic/claude-opus-4.6",
messages: [{ role: "user", content: "Your prompt here" }]
});
console.log(response.choices[0].message.content);cURL
curl https://api.anthropic.com/v1/chat/completions \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-opus-4-6-20260301",
"messages": [{"role": "user", "content": "Your prompt here"}]
}'