Claude Haiku 4.5
anthropic/claude-haiku-4.5Claude 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 across reasoning, coding, and computer-use tasks, Haiku 4.5 brings frontier-level capability to real-time and high-volume applications.
- Цена входа
- $0.85
$1.00USD / 1 млн токенов - Цена выхода
- $4.25
$5.00USD / 1 млн токенов - Чтение из кэша
- $0.09
$0.10USD / 1 млн токенов - Запись в кэш
- $1.06
$1.25USD / 1 млн токенов - Окно контекста
- 200K
- Макс. выход
- 64K
Характеристики
- Вход
- Текст, изображение
- Выход
- Текст
Об этой модели
Claude Haiku 4.5 is the fast, low-cost tier of Anthropic's Claude 4.5 family. It reads text and images, writes text, and has a 200K-token context window. Anthropic added extended thinking to Haiku with this release; you turn it on per request through the Messages API.
When to use it
- Real-time chat and support assistants where latency matters.
- Sub-agents that handle many small steps for a larger model.
- Coding help and code review at high volume.
Call it
The model works on Chat Completions (/v1/chat/completions) and on Anthropic's Messages API (/v1/messages). Use Messages when you want extended thinking.
from openai import OpenAI
client = OpenAI(base_url="https://api.sandbase.ai/v1", api_key="$SANDBASE_API_KEY")
resp = client.chat.completions.create(
model="anthropic/claude-haiku-4.5",
messages=[{"role": "user", "content": "Explain what an API gateway does."}],
max_tokens=512,
)
print(resp.choices[0].message.content)
What works on SandBase
Checked with real calls through SandBase on October 28, 2026.
| Feature | Works | Notes |
|---|---|---|
| Streaming | Yes | stream: true, with usage in the last chunk when stream_options.include_usage is set. |
| Tool calling | Yes | tools and tool_choice; returns tool_calls. |
| Image input | Yes | image_url parts with an https URL or a data: URI. |
| Extended thinking | Messages API | Send thinking: {"type": "enabled", "budget_tokens": 2000} to /v1/messages; the reply starts with a thinking block. reasoning_effort on Chat Completions has no effect. |
| Structured output | No | response_format on Chat Completions and output_format on Messages are both ignored; the model answers in prose. Describe the JSON you want in the prompt, or define a tool whose input schema is the shape you need. |
Limits and parameters
- Context window: 200,000 tokens.
- Maximum output: 64,000 tokens per request (
max_tokens). - Accepts
temperature,top_pandstopon Chat Completions, andstop_sequenceson Messages.
Example response
Real response to "In two sentences, explain what an API gateway does." through Chat Completions, trimmed.
{
"id": "431cc58b-9b0…",
"object": "chat.completion",
"model": "anthropic/claude-haiku-4.5",
"choices": [
{
"index": 0,
"finish_reason": "stop",
"message": {
"role": "assistant",
"content": "An API gateway is the single entry point that sits in front of a set of backend services and routes each incoming client request to the service that handles…"
}
}
],
"usage": {
"completion_tokens": 98,
"completion_tokens_details": {
"reasoning_tokens": 0
},
"prompt_tokens": 18,
"prompt_tokens_details": {
"cache_write_tokens": 0,
"cached_tokens": 0
},
"total_tokens": 116
}
}
Pricing
| Tokens | Price per 1M |
|---|---|
| Input | $1.00 |
| Output | $5.00 |
| Cached input (read) | $0.10 |
| Cache write, 5-minute | $1.25 |
| Cache write, 1-hour | $2.00 |
Prompt caching works through cache_control blocks on /v1/messages; a repeat call reports the cached prefix as cache_read_input_tokens. Reads cost 10% of the input price.
Related models
- Claude Haiku 5.5: the current Haiku tier.
- Claude Sonnet 4.5: the Sonnet model of the same generation, for harder tasks.
Независимые оценки
Бенчмарки
Оценки по стандартизированным тестам в сравнении с другими моделями на SandBase.
Метрики взяты из Artificial Analysis · Индекс интеллекта v5 · Обновлено 2026-11-16
Попробовать модель
Песочница
Введите prompt, чтобы попробовать эту модель. Использование тарифицируется по указанным ценам.
Попробуйте запрос
Добавить изображение (необязательно)
Ваш ответ появится здесь
Выберите пример или напишите запрос, затем нажмите «Запустить».
Начните разработку
Отправьте свой первый запрос
Выберите любой поддерживаемый API с единообразной аутентификацией и учётом использования.
curl -X POST "https://api.sandbase.ai/v1/chat/completions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-haiku-4.5",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2048
}'Поля ниже описывают Chat Completions API. Messages API использует собственный формат запроса и ответа поставщика, как показано в примере выше.
Схема ввода
10 параметров · 1 обязательных · 9 необязательных
| Параметр | Тип | Обязательный | Описание |
|---|---|---|---|
messages | object[] | Обязательный | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
stop | string[] | Необязательный | Sequences where the model stops generating. The stop sequence is not included in the output. |
tools | array | Необязательный | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
top_k | integer | Необязательный | Only sample from the k most likely next tokens. · Мин.: 0 |
top_p | number | Необязательный | Nucleus sampling: only tokens within this cumulative probability are considered. · Мин.: 0 · Макс.: 1 |
stream | boolean | Необязательный | Stream the response as server-sent events instead of returning it in one piece. · По умолчанию: false |
max_tokens | integer | Необязательный | Maximum number of tokens to generate in the response. · Макс.: 64000 |
temperature | number | Необязательный | Sampling temperature. Higher values make output more random; lower values make it more focused. · Мин.: 0 · Макс.: 2 · По умолчанию: 1 |
tool_choice | string | Необязательный | Controls tool use: "auto", "none", "required", or a specific function. |
response_format | object | Необязательный | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
Схема вывода
| Поле | Тип | Описание |
|---|---|---|
id | string | Уникальный идентификатор завершения |
object | string | Тип объекта, например "chat.completion" |
model | string | Модель, использованная для завершения |
choices | array | Список вариантов завершения |
choices[].message.content | string | Сгенерированный текст |
choices[].finish_reason | string | Причина остановки генерации |
usage.prompt_tokens | integer | Количество токенов в запросе |
usage.completion_tokens | integer | Количество токенов в завершении |
usage.total_tokens | integer | Общее количество использованных токенов |
Вопросы
FAQ
Как вызвать Anthropic Claude Haiku 4.5 через SandBase?
Создайте API key SandBase, затем отправляйте запросы с идентификатором модели "anthropic/claude-haiku-4.5" на Chat Completions API (/v1/chat/completions) или Messages API (/v1/messages) по адресу https://api.sandbase.ai. Примеры запросов на этой странице показывают точный payload.
Сколько стоит Anthropic Claude Haiku 4.5?
$0.85 за 1 млн входных токенов и $4.25 за 1 млн выходных токенов с текущей скидкой 15% (базовая цена $1 / $5), списывается за каждый запрос с баланса SandBase.
Каково контекстное окно Anthropic Claude Haiku 4.5?
200K токенов контекста и до 64K выходных токенов на ответ.
Как Anthropic Claude Haiku 4.5 показывает себя в бенчмарках?
Anthropic Claude Haiku 4.5 набирает 7.4 в Artificial Analysis Intelligence Index (v5), занимая #31 из 33 моделей в SandBase. Источник: Artificial Analysis, измерено как Claude 4.5 Haiku (Reasoning).
Какие возможности поддерживает Anthropic Claude Haiku 4.5?
Anthropic Claude Haiku 4.5 поддерживает зрение (вход изображений), рассуждение, вызов функций, структурированный вывод. Полный список см. выше в разделе Specifications.
Нужен ли мне отдельный аккаунт Anthropic?
Нет. Один API key SandBase и один баланс дают вам доступ к Anthropic Claude Haiku 4.5 и другим моделям в каталоге; отдельно регистрироваться в Anthropic не нужно.
