Models / Claude Haiku 4.5

Claude Haiku 4.5

proprietary

Anthropic's fastest and most affordable model. Ideal for high-throughput tasks and real-time interactions.

anthropic/claude-haiku-4.5
Context Window
200K
Max Output
8K
Providers
1
Released
2025-10

Capabilities

chatcodevisiontoolsfunction_callingstreamingjson_mode

Pricing by Provider

ProviderInput $/1MOutput $/1MLatency p50Latency p95Status
anthropic$0.80$4.00200ms600ms

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"}]
  }'

Use this model

Sign up for free and test Claude Haiku 4.5 in the playground

Get Started
Claude Haiku 4.5 — MagicRouter