Models / Claude Haiku 4.5
Claude Haiku 4.5
proprietaryAnthropic's fastest and most affordable model. Ideal for high-throughput tasks and real-time interactions.
anthropic/claude-haiku-4.5Context Window
200K
Max Output
8K
Providers
1
Released
2025-10
Capabilities
chatcodevisiontoolsfunction_callingstreamingjson_mode
Pricing by Provider
| Provider | Input $/1M | Output $/1M | Latency p50 | Latency p95 | Status |
|---|---|---|---|---|---|
| anthropic | $0.80 | $4.00 | 200ms | 600ms |
Quick Start
Python
import magicrouter
mr = magicrouter.Client(
provider_keys={"anthropic": "your-api-key"}
)
response = mr.chat(
"anthropic/claude-haiku-4.5",
"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-haiku-4.5",
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-haiku-4-5-20251001",
"messages": [{"role": "user", "content": "Your prompt here"}]
}'