Back to Models

Haiku 4.5 APIActive

claude-haiku-4-5-20251001

No description available

By:AnthropicInput Type:Output Type:

AI Code With channel availability

The same model is billed by channel discount. Copy a channel code to set your preference.

ChannelCache Hit RateContext
特价渠道81% off
79.0%¥1.368/ M tokens¥6.84/ M tokensRead:¥0.1368/ M tokensWrite:¥1.71/ M tokens200K0.0s
企业混合池35% off
79.0%¥4.68/ M tokens¥23.4/ M tokensRead:¥0.468/ M tokensWrite:¥5.85/ M tokens200K0.0s

Related Models

More models from Anthropic

Compare models from other providers

Haiku 4.5 API: price, model ID, and how to call it

Call Haiku 4.5 through AI Code With. Use model ID claude-haiku-4-5-20251001 with 200K context. list price about $1.00 / $5.00 per 1M tokens before channel discounts. About $0.0285 for 100,000 input / 10,000 output tokens at the cheapest live channel.

Model IDclaude-haiku-4-5-20251001
ProtocolsOpenAI Chat Completions · Anthropic Messages
Context200K
Max output8.19K

Next: Get API key · Claude Code setup guide · Compare Claude models · All model prices

Cost calculator

Estimate at the cheapest live channel: $0.1900 / $0.9500 per 1M tokens, cache read $0.0190, cache write $0.2375. Billed usage follows your prepaid balance.

Estimated cost$0.0285

cURL example

Set model to claude-haiku-4-5-20251001. The page slug is only the URL, not the API parameter.

curl https://api.aicodewith.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $AICODEWITH_API_KEY" \
  -d '{
    "model": "claude-haiku-4-5-20251001",
    "messages": [
      { "role": "user", "content": "What is the meaning of life?" }
    ]
  }'

FAQ

What is the Haiku 4.5 model ID?

Send model "claude-haiku-4-5-20251001" in the API request. The page path /claude-haiku-4-5-20251001 is only the URL, not the model parameter.

How do I call the Haiku 4.5 API?

Use one AI Code With API key against https://api.aicodewith.ai/v1/chat/completions(OpenAI Chat Completions)和 https://api.aicodewith.ai/v1/messages(Anthropic Messages,Authorization: Bearer), and set model to claude-haiku-4-5-20251001. Supported protocols: OpenAI Chat Completions / Anthropic Messages. See Claude Code setup guide.

How is Haiku 4.5 priced?

Haiku 4.5 is list price about $1.00 / $5.00 per 1M tokens before channel discounts. The public page shows available channel discounts; billed usage follows your prepaid balance and the live channel. About $0.0285 for 100,000 input / 10,000 output tokens at the cheapest live channel.

How long is the Haiku 4.5 context window?

Haiku 4.5 has about 200K input context and up to 8.19K output tokens. Treat that as capacity, not a reason to fill every request.