claude-haiku-4-5-20251001-thinking API
Build chat and extended-reasoning workflows with Claude Haiku on APISea.
claude-haiku-4-5-20251001-thinkingتسعير API لنموذج claude-haiku-4-5-20251001-thinking
جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.
| نوع الـ token | APISea | رسمي | وفّر |
|---|---|---|---|
| الإدخال لكل 1M رمز | $0.88 | $1.00 | −12% |
| الإدخال المخزّن مؤقتًا لكل 1M رمز | $0.088 | $0.10 | −12% |
| الكتابة إلى ذاكرة التخزين المؤقت لكل 1M رمز | $1.10 | $1.25 | −12% |
| الكتابة في ذاكرة التخزين المؤقت (5 دقائق) لكل 1M رمز | $1.10 | $1.25 | −12% |
| الكتابة في ذاكرة التخزين المؤقت (ساعة واحدة) لكل 1M رمز | $1.76 | $2.00 | −12% |
| الإخراج لكل 1M رمز | $4.40 | $5.00 | −12% |
ما هو 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. APISea’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 APISea with one API key, using the OpenAI-compatible base URL https://api.apisea.ai/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 provider list price.
أبرز مزايا claude-haiku-4-5-20251001-thinking
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
APISea’s Claude Messages endpoint supports multi-turn conversations, text and image content, tool use, and SSE streaming. Responses pass through without a response wrapper.
كيفية استدعاء API الخاص بـ claude-haiku-4-5-20251001-thinking في 4 خطوات
- 01
احصل على API key
سجّل الدخول إلى APISea، واشحن رصيدك بدءًا من $50، وأنشئ مفتاح sk-sea من وحدة التحكم.
- 02
اضبط عنوان URL الأساسي
استخدم https://api.apisea.ai/v1 عنوانًا أساسيًا في SDK أو عميل HTTP.
- 03
أرسل الطلب
استدعِ POST /v1/chat/completions مع "model": "claude-haiku-4-5-20251001-thinking" والمعلمات أدناه.
- 04
تعامل مع الاستجابة
اقرأ الاستجابة (أو استقبل الـ tokens بالتدفق باستخدام stream: true). يظهر الاستخدام والتكلفة في وحدة التحكم.
أمثلة على الطلبات
الوثائق: Claude Messages APIcurl https://api.apisea.ai/v1/chat/completions \
-H "Authorization: Bearer $APISEA_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
}'المعلمات
| المعلمة | النوع | مطلوب | افتراضي | الوصف |
|---|---|---|---|---|
model | string | مطلوب | claude-sonnet-4-6 | Model name |
messages | array | مطلوب | — | List of messages |
role | string | مطلوب | user | Role type |
content | string | مطلوب | — | Message content |
max_tokens | integer | مطلوب | — | Maximum tokens to generate (**required**, same as Anthropic official) |
thinking | object | اختياري | — | Extended thinking configuration |
system | string | array | اختياري | — | System prompt |
temperature | number | اختياري | — | Temperature parameter, range 0-1 |
top_p | number | اختياري | — | Nucleus sampling parameter, range 0-1 |
top_k | integer | اختياري | — | Top-K sampling |
stream | boolean | اختياري | — | Enable streaming |
stop_sequences | array | اختياري | — | Stop sequences |
metadata | object | اختياري | — | Metadata |
tools | array | اختياري | — | Tool definitions |
tool_choice | object | اختياري | — | Tool choice strategy |
ما الذي يمكنك إنشاؤه باستخدام 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.
نصائح للحصول على نتائج أفضل
- 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.
القيود ومعلومات مهمة
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 upstream to reject the request.
الأسئلة الشائعة حول API الخاص بـ claude-haiku-4-5-20251001-thinking
How much does claude-haiku-4-5-20251001-thinking cost on APISea?
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 provider list price, with billing only for successful requests.
How do I call this model through APISea?
Set model to claude-haiku-4-5-20251001-thinking and send an authenticated request to https://api.apisea.ai/v1/chat/completions for the OpenAI-compatible format. For native Claude Messages, use https://api.apisea.ai/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 provider’s terms. Review Anthropic’s applicable terms and APISea’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.
نماذج ذات صلة
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
ابدأ التطوير باستخدام claude-haiku-4-5-20251001-thinking
مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.
