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.
- Prix d'entrée
- $0.85
$1.00USD / 1 M tokens - Prix de sortie
- $4.25
$5.00USD / 1 M tokens - Lecture du cache
- $0.09
$0.10USD / 1 M tokens - Écriture du cache
- $1.06
$1.25USD / 1 M tokens - Fenêtre de contexte
- 200K
- Sortie max
- 64K
Spécifications
- Entrée
- Texte, image
- Sortie
- Texte
À propos de ce modèle
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.
Évaluations indépendantes
Benchmarks
Scores sur des évaluations standardisées, comparés aux autres modèles sur SandBase.
Métriques issues de Artificial Analysis · Indice d’intelligence v5 · Mis à jour le 2026-11-16
Essayer le modèle
Bac à sable
Rédigez un prompt pour tester ce modèle. L'utilisation est facturée aux tarifs affichés.
Essayez une invite
Ajouter une image (facultatif)
Votre réponse apparaîtra ici
Choisissez un exemple ou rédigez une invite, puis cliquez sur Exécuter.
Commencer à construire
Envoyez votre première requête
Choisissez l'une des APIs prises en charge avec authentification unifiée et suivi de l'utilisation.
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
}'Les champs ci-dessous décrivent l’API Chat Completions. Messages API utilise le format natif de requête et de réponse du fournisseur, comme indiqué dans l’exemple ci-dessus.
Schéma d'entrée
10 paramètres · 1 obligatoires · 9 facultatifs
| Paramètre | Type | Obligatoire | Description |
|---|---|---|---|
messages | object[] | Obligatoire | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
stop | string[] | Facultatif | Sequences where the model stops generating. The stop sequence is not included in the output. |
tools | array | Facultatif | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
top_k | integer | Facultatif | Only sample from the k most likely next tokens. · Min : 0 |
top_p | number | Facultatif | Nucleus sampling: only tokens within this cumulative probability are considered. · Min : 0 · Max : 1 |
stream | boolean | Facultatif | Stream the response as server-sent events instead of returning it in one piece. · Par défaut : false |
max_tokens | integer | Facultatif | Maximum number of tokens to generate in the response. · Max : 64000 |
temperature | number | Facultatif | Sampling temperature. Higher values make output more random; lower values make it more focused. · Min : 0 · Max : 2 · Par défaut : 1 |
tool_choice | string | Facultatif | Controls tool use: "auto", "none", "required", or a specific function. |
response_format | object | Facultatif | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
Schéma de sortie
| Champ | Type | Description |
|---|---|---|
id | string | Identifiant unique de la complétion |
object | string | Type d'objet, par exemple « chat.completion » |
model | string | Modèle utilisé pour la complétion |
choices | array | Liste des choix de complétion |
choices[].message.content | string | Contenu textuel généré |
choices[].finish_reason | string | Raison de l'arrêt de la génération |
usage.prompt_tokens | integer | Nombre de tokens dans le prompt |
usage.completion_tokens | integer | Nombre de tokens dans la complétion |
usage.total_tokens | integer | Nombre total de tokens utilisés |
Questions
FAQ
Comment appeler Anthropic Claude Haiku 4.5 via SandBase ?
Créez une clé API SandBase, puis envoyez des requêtes avec l’identifiant de modèle "anthropic/claude-haiku-4.5" à Chat Completions API (/v1/chat/completions) ou Messages API (/v1/messages) sur https://api.sandbase.ai. Les exemples de requêtes sur cette page montrent la charge utile exacte.
Combien coûte Anthropic Claude Haiku 4.5 ?
$0.85 pour 1 M de tokens d’entrée et $4.25 pour 1 M de tokens de sortie avec la remise actuelle de 15% (prix catalogue $1 / $5), facturé à la requête depuis votre solde SandBase.
Quelle est la fenêtre de contexte de Anthropic Claude Haiku 4.5 ?
200K tokens de contexte, avec jusqu’à 64K tokens de sortie par réponse.
Quel score Anthropic Claude Haiku 4.5 obtient-il sur les benchmarks ?
Anthropic Claude Haiku 4.5 obtient un score de 7.4 sur l’Artificial Analysis Intelligence Index (v5), se classant #31 parmi 33 modèles sur SandBase. Source : Artificial Analysis, mesuré comme Claude 4.5 Haiku (Reasoning).
Quelles fonctionnalités Anthropic Claude Haiku 4.5 prend-il en charge ?
Anthropic Claude Haiku 4.5 prend en charge vision (entrée d’image), raisonnement, appel de fonction, sortie structurée. Consultez les spécifications ci-dessus pour la liste complète.
Ai-je besoin d’un compte Anthropic distinct ?
Non. Une seule clé API SandBase et un seul solde vous donnent accès à Anthropic Claude Haiku 4.5 et aux autres modèles du catalogue ; vous n’avez pas besoin de créer un compte Anthropic séparément.
