Skip to navigation

Claude Haiku 4.5

Claude Haiku 4.5 is a fast, low-cost model by Anthropic, available through the OpenAI- and Anthropic-compatible API under the model id claude-haiku-4-5. Input costs $1 and output $5 per 1M tokens. It has a 200k-token context window and up to 64k output tokens per response.

Anthropic · Claude · Fast

Unavailable

Fast, low-cost Claude for sub-agents, classification and high-volume tasks.

Requests to this model fail right now: it has no working upstream. The rates below are what it will cost when it returns.

Claude Haiku 4.5 key facts
VendorAnthropic
Model IDclaude-haiku-4-5
Input price per 1M tokens$1.00
Output price per 1M tokens$5.00
Context window200k tokens
Max output64k tokens
API formatsAnthropic, OpenAI
Prices checked

Model id

claude-haiku-4-5

Price per 1M tokens

Input
$1.00
Output
$5.00
Cached input
$0.1090% below input

Output is 5× the input rate. $1 covers about 285 prompts of 1,000 input + 500 output tokens. 1 credit = $1 of usage. All rates

Start using Claude Haiku 4.5

Set ONEAIAPIKEY_API_KEY to a key from your console, then run any example. Streaming is on so long answers are not cut off by idle-connection timeouts.

curl https://api.oneaiapikey.com/v1/chat/completions \
  -H "Authorization: Bearer $ONEAIAPIKEY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-haiku-4-5",
    "stream": true,
    "messages": [{"role": "user", "content": "Extract invoice number, date, total and currency from this text as JSON."}]
  }'
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.oneaiapikey.com/v1",
    api_key=os.environ["ONEAIAPIKEY_API_KEY"],
)

stream = client.chat.completions.create(
    model="claude-haiku-4-5",
    messages=[{"role": "user", "content": "Extract invoice number, date, total and currency from this text as JSON."}],
    stream=True,  # recommended for long outputs
)
for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.oneaiapikey.com/v1",
  apiKey: process.env.ONEAIAPIKEY_API_KEY,
});

const stream = await client.chat.completions.create({
  model: "claude-haiku-4-5",
  messages: [{ role: "user", content: "Extract invoice number, date, total and currency from this text as JSON." }],
  stream: true,
});

for await (const chunk of stream) {
  process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}
import os
from anthropic import Anthropic

client = Anthropic(
    base_url="https://api.oneaiapikey.com",
    api_key=os.environ["ONEAIAPIKEY_API_KEY"],
)

with client.messages.stream(
    model="claude-haiku-4-5",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Extract invoice number, date, total and currency from this text as JSON."}],
) as stream:
    for text in stream.text_stream:
        print(text, end="", flush=True)
# macOS / Linux
export ANTHROPIC_BASE_URL="https://api.oneaiapikey.com"
export ANTHROPIC_AUTH_TOKEN="$ONEAIAPIKEY_API_KEY"
export ANTHROPIC_MODEL="claude-haiku-4-5"
claude

# Windows PowerShell
$env:ANTHROPIC_BASE_URL = "https://api.oneaiapikey.com"
$env:ANTHROPIC_AUTH_TOKEN = $env:ONEAIAPIKEY_API_KEY
$env:ANTHROPIC_MODEL = "claude-haiku-4-5"
claude

More: quickstart · API reference · try it in Chat first

Benchmarks reported by the vendor

Scores for Claude Haiku 4.5 as its maker published them, with the setting they state. We have not re-run them. Versions and settings differ between vendors, so compare only identical benchmark names; compare models side by side.

Tokens per day, by model

Last 7 days, UTC days

Hover, tap or drag across any day, or focus the chart and use the arrow keys, to see how every model did that day.

Real tokens served through this gateway, updated every 30 minutes. Ranked by usage, not quality.

Full ranking insights

Claude line-up

Claude Haiku 4.5 or Claude Sonnet 5.5 or Claude Haiku 5.5?

Of the 6 Claude models on this site, Claude Sonnet 5.5 is the step up from Claude Haiku 4.5 and Claude Haiku 5.5 the step down. Each comparison lists the published rates and limits, then what favours each side.

Claude Haiku 4.5vsClaude Sonnet 5.5

Per 1M tokensClaude Haiku 4.5Claude Sonnet 5.5
Input$129% less$1.40
Output$529% less$7
Cached input$0.10the same$0.10
Context200k80% smaller1M
Max output64k50% less128k

Pick Claude Haiku 4.5 when

  • cost per request decides it: Claude Haiku 4.5 charges input 29% less and output 29% less than Claude Sonnet 5.5.
  • the work is sub-agents, extraction and chat, which this catalogue lists for Claude Haiku 4.5 and not for Claude Sonnet 5.5.

