claude-haiku-4-5-20251001-thinking API
Build chat and extended-reasoning workflows with Claude Haiku on Openrouter API.
claude-haiku-4-5-20251001-thinkingclaude-haiku-4-5-20251001-thinking API pricing
All prices in USD. Openrouter API rates compared with the official list price for the same unit.
| Token type | Openrouter API | Official | Save |
|---|---|---|---|
| Input per 1M tokens | $0.88 | $1.00 | −12% |
| Cached input per 1M tokens | $0.088 | $0.10 | −12% |
| Cache write per 1M tokens | $1.10 | $1.25 | −12% |
| Cache write (5 min) per 1M tokens | $1.10 | $1.25 | −12% |
| Cache write (1 hour) per 1M tokens | $1.76 | $2.00 | −12% |
| Output per 1M tokens | $4.40 | $5.00 | −12% |
What is claude-haiku-4-5-20251001-thinking?
Anthropic’s claude-haiku-4-5-20251001-thinking is a Claude Haiku model for chat and reasoning workflows. Its thinking suffix positions it for extended reasoning, while its date suffix indicates a pinned snapshot suited to reproducible model selection. Developers can use it for multi-turn assistants, document analysis, and tool-assisted workflows. Openrouter API’s native Claude Messages interface supports text and image content, SSE streaming, tool definitions, and an extended thinking configuration. The model allows up to 200,000 input tokens and 64,000 output tokens.
Access it through Openrouter API with one API key, using the OpenAI-compatible base URL https://openrouterapi.ru/v1 or the native Claude Messages endpoint. Billing is pay-as-you-go and applies only to successful requests. Input costs $0.88 per 1M tokens, output costs $4.40 per 1M tokens, and cache reads cost $0.088 per 1M tokens. Cache writes are billed separately; the default configuration is about 12% below the developer's list price.
claude-haiku-4-5-20251001-thinking highlights
Extended Thinking Controls
The native Claude Messages API exposes a thinking object for extended reasoning. Responses may include thinking blocks when enabled.
Large Token Limits
Supports up to 200,000 input tokens and 64,000 output tokens. Set max_tokens to control the requested generation length.
Prompt Cache Support
Supports prompt-cache reads and writes, with documented 5-minute and 1-hour cache-write pricing. Cache reads cost $0.088 per 1M tokens.
Native Claude Integration
Openrouter API’s Claude Messages endpoint supports multi-turn conversations, text and image content, tool use, and SSE streaming. Responses pass through without a response wrapper.
How to call the claude-haiku-4-5-20251001-thinking API in 4 steps
- 01
Get an API key
Sign in to Openrouter API, top up from $50, and create an sk-ora key in the console.
- 02
Set the base URL
Use https://openrouterapi.ru/v1 as the base URL in your SDK or HTTP client.
- 03
Send the request
Call POST /v1/chat/completions with "model": "claude-haiku-4-5-20251001-thinking" and the parameters below.
- 04
Handle the response
Read the response (or stream tokens with stream: true). Usage and cost appear in your console.
Request examples
Documentation: Claude Messages APIcurl https://openrouterapi.ru/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTERAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-haiku-4-5-20251001-thinking",
"messages": [
{"role": "system", "content": "You are a concise assistant."},
{"role": "user", "content": "Explain what an AI API gateway does in two sentences."}
],
"stream": false
}'Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Required | claude-sonnet-4-6 | Model name |
messages | array | Required | — | List of messages |
role | string | Required | user | Role type |
content | string | Required | — | Message content |
max_tokens | integer | Required | — | Maximum tokens to generate (**required**, same as Anthropic official) |
thinking | object | Optional | — | Extended thinking configuration |
system | string | array | Optional | — | System prompt |
temperature | number | Optional | — | Temperature parameter, range 0-1 |
top_p | number | Optional | — | Nucleus sampling parameter, range 0-1 |
top_k | integer | Optional | — | Top-K sampling |
stream | boolean | Optional | — | Enable streaming |
stop_sequences | array | Optional | — | Stop sequences |
metadata | object | Optional | — | Metadata |
tools | array | Optional | — | Tool definitions |
tool_choice | object | Optional | — | Tool choice strategy |
What you can build with claude-haiku-4-5-20251001-thinking
Document analysis assistants
Build assistants that work through supplied documents and answer follow-up questions, using the input allowance and multi-turn conversation support.
Reasoning-oriented chat
Use the extended thinking configuration for tasks that benefit from working through constraints before producing an answer.
Tool-assisted workflows
Define tools through the Claude Messages interface to let an assistant request application functions during a conversation.
Repeated-context applications
Build workflows that reuse shared prompt context, with prompt caching available to reduce the cost of cache-read tokens.
Tips for better results
- 01
Set an output budget
Include max_tokens in native Claude Messages requests—it is required. Choose a budget appropriate to the task rather than always requesting the 64,000-token maximum.
- 02
Prefer explicit thinking configuration
For easier migration to Anthropic’s official endpoint, the docs recommend a standard model name with the thinking object over a platform-side thinking alias. Preserve thinking-block signatures unchanged when returning those blocks in multi-turn conversations.
- 03
Plan cache lifetimes
Cache writes with a 5-minute TTL cost $1.10 per 1M tokens; writes with a 1-hour TTL cost $1.76 per 1M tokens. Choose based on how long you expect to reuse the context, accounting for separate cache-read charges.
- 04
Keep API formats separate
Use /v1/chat/completions for OpenAI-compatible requests or /v1/messages for native Claude requests. On the native interface, place system instructions in the separate system parameter, not in messages.
Limits and things to know
Maximum input is 200,000 tokens, and maximum output is 64,000 tokens.
Native Claude Messages requests require max_tokens; the model may stop before reaching that limit.
Returning thinking blocks with altered signatures causes the request to be rejected.
claude-haiku-4-5-20251001-thinking API FAQ
How much does claude-haiku-4-5-20251001-thinking cost on Openrouter API?
Input costs $0.88 per 1M tokens, output costs $4.40 per 1M tokens, and cached input costs $0.088 per 1M tokens. Cache writes cost $1.10 per 1M tokens, including the 5-minute TTL option; the 1-hour TTL option costs $1.76 per 1M tokens. The default configuration is about 12% below the developer's list price, with billing only for successful requests.
How do I call this model through Openrouter API?
Set model to claude-haiku-4-5-20251001-thinking and send an authenticated request to https://openrouterapi.ru/v1/chat/completions for the OpenAI-compatible format. For native Claude Messages, use https://openrouterapi.ru/v1/messages with messages and the required max_tokens parameter.
Which parameters control extended thinking and streaming?
The native Claude Messages interface accepts a thinking object for extended thinking and stream for SSE streaming. It also exposes system, temperature, top_p, top_k, tools, and tool_choice controls; the docs recommend using either temperature or top_p, not both.
What are the input and output token limits?
The model supports a maximum of 200,000 input tokens and 64,000 output tokens. On the native Claude Messages interface, max_tokens is required and sets the requested generation cap, but the model may stop earlier.
Can I use this model commercially?
Commercial use is subject to the model developer’s terms. Review Anthropic’s applicable terms and Openrouter API’s terms for your intended application.
What do the thinking and date suffixes mean?
The thinking suffix positions this variant for extended reasoning, and the date suffix indicates a pinned snapshot for reproducible model selection. The docs recommend using a standard model name plus the thinking parameter when portability to Anthropic’s official endpoint matters.
Related models
claude-haiku-4-5
claude-haiku-4-5-20251001
claude-haiku-5-5
claude-fable-5
claude-fable-5.1
claude-fable-5.2
claude-opus-4-5
claude-opus-4-5-20251101
Start building with claude-haiku-4-5-20251001-thinking
One key, pay as you go from $50, billed only for successful requests.
