Claude 4.5 Haiku API

Claude 4.5 Haiku is a fast, lightweight model optimized for quick responses and high-throughput applications.

Modalities
TextText
In / Out price
$1/$5per 1M
Context window
200K tokens
Released
Oct 16, 2025

Claude 4.5 Haiku overview

The pelican test: one prompt, every text model, unedited SVG output from Nov 3, 2026.

SVG of a pelican riding a bicycle, written by Claude 4.5 Haiku through AI/ML API

Claude 4.5 Haiku by Anthropic

Claude 4.5 Haiku is a text-only chat model from Anthropic. It offers a 200,000-token context window and up to 64,000 tokens of output, positioning it as a fast, lighter option in the Claude 4.5 lineup. It supports streaming for real-time response delivery.

Claude 4.5 Haiku specs

Model ID
anthropic/claude-haiku-4.5
Developer
Anthropic
Context window
200,000 tokens
Max output
64,000 tokens
Input
Text
Output
Text
API
OpenAI-compatible, base URL https://api.aimlapi.com/v1

Claude 4.5 Haiku is a fast, lightweight model optimized for quick responses and high-throughput applications.

Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.

Long-document analysis
Summarize and extract from contracts, papers, and reports without aggressive chunking.

Use cases

  • Real-time chat assistants and conversational AI services
  • Customer support automation with low latency response
  • AI pair programming and code generation
  • Agent orchestration for complex workflows involving multiple AI instances
  • Rapid prototyping of software with interactive AI support

Capabilities

  • Streaming

Claude 4.5 Haiku benchmarks by Artificial Analysis

See how Claude 4.5 Haiku compares in generation speed and latency. Data retrieved Nov 4, 2026.

Speed

Output tokens / second

Benchmark results

Compare 8 models available on AI/ML API across 5 independent benchmarks.

Humanity's Last Exam

Expert-written questions across academic subjects.

Claude 4.5 Haiku API pricing

Claude 4.5 Haiku pricing in US dollars
UsagePriceUnit
Input$11M tokens
Output$51M tokens
Cached input$0.10581M tokens

Prices from the AI/ML API price list, checked on Nov 4, 2026.

Claude 4.5 Haiku vs other models: token prices

AI/ML API input and output rates for 5 models, per million tokens.

AI/ML API model prices in USD per million tokens
ModelInputOutput
Claude 4.5 Haiku$1$5
Claude Haiku 5.5$0.1$0.5
Claude Sonnet 5.5$2$10
Claude Opus 5.5$4$20
Claude Fable 5.1$10$50

How to use the Claude 4.5 Haiku API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "anthropic/claude-haiku-4.5",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'

Related articles

All posts

Claude 4.5 Haiku FAQ

What is the context window of Claude 4.5 Haiku?

Claude 4.5 Haiku has a 200,000 tokens context window and can return up to 64,000 tokens.

What inputs and outputs does Claude 4.5 Haiku support?

Claude 4.5 Haiku takes text as input and returns text.

What is the model ID for Claude 4.5 Haiku?

Use anthropic/claude-haiku-4.5 as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

How much does Claude 4.5 Haiku cost?

Claude 4.5 Haiku costs $1 input and $5 output per 1M tokens on AI/ML API, billed as you go with no subscription.

Does Claude 4.5 Haiku support streaming?

Yes, Claude 4.5 Haiku can stream responses as they are generated.

Who created Claude 4.5 Haiku?

Claude 4.5 Haiku was built by Anthropic.

What is Claude 4.5 Haiku best used for?

It is designed as a fast, lightweight model for quick responses and high-throughput applications.

Start building with Claude 4.5 Haiku

Claude 4.5 Haiku API

anthropic/claude-haiku-4.5

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "anthropic/claude-haiku-4.5",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'