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.
- Preço de entrada
- $0.85
$1.00USD / 1M tokens - Preço de saída
- $4.25
$5.00USD / 1M tokens - Leitura de cache
- $0.09
$0.10USD / 1M tokens - Gravação de cache
- $1.06
$1.25USD / 1M tokens - Janela de contexto
- 200K
- Saída máxima
- 64K
Especificações
- Entrada
- Texto, imagem
- Saída
- Texto
Sobre este modelo
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.
Avaliações independentes
Benchmarks
Pontuações em avaliações padronizadas, comparadas com outros modelos no SandBase.
Métricas obtidas de Artificial Analysis · Índice de Inteligência v5 · Atualizado em 2026-11-16
Testar o modelo
Playground
Escreva um prompt para testar este modelo. O uso é cobrado pelos preços exibidos.
Teste um prompt
Adicionar uma imagem (opcional)
Sua resposta aparecerá aqui
Escolha um exemplo ou escreva um prompt e, em seguida, clique em Executar.
Comece a construir
Envie sua primeira solicitação
Escolha qualquer API compatível com autenticação unificada e rastreamento de uso.
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
}'Os campos abaixo descrevem a Chat Completions API. Messages API usa o formato nativo de solicitação e resposta do fornecedor, como mostrado no exemplo acima.
Esquema de entrada
10 parâmetros · 1 obrigatórios · 9 opcionais
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
messages | object[] | Obrigatório | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
stop | string[] | Opcional | Sequences where the model stops generating. The stop sequence is not included in the output. |
tools | array | Opcional | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
top_k | integer | Opcional | Only sample from the k most likely next tokens. · Mín.: 0 |
top_p | number | Opcional | Nucleus sampling: only tokens within this cumulative probability are considered. · Mín.: 0 · Máx.: 1 |
stream | boolean | Opcional | Stream the response as server-sent events instead of returning it in one piece. · Padrão: false |
max_tokens | integer | Opcional | Maximum number of tokens to generate in the response. · Máx.: 64000 |
temperature | number | Opcional | Sampling temperature. Higher values make output more random; lower values make it more focused. · Mín.: 0 · Máx.: 2 · Padrão: 1 |
tool_choice | string | Opcional | Controls tool use: "auto", "none", "required", or a specific function. |
response_format | object | Opcional | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
Esquema de saída
| Campo | Tipo | Descrição |
|---|---|---|
id | string | Identificador exclusivo da conclusão |
object | string | Tipo de objeto, por exemplo "chat.completion" |
model | string | Modelo usado para a conclusão |
choices | array | Lista de opções de conclusão |
choices[].message.content | string | Texto gerado |
choices[].finish_reason | string | Motivo pelo qual a geração foi interrompida |
usage.prompt_tokens | integer | Número de tokens no prompt |
usage.completion_tokens | integer | Número de tokens na conclusão |
usage.total_tokens | integer | Total de tokens usados |
Perguntas
FAQ
Como faço chamadas ao Anthropic Claude Haiku 4.5 pela SandBase?
Crie uma chave de API da SandBase e depois envie solicitações com o ID do modelo "anthropic/claude-haiku-4.5" para Chat Completions API (/v1/chat/completions) ou Messages API (/v1/messages) em https://api.sandbase.ai. Os exemplos de requisição nesta página mostram a carga exata.
Quanto custa o Anthropic Claude Haiku 4.5?
$0.85 por 1M tokens de entrada e $4.25 por 1M tokens de saída com o desconto atual de 15% (preço de tabela $1 / $5), cobrado por solicitação do seu saldo SandBase.
Qual é a janela de contexto de Anthropic Claude Haiku 4.5?
200K tokens de contexto, com até 64K tokens de saída por resposta.
Qual é a pontuação de Anthropic Claude Haiku 4.5 nos benchmarks?
Anthropic Claude Haiku 4.5 tem pontuação 7.4 no Artificial Analysis Intelligence Index (v5), ocupando a posição #31 entre 33 modelos na SandBase. Fonte: Artificial Analysis, medido como Claude 4.5 Haiku (Reasoning).
Quais recursos Anthropic Claude Haiku 4.5 suporta?
Anthropic Claude Haiku 4.5 suporta visão (entrada de imagem), raciocínio, chamada de função, saída estruturada. Veja as Especificações acima para a lista completa.
Preciso de uma conta Anthropic separada?
Não. Uma única chave de API e saldo da SandBase dão acesso a Anthropic Claude Haiku 4.5 e aos outros modelos do catálogo; você não precisa se cadastrar separadamente no Anthropic.
