APIMart
Back to all models

Claude Haiku 4.5 API

AnthropicModel ID claude-haiku-4-5Text modelReleased October 15, 2025

Use Claude Haiku 4.5 to route support tickets, run as a sub-agent on small tasks a lead agent splits out, or answer product how-to questions in a live chat.

Max input
200,000 tokens
Max output
64,000 tokens
Input → output
Text, Image → Text
Knowledge cutoff
February 2025
  • Image input
  • Streaming
  • Cached input pricing
  • OpenAI SDK compatible

Claude Haiku 4.5 API use cases

Each use case comes with an illustrative example: source material, a prompt and a hand-written sample answer, not actual model output. Copy the prompt, swap in your own material and try it on Claude Haiku 4.5.

Try Claude Haiku 4.5 with your own material

Route support tickets

Send Claude Haiku 4.5 the category list with each ticket and ask for exactly one team, one priority and a one-line reason. Before launch, compare a few hundred results with human routing and tighten the categories where they disagree.

Example: Which team should get this ticket?

Material

Team list
Billing: charges, invoices, refunds. Technical: login, errors, API. Sales: contracts, quotes.
Ticket
Since this morning every API call returns 401 and our production service is down. We renewed yesterday.

PromptPick one team from the list, plus a priority (high / medium / low) and a reason of 15 words or fewer. Output JSON.

Sample answer · written by hand to show the reasoning

{"team": "Technical", "priority": "high", "reason": "All API calls return 401; production is down"}. The ticket mentions the renewal, but the problem to solve is the API error, so it goes to Technical rather than Billing; an outage is high priority.

About the Claude Haiku 4.5 API

  • Coding close to Sonnet 4

    Anthropic says Claude Haiku 4.5 matches Claude Sonnet 4 at coding for one-third the cost and more than twice the speed, with 73.3% on SWE-bench Verified.

  • Built for sub-agents

    Anthropic’s suggested pattern has Sonnet 4.5 break down the work and orchestrate several Haiku 4.5 instances in parallel. It fits high-volume, well-defined classification, summarizing and checking tasks.

  • 200K context, 64K output

    A 200K-token context window, up to 64K output tokens, text and image input and extended thinking. For a longer context, switch to Claude Haiku 5.5.

  • Claude Haiku 4.5 API key and access

    You don’t need a separate Claude Haiku 4.5 API key: one APIMart key works for every model. Claude Haiku 4.5 API pricing is in the table on this page, and access goes through an OpenAI Chat Completions-compatible endpoint with the model ID claude-haiku-4-5.

How to call the Claude Haiku 4.5 API

To call Claude Haiku 4.5, you only need an APIMart API key and your existing OpenAI SDK, or send plain HTTP requests.

POST /v1/chat/completions
curl https://api.apimart.ai/v1/chat/completions \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "claude-haiku-4-5",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

Claude Haiku 4.5 access details

Model IDclaude-haiku-4-5
Base URLhttps://api.apimart.ai/v1
Endpoint/chat/completions

Common parameters

model
Required
messages
Required
stream
Optional
max_tokens
Optional
temperature
Optional
All request parameters, response fields and error codes

Claude Haiku 4.5 API request parameters

Claude Haiku 4.5 uses the general chat endpoint, POST /v1/chat/completions, with a JSON body. model and messages are required; every other parameter is optional.

ParameterTypeRequiredDescription
modelstringYesModel ID. Use claude-haiku-4-5 for this model.
messagesarrayYesConversation messages. Each message has a role (system, user, or assistant) and content. Include earlier messages for multi-turn conversations.
streambooleanNoWhether to stream the output. true returns chunks over SSE, false returns the full response at once. Default: true.
temperaturenumberNoOutput randomness, 0–2. Default: 1.0. Lower values give more deterministic output.
top_pnumberNoNucleus sampling, 0–1. Default: 1.0. Adjust this or temperature, not both.
max_tokensintegerNoMaximum number of tokens to generate for the reply.
frequency_penaltynumberNoFrequency penalty, -2.0 to 2.0. Default: 0. Positive values reduce repeated wording.
presence_penaltynumberNoPresence penalty, -2.0 to 2.0. Default: 0. Positive values encourage new topics.
stopstring | arrayNoUp to 4 stop sequences. Generation stops when any of them appears.
nintegerNoNumber of replies to generate. Default: 1.

Response fields

The response contains the fields below. Token usage is returned in usage, which you can use to check costs.

FieldTypeDescription
idstringUnique identifier for the request.
modelstringThe model that handled the request.
choicesarrayList of replies. Each item contains message (role and content) and finish_reason.
usageobjectToken usage: prompt_tokens, completion_tokens, and total_tokens.

Error codes

Failed requests return an error object with code, message, and type.

StatusTypeMeaning
400invalid_request_errorInvalid request parameters.
401authentication_errorThe API key is invalid or missing.
402payment_requiredInsufficient account balance.
403permission_errorNo permission to access this resource.
429rate_limit_errorToo many requests. Retry later.
500server_errorInternal server error.
502bad_gatewayGateway error. The service is temporarily unavailable.

Claude Haiku 4.5 API pricing

The Claude Haiku 4.5 API is billed by token usage, and prices depend on your membership tier. Prices below are per million tokens; 1 US dollar = 10 credits.

ItemGoldCurrent pricePlatinumDiamondOfficial priceYou save
Input8Credits~$0.87.6Credits~$0.767.2Credits~$0.7210Credits~$120%
Cached input0.8Credits~$0.080.76Credits~$0.0760.72Credits~$0.0721Credits~$0.120%
Output40Credits~$438Credits~$3.836Credits~$3.650Credits~$520%

