Anthropic: Claude Haiku 4.5
claude-haiku-4.5
Claude Haiku 4.5 costs $1.30 per million input tokens and $6.50 per million output tokens, supports 200K context, and is available through the OpenAI-compatible API.
Claude Haiku 4.5 matches Sonnet 4's coding quality while running about twice as fast at roughly one-third the price, making it ideal for low-latency chat assistants, support bots, and pair programming. Pair it with Sonnet 4.5 to plan complex work and fan out execution across parallel Haiku workers.
Modalities
Text + Image → Text
Input / output price
$1.30 / $6.50 per 1M
Context
200K · max output 64K
Capabilities
Pricing
Billed per token actually used and deducted from your credits.
| Item | USD per 1M tokens |
|---|---|
| Input | $1.30 |
| Output | $6.50 |
| Cached input | $0.130 |
Calculator
Drag the sliders to estimate what this model will cost.
- Per request
- $0.00910
- Per day
- $4.55
- Per month (30 days)
- $136.50
Claude Haiku 4.5: input $1.3/M · output $6.5/M · cached input $0.13/M
curl https://api.geniusrelaygpt.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "claude-haiku-4.5", "max_tokens": 800,
"messages": [{"role": "user", "content": "…"}]}'Code samples
OpenAI-compatible. Set the base URL to https://api.geniusrelaygpt.com/v1 and the model to claude-haiku-4.5.
curl https://api.geniusrelaygpt.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-haiku-4.5",
"stream": true,
"messages": [{"role": "user", "content": "Hello"}]
}'Use it in a client: Cursor · Cline · SillyTavern · Codex
Parameters
Common OpenAI parameters can be passed as-is.
temperaturetop_pmax_tokensstreamstoppresence_penaltyfrequency_penaltyseedFAQ
- How is Claude Haiku 4.5 billed?
- Input is $1.30 and output is $6.50 per million tokens; cached input is $0.130. The charge for every request is listed in Usage Logs in the console.
- How long is the context window?
- 200K tokens. In a long conversation every turn is billed for the full input, so keep the history under control.
- Does it support streaming?
- Yes. Add "stream": true to the request to receive server-sent events in the OpenAI format.