Claude Haiku 4.5

by Anthropic

Fastest and most compact Claude model

Parameters
Haiku
Context Length
200K
Category
chat
Available Serverless

Run queries immediately, pay only for usage

$1.05in|$5.25out

Per 1M Tokens

Try this modelView documentation

About this model

Fastest and most compact Claude model

Capabilities

VisionTool callingCode generationStreaming

Model Details

Provider
Anthropic
Model ID
claude-haiku-4.5
Parameters
Haiku
Context Length
200K tokens
Category
chat

API Usage

Use the DOS API to integrate Claude Haiku 4.5into your applications. Our API is compatible with OpenAI's client libraries for easy migration.

Model ID

claude-haiku-4.5

Python

python
from dos import DOS

client = DOS()

response = client.chat.completions.create(
    model="claude-haiku-4.5",
    messages=[
        {"role": "user", "content": "Hello, how are you?"}
    ]
)

print(response.choices[0].message.content)

cURL

bash
curl https://api.dos.ai/v1/chat/completions \
  -H "Authorization: Bearer $DOS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-haiku-4.5",
    "messages": [
      {"role": "user", "content": "Hello, how are you?"}
    ]
  }'

Node.js

javascript
import DOS from 'dos-ai';

const client = new DOS();

const response = await client.chat.completions.create({
  model: "claude-haiku-4.5",
  messages: [
    { role: "user", content: "Hello, how are you?" }
  ]
});

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