Claude Haiku 4 5 API pricing and code examples

Claude Haiku 4 5 is an Anthropic model you can call through LivRouter's OpenAI-compatible endpoint. There is no separate Anthropic account and no separate invoice: one LivRouter API key reaches Claude Haiku 4 5 alongside every other model on the platform, billed per token from prepaid credits.

Claude Haiku 4 5 API at a glance

Compare Claude Haiku 4 5 API pricing, model ID, and OpenAI-compatible examples through LivRouter.

Model ID
claude-haiku-4-5
Provider
Anthropic
API format
OpenAI-compatible
Billing
Per token from LivRouter credits
Common integration focus
Anthropic API integrations

Claude Haiku 4 5 pricing

Rates are in USD per 1M tokens. The reference row is the provider base rate recorded in LivRouter's catalog; the plan rows show the published rates for each eligible plan.

PlanInput / 1MOutput / 1MCached input / 1M
Reference (Anthropic)$1.00$5.00$0.10
Max Claude Cursor−84%$0.16$0.80$0.016
Max Claude Kiro−93%$0.07$0.35$0.007
Pro Claude Cursor−76%$0.24$1.20$0.024
Pro Claude Kiro−85%$0.15$0.75$0.015

Lowest listed LivRouter rate for Claude Haiku 4 5: $0.07 per 1M input tokens on the Max Claude Kiro plan — about 93% below the Anthropic reference rate. See every plan and rate.

Source: LivRouter model catalog. Catalog checked .

What does a Claude Haiku 4 5 request cost?

One million uncached input tokens plus 100,000 output tokens at the listed Max Claude Kiro rates cost $0.105. This example excludes subscription fees and assumes the selected plan is active. Actual charges depend on input, output, and cached-token usage.

Compare plan fees and credit allowances

Call Claude Haiku 4 5 with the OpenAI SDK

Claude Haiku 4 5 follows the OpenAI chat completions format, so existing OpenAI client code keeps working — change the base URL and the model name. The same key also works for the Anthropic SDK and CLI agents such as Claude Code.

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.livrouter.com/v1",
  apiKey: process.env.LIVROUTER_API_KEY,
});

const completion = await client.chat.completions.create({
  model: "claude-haiku-4-5",
  messages: [{ role: "user", content: "Hello" }],
});

console.log(completion.choices[0].message.content);

Prefer plain HTTP? The same request over curl:

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

Frequently asked questions about Claude Haiku 4 5

How much does claude-haiku-4-5 cost through LivRouter?

claude-haiku-4-5 is metered per token. The Anthropic reference rate is $1.00 per 1M input tokens and $5.00 per 1M output tokens. On the Max Claude Kiro plan LivRouter charges $0.07 per 1M input tokens, about 93% below the Anthropic reference rate. Cached input is $0.007 per 1M tokens.

Can I call claude-haiku-4-5 with the OpenAI SDK?

Yes. claude-haiku-4-5 is reachable through the OpenAI-compatible endpoint at https://api.livrouter.com/v1. Keep your existing OpenAI client code and change the base URL and the model name to "claude-haiku-4-5".

Do I need a separate Anthropic account?

No. LivRouter routes the request for you. You only need a LivRouter API key and credits — no separate Anthropic subscription.

Is claude-haiku-4-5 available on the Start tier?

claude-haiku-4-5 is not part of the Start tier group. It is available on the paid plans listed above.

Other Anthropic models on LivRouter

View all model pricingAnthropic API overviewQuickstart guide