Anthropic

claude-haiku-4-5

anthropicmodel ID claude-haiku-4-5-35%

claude-haiku-4-5 costs $0.65 per million input tokens and $3.25 per million output tokens through the KoRouter API — 35% below Anthropic's official rate, pay as you go with credits.

  • Context window200K input tokens
  • Input modalitiestext, image, file
  • Output modalitiestext

Call it in one request

curl · claude-haiku-4-5
curl https://korouter.ai/v1/messages \
  -H "x-api-key: sk-your-key" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-haiku-4-5",
    "max_tokens": 1024,
    "messages": [{ "role": "user", "content": "Hello" }]
  }'

claude-haiku-4-5 is served on the Anthropic Messages API, so Claude Code reaches it by pointing ANTHROPIC_BASE_URL at KoRouter — no wrapper, no proxy config. The same model ID also answers on the OpenAI-compatible endpoint above, which is what Codex, Cline, Continue and Aider use. Setup guides per tool.

Replace sk-your-key with a key from the console. Model IDs are bare names — see the docs.

What a real coding session costs

Per-token price tables mislead for agentic coding. A focused two-hour Claude Code session re-sends its context on every request, so 88% of its tokens are cache reads rather than fresh input — and the cache rate, not the headline input price, decides most of the bill. Priced at claude-haiku-4-5's live rates, that session costs $1.10 through KoRouter, against $1.69 at Anthropic's official prices.

  • Cache reads · 5M tokens$0.33
  • Fresh input · 250K tokens$0.16
  • Output · 100K tokens$0.33
  • Cache writes · 350K tokens$0.28
  • Session total$1.10

The token mix is a stated assumption, not a measurement — change it and re-price every model in the cost calculator, or read the full worked example in what a real Claude Code session costs. Prices come from the live billing catalog.

The same session elsewhere

The same reference session, priced at each model's live KoRouter rates — the nearest options on either side of claude-haiku-4-5.

Supported parameters

max_tokensmax_completion_tokensreasoningreasoning_effortinclude_reasoningtoolstool_choiceresponse_formatstructured_outputs

More models

Prices use the live billing catalog · live availability · all models