Pick Claude Sonnet 5.5 instead when

  • Claude Haiku 4.5 falls short and you want the balanced model of the pair.
  • inputs outgrow the 200k-token window of Claude Haiku 4.5; Claude Sonnet 5.5 accepts 1M.
  • the 64k output cap of Claude Haiku 4.5 cuts answers short; Claude Sonnet 5.5 writes up to 128k.
  • your workload looks like daily coding, coding agents and code review, labels the catalogue gives Claude Sonnet 5.5 only.

Claude Haiku 4.5vsClaude Haiku 5.5

Per 1M tokensClaude Haiku 4.5Claude Haiku 5.5
Input$114.3× as much$0.07
Output$514.3× as much$0.35
Cached input$0.1010× as much$0.01
Context200k80% smaller1M
Max output64k50% less128k

Pick Claude Haiku 4.5 when

  • you work in Claude Code or the Anthropic SDK, which need the Messages format.
  • the work is extraction and chat, which this catalogue lists for Claude Haiku 4.5 and not for Claude Haiku 5.5.

Pick Claude Haiku 5.5 instead when

  • the job runs well enough on the lower rates: input at 93% less and output at 93% less.
  • inputs outgrow the 200k-token window of Claude Haiku 4.5; Claude Haiku 5.5 accepts 1M.
  • the 64k output cap of Claude Haiku 4.5 cuts answers short; Claude Haiku 5.5 writes up to 128k.
  • your workload looks like classification and support chat, labels the catalogue gives Claude Haiku 5.5 only.

Use cases

What Claude Haiku 4.5 is listed for, and what it costs

The catalogue lists Claude Haiku 4.5 for sub-agents, extraction and chat. Each row prices one typical request at the published rates, with the arithmetic shown. Token counts are examples; your prompts will differ.

Model your own traffic

  1. Sub-agents

    A helper step for a larger model: 6,000 tokens of file or search results in, a 500-token summary out.

    Route search, summarising and file triage here while a larger model leads.

    “List every function in this file that writes to the database, one per line.”

    Same request on Claude Sonnet 5.5 $0.0119 and Claude Haiku 5.5 $0.000596. No other fast-tier Claude model on this site does this job for less.

    $0.0085

    per helper call, about 1,176 per $10

    0.006 × $1 + 0.0005 × $5

  2. Extraction

    One document turned into structured JSON: 4,000 tokens in, 300 tokens out.

    Request JSON with a fixed schema to get consistent structured output.

    “Extract invoice number, date, total and currency from this text as JSON.”

    Same request on Claude Sonnet 5.5 $0.0077 and Claude Haiku 5.5 $0.000386. No other fast-tier Claude model on this site does this job for less.

    $0.0055

    per document, about 1,818 per $10

    0.004 × $1 + 0.0003 × $5

  3. Chat

    One chat reply: 1,500 tokens of conversation history in, 400 tokens out.

    Low per-message cost keeps conversational products affordable at scale.

    “Explain the difference between a mutex and a semaphore in plain words.”

    Same request on Claude Sonnet 5.5 $0.0049 and Claude Haiku 5.5 $0.000246. No other fast-tier Claude model on this site does this job for less.

    $0.0035

    per reply, about 2,857 per $10

    0.0015 × $1 + 0.0004 × $5

Overview

When Claude Haiku 4.5 fits

Claude Haiku 4.5 is a fast, low-cost model from Anthropic, available here under the exact model id “claude-haiku-4-5”. In the Claude line-up here it sits between Claude Sonnet 5.5 and Claude Haiku 5.5. Anthropic released it on 15 Oct 2025.

Anthropic documents tools, vision, reasoning, structured output and prompt caching for it, and it reads images as well as text.

It costs $1 per million input tokens and $5 per million output tokens, so output is 5× the input rate. On the use cases below, output makes up 29% of the bill for sub-agents, 27% for extraction and 57% for chat, so trimming the context you send saves more than capping the answer.

Cached input bills at $0.10 per million tokens, 90% below the standard input rate, which pays off when the same system prompt or documents go out on every request.

You can call it through the OpenAI format at https://api.oneaiapikey.com/v1 or the native Anthropic Messages format at https://api.oneaiapikey.com/v1/messages. That makes it usable in Claude Code as well as OpenAI-compatible tools such as Codex CLI, Cursor and Cline.

Use Claude Haiku 4.5 with any balance.

Claude Haiku 4.5 is a paid model: any balance above $0 pays for it, the $10.00 sign-up credit included. When it runs out, add credit to your wallet. Every request is billed at the rates above, with a receipt in your usage log.

Claude Haiku 4.5 is developed by Anthropic. Model names and trademarks belong to their owners. One AI API Key is an independent API gateway and is not affiliated with, endorsed by or sponsored by Anthropic.

New accounts$10 credit on sign-up
Claim $10 credit →