Skip to main content
Vendor: Anthropic Model ID: claude-haiku-4-5 Capability: 200K context · tool use · vision · prompt caching · streaming Pricing: per-token, Haiku tier (live rate) Haiku 4.5 is the model you reach for when the plan is to make a lot of LLM calls — agent loops, tool-heavy workflows, sub-LLM judges, embeddings pipelines that need a quick rewrite step. It’s not the model you ship when one shot has to be perfect; for that use Sonnet or Opus. But its latency floor is low enough that you can chain four or five Haiku calls in the time Sonnet takes for one, and the quality holds for routine classification, extraction, and routing tasks.

Request

Body parameters

Response

Response fields

Code examples

Streaming

Set "stream": true. Response is SSE in the standard Anthropic format. Estimated credits ship in the HTTP response before the first SSE event, so you can short-circuit a long completion before paying for it.

Cache control

cache_control blocks reduce cost on repeated prompts. Cache reads at the discounted rate visible in the pricing table under “cache read”. Cost-effective on Haiku for retrieval-heavy agent loops where the system prompt and tool definitions are stable across calls.

Errors

See Error Handling for the full enum.

When to use

  • Production agent loops where you make 3+ LLM calls per user action.
  • Routing / triage / classification ahead of a heavier model.
  • Embedding pipelines that need a quick rewrite or cleanup step.
  • For one-shot quality where latency is secondary, see Sonnet 4.6.
  • For long-context reasoning, see Opus 4.7.

Limits