← All models
Anthropic: Claude Haiku 4.5
anthropic/claude-haiku-4.5textVisionFilesReasoning
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
messagesrequiredreasoning_effortoff · low · medium · highmax_tokensoptional · alias max_completion_tokensstreamtrue · falsetoolsfunction calling (OpenAI format)tool_choiceauto · none · requiredresponse_formatjson_object · json_schemaweb_search · · · providerrouting: order · only · ignore · sortstream_options{"include_usage": true}image_urlimage (data: URL)filePDF · DOCX · TXT · CSV · XLSX · PPTX (data: URL)Fine-tuning · 4
temperature0–2stopoptionaltop_p0–1top_koptionalHow 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...",
}},
]}],
)

