claude-haiku-4-5 API

At provider list price streaming

Claude Haiku 4.5 is Anthropic's fastest, most cost-efficient Claude model. Call it on CaMeL Hub through the OpenAI-compatible API (base_url https://api.camel-hub.com/v1) at $1 per 1M input tokens and $5 per 1M output tokens — no separate Anthropic account needed, one API key covers every model on the platform.

Pricing

per 1M input tokensper 1M output tokens
CaMeL Hub$1.00$5.00
Provider list price$1.00$5.00

Prices are the public default-group rate in USD per 1M tokens; input and output are billed separately. · Provider list price · verified 2026-07-11

Specifications

Provider
Anthropic
Context window
200000 tokens
Max output
64000 tokens
Capabilities
streaming
Endpoints
anthropic, openai
Claude Haiku 4.5 sits at the small-and-fast end of the Claude family: it trades a slice of peak reasoning depth for dramatically lower latency and a 5x lower price than Sonnet-tier models. Anthropic positions it as "the fastest model with near-frontier intelligence", and in practice it lands close to previous-generation mid-tier models on everyday tasks while responding noticeably quicker. If your workload is high-volume and latency-sensitive rather than research-grade, this is usually the right Claude to start with. The model carries a 200K-token context window with up to 64K output tokens per request — enough to feed in long documents, full support-ticket histories, or several source files at once, while the per-request cost stays small. Typical sweet spots are classification and routing, structured extraction, summarization, autocomplete, and real-time chat. It also works well as the "worker" model in multi-agent setups: a stronger model plans, and Haiku 4.5 fans out to execute many cheap sub-tasks in parallel. On CaMeL Hub, claude-haiku-4-5 is exposed through both the OpenAI-compatible endpoint (/v1/chat/completions — point any OpenAI SDK at https://api.camel-hub.com/v1 and change only the base_url and key) and the Anthropic-native Messages format, with streaming supported on both. Billing is metered per token with separate input and output rates, you can pay by top-up or subscription plan, and Alipay, WeChat Pay, and international cards are all accepted.

What it is good for

Quickstart

OpenAI-compatible: set base_url to https://api.camel-hub.com/v1 and use your CaMeL Hub API key. No SDK changes needed.

cURL

curl https://api.camel-hub.com/v1/chat/completions \
  -H "Authorization: Bearer $CAMEL_HUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-haiku-4-5",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Python

from openai import OpenAI

client = OpenAI(
    api_key="$CAMEL_HUB_KEY",
    base_url="https://api.camel-hub.com/v1",  # <-- the only change vs. the OpenAI default
)

resp = client.chat.completions.create(
    model="claude-haiku-4-5",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)

Node.js

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.CAMEL_HUB_KEY,
  baseURL: "https://api.camel-hub.com/v1", // <-- the only change vs. the OpenAI default
});

const resp = await client.chat.completions.create({
  model: "claude-haiku-4-5",
  messages: [{ role: "user", content: "Hello!" }],
});
console.log(resp.choices[0].message.content);

Get an API key Browse integration guides

Frequently asked questions

How is claude-haiku-4-5 billed on CaMeL Hub?

Usage is metered per token, with input and output priced separately: $1 per 1M input tokens and $5 per 1M output tokens on the public default tier. You only pay for what a request actually consumes — there is no per-call fee and no monthly minimum.

Does it support streaming responses?

Yes. Set stream: true in your request and tokens are delivered incrementally over SSE, exactly as with the OpenAI API. Given Haiku 4.5's fast generation speed, streaming makes chat UIs feel close to instant.

How large are the context window and maximum output?

Claude Haiku 4.5 accepts up to 200,000 tokens of context per request and can generate up to 64,000 output tokens (per Anthropic's published specifications). That is roughly 150,000 English words of input — enough for most long-document workloads without chunking.

How do I start calling it?

Create an API key in the CaMeL Hub console (https://api.camel-hub.com/console), then point any OpenAI SDK at base_url https://api.camel-hub.com/v1 with model "claude-haiku-4-5". Anthropic-native Messages format requests are also accepted, so existing Anthropic SDK code works by swapping the base URL and key.

When should I pick Haiku 4.5 over Claude Sonnet or Opus?

Pick Haiku 4.5 when speed and unit cost matter more than maximum reasoning depth: classification, extraction, summarization, chat, and high-fan-out agent sub-tasks. For complex multi-step reasoning or hard coding tasks, step up to a Sonnet- or Opus-tier model — all available behind the same CaMeL Hub endpoint, so switching is a one-line model-name change.

More from Anthropic

Compare with other models