Skip to content
youbot
Claude Haiku 4.5 cover

Claude Haiku 4.5 API

claude-haiku-4-5
AnthropicCommercial use API verifiedText & reasoning

Claude Haiku 4.5 — frontier reasoning and generation through one API.

by Anthropic

Get Your API Key
View as Markdown

Pricing: Input 32.1 credits / 1M tokens (≈ $0.321), Output 160.5 credits / 1M tokens (≈ $1.605). Cached Input 5.25 credits / 1M tokens (≈ $0.0525), Cache Writes 65.59 credits / 1M tokens (≈ $0.6559) — applied automatically when the upstream reports cached tokens for your prompt; there is no field to request them.

Save up to 71%with the $1,250 top-up pack (+10% bonus) — 68% lower than direct rates even without itTop up

24H Status Monitor

Operational
24h agonow
Loading…

Affordable Claude Haiku 4.5 API on you.bot

Anthropic Claude Haiku 4.5 — the fastest, cheapest Claude for high-volume tasks.

Claude Haiku 4.5 API pricing & guide (2026)

Claude Haiku 4.5 — frontier reasoning and generation through one API. Through you.bot you call the Claude Haiku 4.5 API by Anthropic on the same unified endpoint as every other model — one key, one integration.

On you.bot, the Claude Haiku 4.5 API costs about $0.32 per 1M tokens — roughly 68% cheaper than the official Anthropic price of $1. You only pay for successful generations; failed tasks are never charged.

Billing is pay-as-you-go in credits (1 credit = $0.01 USD) — no subscription, no monthly minimum, and credits never expire. So Claude Haiku 4.5 API pricing in 2026 is easy to predict: you pay per successful call and nothing for failures.

Core capabilities of the Claude Haiku 4.5 API

Fastest responses

Near-instant replies for latency-sensitive apps.

Lowest cost

The most affordable Claude per token.

Great for classification

Ideal for routing, tagging and extraction.

Where the Claude Haiku 4.5 API fits in production

Every image below was generated on you.bot with the Claude Haiku 4.5 API itself — no stock photography.

Search that answers

Search that answers

Turn your own content into answers with citations instead of ten blue links.

Meeting notes into tasks

Meeting notes into tasks

Transcript in, owner-and-deadline list out.

Classification at volume

Classification at volume

Route tickets, tag content and score leads on your own rules.

Rewrites in your voice

Rewrites in your voice

Same message, tuned for the channel and the market.

Data cleanup

Data cleanup

Normalise messy records without a bespoke parser per source.

Evaluation and grading

Evaluation and grading

Score model output against your own rubric at scale.

Claude Haiku 4.5 API compared with the rest of its family

The same prices this page charges, side by side — so you can see what a version step costs before you switch.

ModelInput · 1M tokensCache Writes · 1M tokensOutput · 1M tokensCached Input · 1M tokens
Claude Haiku 5.55.4 cr$0.0546.75 cr$0.06827 cr$0.2700.54 cr$0.005
Claude Haiku 4.5this page32.1 cr$0.32165.59 cr$0.656160.5 cr$1.605.25 cr$0.052

How to access and deploy the Claude Haiku 4.5 API on you.bot

Step 1

Get your API key

Create a key in the dashboard — one key works across every model on the platform.

Step 2

Call the Claude Haiku 4.5 endpoint

POST your prompt and parameters to /api/v1/generate with your key in the Authorization header.

Step 3

Read the response

Completions are returned synchronously in the JSON response — no polling needed.

curl -X POST https://you.bot/api/v1/generate \
  -H "Authorization: Bearer sk-live-..." \
  -H "Content-Type: application/json" \
  -d '{
    "modelId": "claude-haiku-4-5",
    "input": { "prompt": "..." }
  }'

Claude Haiku 4.5 API on you.bot vs going direct

Featureyou.botGoing direct
Price per 1M tokens$0.32$1
Failed-task billingFree (auto-refund)Charged
IntegrationOne unified APIPer-vendor SDKs
Credit expiryNeverVaries

4.9

Based on 1,200+ developer reviews

Why choose you.bot for the Claude Haiku 4.5 API

68% cheaper

Lower rates than going direct to Anthropic — and you only pay for successful runs.

Production-grade reliability

Monitored availability with automatic credit refunds on failed jobs.

One API for everything

Swap models freely without touching your integration or juggling vendors.

FAQs about the Claude Haiku 4.5 API

Claude Haiku 4.5 is billed per 1M tokens at about $0.32 on you.bot — and you only pay for successful generations.

Anthropic

Claude Haiku 4.5 API code example

POST/api/v1/generate

Claude Haiku 4.5 — frontier reasoning and generation through one API.

Overview

Claude Haiku 4.5 is a single synchronous call: POST /api/v1/generate and the generated text is returned inline in the response — no polling step.

Authentication

All requests require a Bearer Token in the header:

Authorization: Bearer YOUR_API_KEY

Request parameters

