Anthropic: Claude Haiku 4.5
by anthropic
Input price
$1.00 /1M tok
Output price
$5.00 /1M tok
Context length
200K tokens
JSON mode
Yes
Our tests and reviews
-
Gemini 2.5 Flash vs Haiku 4.5 vs GPT-5 mini: GPT-6 Luna beats all 3
Nov 9, 2026 · We ran Gemini 2.5 Flash, Claude Haiku 4.5 and GPT-5 mini against two newer budget models on 8 real tasks. GPT-6 Luna won at $0.19 per 1,000 answers.
-
Best LLM for code review in 2026: Haiku 4.5 beats GPT-4o
May 18, 2026 · We tested four LLMs on six real buggy diffs: Claude Opus 4.7 swept the field, Haiku 4.5 beat GPT-4o 5-0, and GPT-4o finished with zero wins in 2026.
Model details
Model ID
anthropic/claude-haiku-4.5
Provider
anthropic
Modality
text+image+file->text
Supports response_format
Yes
Supported parameters
| Parameter | Type | Description |
|---|---|---|
| model | string | Model identifier, e.g. anthropic/claude-haiku-4.5 |
| messages | array | Array of message objects with role and content |
| temperature | number | Sampling temperature (0-2). Default varies by model. |
| max_tokens | integer | Max tokens to generate |
| top_p | number | Nucleus sampling (0-1) |
| stream | boolean | Stream response via SSE |
| stop | string | array | Stop sequences |
| response_format | object | Set to {"type": "json_object"} for guaranteed JSON output |