Claude Haiku 4.5 API
Claude Haiku 4.5 — small, fast, low-cost. Use for classifiers, simple chat, batch processing where Sonnet would be overkill.
Quickstart
This model uses Anthropic's native /v1/messages endpoint — auth via the x-api-key header, not Authorization Bearer. Compatible with the official Anthropic SDK by setting base_url to https://api.skillboss.co.
bashcurl https://api.skillboss.co/v1/messages \
-H "x-api-key: $SKILLBOSS_WHOLESALE_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-haiku-4-5",
"max_tokens": 1024,
"messages": [
{"role": "user", "content": "Hello"}
]
}'Your first 200 response is the fastest way to confirm setup. From there, swap in your real prompt and tune the model-specific parameters listed below.
Authentication
Every request must include your wholesale key. The header name depends on the endpoint — match the SDK you're using:
bashx-api-key: $SKILLBOSS_WHOLESALE_KEYAnthropic's native API uses x-api-key (not Authorization Bearer) — the official Anthropic SDK sets this automatically when you pass api_key to the client. The anthropic-version header is also required by the upstream Anthropic API.
Code examples
pythonimport os
from anthropic import Anthropic
client = Anthropic(
api_key=os.environ["SKILLBOSS_WHOLESALE_KEY"],
base_url="https://api.skillboss.co",
)
resp = client.messages.create(
model="anthropic/claude-haiku-4-5",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.content[0].text)typescriptimport Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
apiKey: process.env.SKILLBOSS_WHOLESALE_KEY,
baseURL: "https://api.skillboss.co",
});
const resp = await client.messages.create({
model: "anthropic/claude-haiku-4-5",
max_tokens: 1024,
messages: [{ role: "user", content: "Hello" }],
});
console.log(resp.content[0].text);Parameters
Anthropic /v1/messages parameters. Important: max_tokens is REQUIRED (unlike OpenAI where it's optional), and the system prompt is a top-level field (not a message with role=system).
Endpoint
| Method | POST |
| URL | https://api.skillboss.co/v1/messages |
| Auth header | x-api-key: $SKILLBOSS_WHOLESALE_KEY |
| Content-Type | application/json |
| Streaming | Set stream: true for SSE — each event is a Server-Sent Event with type prefix (message_start, content_block_delta, message_stop, etc.). |
Errors
The API uses standard HTTP status codes:
Pricing
Wholesale pricing is your account-specific discount × vendor list price. Discount rate depends on your contract — see the live numbers on the wholesale dashboard. The dashboard shows your current cost per 1M tokens (or per image / per second) for every model.
No platform markup on standard token billing. Volume tiers + monthly caps are configurable per key.