ParameterTypeRequiredDescription
modelIdstringYesModel id: `claude-haiku-4-5`
inputobjectYesInput parameters object (see below)

input object parameters

ParameterTypeRequiredDescription
promptstringYesText value · default: Summarize the plot of a classic bank-heist film in exactly three suspenseful sentences, no spoilers past the setup.
thinkingbooleanNoLet the model reason before it answers. Reasoning uses output tokens (thinking_budget sets how many) and is not returned in the reply. (true/false) · default: false
max_tokensnumberNoOptional Claude output token limit. Leave empty to use the default of 4096. (range 1–128000)
streambooleanNoSend true to receive the reply as an event stream (Content-Type: text/event-stream). Omit it and you get a single JSON response — streaming is opt-in on this endpoint. (true/false) · default: true
imagesstring[]NoUp to 4 images per message — JPEG, PNG, GIF or WebP, 5 MB each. Send each one as a data: URL or an https URL. Images are billed as input tokens. (image URL)
thinking_budgetnumberNoOutput tokens the model may spend on its own reasoning when `thinking` is on. Minimum 1024; must be below max_tokens. Leave empty to use the default of 2048.
toolsarrayNoFunctions the model may call, up to 64. Each is { "type": "function", "function": { "name", "description", "parameters" } } with `parameters` a JSON Schema object (the flat Responses form and Anthropic's { "name", "description", "input_schema" } are accepted too); `strict: true` is not accepted on this model. When the model calls one, the response carries `toolCalls`: run the function, then send the conversation back in `messages` with the assistant's `tool_calls` and one { "role": "tool", "tool_call_id", "content" } message per result — and the same `tools` again. Function calling cannot be combined with web search in the same request.
tool_choicestring | objectNo`auto` (the model decides; the default when `tools` is set), `none` (no call), `required` (at least one call), or { "type": "function", "function": { "name" } } to require that function.

Response

The result is returned inline in the POST /api/v1/generate response (no polling):

{ "model": "…", "text": "…", "creditsCharged": …, "usage": { … } }   // returned directly by /api/v1/generate

Error codes

CodeDescription
200Request successful
400Invalid request parameters
401Authentication failed — check API Key
402Insufficient account balance
403IP not allowed for this key, or the key is restricted to other models
404Task not found, or it has expired
409Duplicate request — an identical submit arrived moments ago. Nothing was charged; retry is safe
413Payload too large — see the character and file-size limits for this model
429Rate limit exceeded — retry after the Retry-After header
500Internal server error
504Upstream timed out — nothing was delivered; retry is safe
400 · too_many_imagesMore than 4 image(s) attached to one message
400 · image_too_largeAn attached image is over the 5 MB per-image limit
400 · image_format_unsupportedUnsupported image format — accepted: image/jpeg, image/png, image/gif, image/webp (read from the file's own bytes, not the declared type)
400 · image_unreadableAn attached image, or its pixel size, could not be read
400 · capability_not_supportedA capability was requested (e.g. `web_search: true`) that this model does not offer — refused, nothing charged, rather than answered without it
422 · image_not_receivedThe model answered that it did not receive the attached image — the reply is not usable, so nothing is charged. Retry
400 · unknown_image_fieldImages were sent under a different key (input_urls, image_urls, imageUrl …). This model takes them as `images`
400 · image_placement_unsupportedAn image is attached to a message that is not sent to the model as an image (a system message, an assistant message or a tool result), or `images` was sent next to `messages` that contain no user message. Attach images to a user message — they are refused rather than dropped
400 · tools_invalid`tools` is malformed (not an array, a non-function tool, a bad or repeated name, parameters that are not an object schema), or a conversation with function calls was sent without `tools` — refused, nothing charged
400 · tool_choice_invalid`tool_choice` is malformed, names a function that is not in `tools`, or forces a call while `tools` is empty — refused, nothing charged
400 · message_tool_call_invalidAn assistant `tool_calls` entry or a `tool` message is malformed, or a call and its result do not pair up (every call needs its own tool message right after it) — refused, nothing charged
400 · message_tool_block_unsupportedA `tool_use` or `tool_result` content block was sent; send calls as `tool_calls` and results as `tool` messages instead
Request
curl --location 'https://you.bot/api/v1/generate' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "modelId": "claude-haiku-4-5",
    "input": {
        "prompt": "Summarize the plot of a classic bank-heist film in exactly three suspenseful sentences, no spoilers past the setup.",
        "thinking": false,
        "max_tokens": 4096,
        "stream": false,
        "images": [
            "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAFklEQVR4nGP8z4AATAxIHFQeMg8OAgB1yQIDpk8YwwAAAABJRU5ErkJggg=="
        ],
        "thinking_budget": 1024
    }
}'
Response
{
  "model": "claude-haiku-4-5",
  "text": "…",
  "creditsCharged": 0.07,
  "usage": {
    "inputTokens": 1400,
    "outputTokens": 120,
    "cachedInputTokens": 0,
    "cacheWriteTokens": 0
  }
}