Claude Haiku 4.5 API

Call Claude Haiku 4.5 with one TokenMilo API key. The fastest and cheapest Claude models, for high-volume and latency-sensitive work. Billed per token at 79% below the official Anthropic price.

Get an API key

Model IDclaude-haiku-4-5
ProviderAnthropic
FamilyClaude Haiku
Discount79% off official

Claude Haiku 4.5 pricing

USD per 1M tokens. Prices updated 2026-11-13.

TokenMiloOfficial Anthropic
Input$0.216$1
Output$1.06$5
Cache read$0.022—
Cache write (5 min)$0.27—
Cache write (1 hour)$0.27—

1-hour cache writes are billed at the same price as 5-minute writes.

What it costs in practice

WorkloadTokenMiloOfficialYou save
1,000 requests × 2,000 in / 500 out tokens$0.963$4.50$3.54
1,000 requests × 50,000 in / 2,000 out tokens$12.92$60.00$47.08

What Claude Haiku 4.5 is good for

  • Classification, extraction and tagging
  • High-volume batch processing
  • Real-time chat and autocomplete
  • Sub-agents and routing inside larger agent systems

Supported endpoints

Anthropic Messages · recommendedPOST https://api.tokenmilo.com/v1/messages
OpenAI Chat CompletionsPOST https://api.tokenmilo.com/v1/chat/completions

Base URL and API key are the same for every format. API guide →

Code examples

curl

curl https://api.tokenmilo.com/v1/messages \
  -H "x-api-key: $TOKENMILO_API_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!"}]
  }'

Python

# pip install anthropic
import os, anthropic

client = anthropic.Anthropic(
    base_url="https://api.tokenmilo.com",
    api_key=os.environ["TOKENMILO_API_KEY"],
)
msg = client.messages.create(
    model="claude-haiku-4-5",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Explain prompt caching in one paragraph."}],
)
print(msg.content[0].text)

Use Claude Haiku 4.5 in your tools

Other Claude Haiku models

More Anthropic models

FAQ

Is this the real Claude Haiku 4.5?

Yes. Requests with model ID claude-haiku-4-5 are served by the genuine Anthropic model — no quantized, swapped or downgraded variant. Response quality is the same as calling Anthropic directly.

How much does Claude Haiku 4.5 cost on TokenMilo?

$0.216 per 1M input tokens and $1.06 per 1M output tokens, compared with $1 / $5 officially — 79% less. There is no subscription or monthly minimum.

Which API format should I use for Claude Haiku 4.5?

The Anthropic Messages API (https://api.tokenmilo.com/v1/messages) is recommended and supports every Claude feature, including prompt caching, tool use and extended thinking. The OpenAI-compatible Chat Completions endpoint also works for simple chat.

Does Claude Haiku 4.5 support prompt caching?

Yes. Cache reads are billed at $0.022 per 1M tokens, which makes long system prompts and coding-agent sessions much cheaper.

Start using Claude Haiku 4.5

Sign up, top up, create a key — and point your SDK at TokenMilo.

Get an API key All models Full pricing