Prices are for reference only. View full pricing

Why call Claude Haiku 4.5 API through APIMart

  • 20% below official pricing

    Claude Haiku 4.5 API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below Anthropic's official prices, and cached input costs just $0.08 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    Claude Haiku 4.5, the rest of its family and 500+ models from GPT, Claude, Gemini and more share one API key and one account balance. Switching models is just a change to the model parameter.

  • Change two lines of existing code

    If you already use the OpenAI SDK, point base_url at https://api.apimart.ai/v1 and swap in your APIMart API key. Requests and responses keep the same format.

  • Try it online before you code

    Try Claude Haiku 4.5 with your own material in the Playground, no code or setup needed, and integrate once you like the results.

    Open Playground

Which Anthropic model should you choose?

Base prices per 1M tokens (USD). Your Claude Haiku 4.5 API key works for every model in the table; just change the model parameter.

Differences between Anthropic models
ComparisonClaude Haiku 4.5 CurrentClaude Sonnet 4.5Claude Opus 4.5Claude Opus 4.6Claude Sonnet 4.6Claude Opus 4.7Claude Opus 4.8Claude Fable 5Claude Sonnet 5Claude Opus 5Claude Haiku 5.5Claude Sonnet 5.5Claude Opus 5.5Claude Fable 5.1Claude Fable 5.2
Best forSmall model, Sub-agents and bulk tasks, 200K contextCoding and agents, Computer use, 200K contextCoding and agents, Adjustable effort, 200K contextCoding and code review, Knowledge work, 1M contextCoding, Computer use, 1M contextHard coding tasks, High-resolution images, Long agentic runsLarge code migrations, Legal and knowledge work, Computer useLong-running agents, Software engineering, Knowledge work and scienceCoding, Research agents, Computer useCoding, Agents, Knowledge workClassification & routing, Data extraction, Sub-agent tasksEveryday coding, Agentic tasks, Data analysisAgentic coding, Large-scale refactoring, Knowledge workCode review, Long-running coding, Documents and spreadsheetsHard coding problems, Scientific research, Financial modeling
Max input200,000 tokens200,000 tokens200,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens
Max output64,000 tokens64,000 tokens64,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens
Knowledge cutoffFebruary 2025January 2025May 2025May 2025August 2025January 2026January 2026January 2026January 2026May 2026June 2026June 2026June 2026June 2026June 2026
Input price$0.8$2.4$4$4$2.4$4$4$8$1.6$4$0.08$1.6$3.2$8$6.4
Output price$4$12$20$20$12$20$20$40$8$20$0.4$8$16$40$32

Claude Haiku 4.5 FAQ

How is Claude Haiku 4.5 different from Claude Haiku 5.5?

Claude Haiku 5.5 is the next generation: context grows from 200K to 1M tokens, maximum output from 64K to 128K, and it adds effort levels. It uses a new tokenizer that counts about 30% more tokens for the same text. Try Haiku 5.5 first for new projects; before moving a Haiku 4.5 workload, rerun your own prompts to compare output and cost.

How do Claude Haiku 4.5 and Claude Sonnet 4.5 work together?

The pattern Anthropic described at launch: Sonnet 4.5 breaks a complex problem into a multi-step plan, then orchestrates several Haiku 4.5 instances to complete subtasks in parallel. Give planning and deep reasoning to Sonnet and high-volume, well-defined tasks to Haiku; on APIMart both use the same API key and differ only in the model parameter.

How good is Claude Haiku 4.5 at coding?

In Anthropic’s results, Claude Haiku 4.5 scored 73.3% on SWE-bench Verified (averaged over 50 trials, 128K thinking budget) and 41.75% on Terminal-Bench with a 32K thinking budget. Anthropic says its coding performance is similar to Claude Sonnet 4 at one-third the cost.

What is the Claude Haiku 4.5 knowledge cutoff?

Anthropic lists a reliable knowledge cutoff of February 2025 and a training data cutoff of July 2025 for Claude Haiku 4.5. For newer information, include the material in the request or pair it with a web search tool.

How can I try this model online?

Click Start chatting or Open Playground to visit the existing APIMart Playground. Select Claude Haiku 4.5 in the text category to start exploring.

Which model ID does the Claude Haiku 4.5 API use?

Set model to claude-haiku-4-5. Copy the exact ID from the page heading or the integration details panel.

Is it compatible with the OpenAI SDK?

You can keep the OpenAI SDK. Set base_url to https://api.apimart.ai/v1, provide your APIMart API key, and use the model ID on this page.

What is the context window of Claude Haiku 4.5?

On APIMart, Claude Haiku 4.5 accepts up to 200,000 input tokens per request. Your prompt, earlier messages, and file content all count toward it.

How many tokens can it output at once?

Claude Haiku 4.5 can output up to 64,000 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

How much does the Claude Haiku 4.5 API cost?

The Claude Haiku 4.5 API on APIMart is billed by token, and prices depend on your membership tier. Gold: $0.8 per million input tokens and $4 per million output tokens. Diamond: $0.72 per million input tokens and $3.6 per million output tokens. Prices may change; the pricing page has the current rates.

Does it support streaming?

Yes. The general chat endpoint streams over SSE by default. Set stream to false to receive the complete response at once.

How do I get an API key?

Sign in to APIMart and create a key on the API Keys page, then send it in the Authorization: Bearer header. The same key also works for other models on the platform.