APIrove

Home / Models / Claude / Claude Haiku 4.5

MODEL · CLAUDE · TEXT

Claude Haiku 4.5 API

Use the code below to send your own prompt to the Claude Messages API.

Sign in to get a trial allowance

Send your first request

Replace YOUR_API_KEY with your API key.

curl https://apirove.com/v1/messages \
  -H 'x-api-key: YOUR_API_KEY' \
  -H 'anthropic-version: 2023-06-01' \
  -H 'Content-Type: application/json' \
  -d '{"model": "claude-haiku-4-5-20251001", "messages": [{"role": "user", "content": "Describe a paper boat on a lake."}], "max_tokens": 128}'
python -m pip install anthropic
from anthropic import Anthropic

client = Anthropic(base_url="https://apirove.com", api_key="YOUR_API_KEY")
print(client.messages.create(
    model="claude-haiku-4-5-20251001",
    messages=[{"role": "user", "content": "Describe a paper boat on a lake."}],
    max_tokens=128,
))
Node.js · .mjs
const response = await fetch("https://apirove.com/v1/messages", {
  method: "POST",
  headers: {
    "x-api-key": "YOUR_API_KEY",
    "anthropic-version": "2023-06-01",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({"model": "claude-haiku-4-5-20251001", "messages": [{"role": "user", "content": "Describe a paper boat on a lake."}], "max_tokens": 128})
});
console.log(response.status, await response.json());

On sale

Catalog headlines

Index headlines by the places they actually mention. The dated model ID identifies the Haiku entry used by an existing indexing script.

Model IDclaude-haiku-4-5-20251001

On sale

Endpoints

  • Base URL: https://apirove.com/v1
  • POST /v1/messages
  • Auth: Authorization: Bearer YOUR_API_KEY

Public price

Billing itemUSD rateOfficial priceSavingsUnit
Input$0.50$1Save 50%1M tokens
Output$2.50$5Save 50%1M tokens
Cache read$0.05$0.10Save 50%1M tokens
Cache write$0.625$1.25Save 50%1M tokens
1h cache write$1$2Save 50%1M tokens

Public USD retail rates. The server renders the public price list of 2026-11-25; the page refreshes them on load. Actual charges are on the Usage page.

Official prices: Anthropic pricing page (checked 2026-11-24). Savings = 1 − our rate ÷ official price, rounded down to a whole percent.

Specs

Context200,000
Max output64,000
Knowledge cutoff2025-02-28

Context and max output are shown only when models.dev and the LiteLLM row for this id agree. Checked 2026-11-24. Source: models.dev (MIT).

Highlights

  • Keep the original spelling so place names can be matched to an index.
  • Keep the source headline for metaphors and ambiguous names.
  • Use the full dated ID in configuration and format the display name separately.
Six pale strips of different lengths on a terracotta gradient, with a disc at upper right

Use cases

  • Index regional columns
  • Catalog travel headlines
  • Tag exhibition notices

How to call it

Replace YOUR_API_KEY and send this request.

bash
APIROVE_API_KEY='YOUR_API_KEY'

curl -X POST https://apirove.com/v1/messages \
  -H 'Content-Type: application/json' \
  -H "x-api-key: $APIROVE_API_KEY" \
  -H 'anthropic-version: 2023-06-01' \
  -d '{
  "model": "claude-haiku-4-5-20251001",
  "messages": [
    {
      "role": "user",
      "content": "Extract only the place named in this headline: Spring in Suzhou, notes from a reading circle."
    }
  ],
  "max_tokens": 256
}'

FAQ

Should I infer the city when a headline omits it?

Use a defined missing value. An editor can add a city separately after reading the article.

How should I compare this dated entry with Haiku 5.5?

Use each exact ID. Include headlines with and without place names, then check for missed and invented tags.

What does max_tokens do in the Messages example?

It caps the output for this request. The example allows room for a short answer. Adjust it for your task and inspect the stop reason.

What should I check if the example fails?

Check the /v1/messages URL and the x-api-key and anthropic-version headers. Then verify the exact model ID, messages and max_tokens in the body.

Where can I check current rates for this model?

Find the exact model ID in the public pricing table. Read the input, output and any listed cache rates with the unit shown for each.

Try the same sample with claude-haiku-5-5. The related entries show the request format for each model.

Get an API key See pricing