All models

Anthropic: Claude Haiku 4.5

anthropic/claude-haiku-4.5
textVisionFilesReasoning

Claude Haiku 4.5 is Anthropic’s fastest and most efficient model, delivering near-frontier intelligence at a fraction of the cost and latency of larger Claude models. Matching Claude Sonnet 4’s performance. Text, images and files input, 200K context.

Price in / out
Cache, read / write
Context / Max output
200K / 64K
Released
Oct 15, 2025

Additional rates

Web search

Parameters

messagesrequired
reasoning_effortoff · low · medium · high
max_tokensoptional · alias max_completion_tokens
streamtrue · false
toolsfunction calling (OpenAI format)
tool_choiceauto · none · required
response_formatjson_object · json_schema
web_search · · ·
providerrouting: order · only · ignore · sort
stream_options{"include_usage": true}
image_urlimage (data: URL)
filePDF · DOCX · TXT · CSV · XLSX · PPTX (data: URL)
Fine-tuning · 4
temperature0–2
stopoptional
top_p0–1
top_koptional

How to use via API

from openai import OpenAI

client = OpenAI(base_url="https://api.mixen.ai/v1", api_key="mxn-...")
resp = client.chat.completions.create(
    model="anthropic/claude-haiku-4.5",
    messages=[{"role": "user", "content": "Привет"}],
    reasoning_effort="low",  # off · low · medium · high
    temperature=0.7,
    max_tokens=1024,
    stream=False,
)
print(resp.choices[0].message.content)

# Стриминг: stream=True — ответ приходит чанками
for chunk in client.chat.completions.create(
    model="anthropic/claude-haiku-4.5",
    messages=[{"role": "user", "content": "Привет"}],
    stream=True,
):
    print(chunk.choices[0].delta.content or "", end="", flush=True)

# с файлом (PDF · DOCX · TXT · CSV · XLSX · PPTX)
doc = client.chat.completions.create(
    model="anthropic/claude-haiku-4.5",
    messages=[{"role": "user", "content": [
        {"type": "text", "text": "Кратко перескажи документ"},
        {"type": "file", "file": {
            "filename": "doc.pdf",
            "file_data": "data:application/pdf;base64,JVBERi0...",
        }},
    ]}],
)
API docsTry in the bot