claude-haiku-4-5-20251001 API
Run Anthropic Claude Haiku chat, image-aware conversations, and tool workflows through APISea.
claude-haiku-4-5-20251001هذه لقطة مؤرخة لـ claude-haiku-4-5-20251001. يُنصح معظم المستخدمين باستخدام صفحة النموذج الرئيسية. claude-haiku-4-5
تسعير API لنموذج claude-haiku-4-5-20251001
جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.
| نوع الـ token | APISea | رسمي | وفّر |
|---|---|---|---|
| الإدخال لكل 1M رمز | $0.88 | $1.00 | −12% |
| الإدخال المخزّن مؤقتًا لكل 1M رمز | $0.088 | $0.10 | −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؟
Anthropic’s claude-haiku-4-5-20251001 is a Claude Haiku chat model available through APISea for conversational applications and text-generation workflows. Its dated identifier is suited to teams that want a pinned snapshot for reproducibility; it is also callable as claude-haiku-4-5. The documented Claude Messages interface supports text and image content, multi-turn conversations, streaming SSE, tool use, and extended thinking. You can set a separate system prompt and control generation with max_tokens, temperature, top_p, and stop_sequences.
Connect through APISea’s OpenAI-compatible base URL, https://api.apisea.ai/v1, or use the native Claude Messages protocol at POST /v1/messages. The model supports up to 200,000 input tokens and 64,000 output tokens, plus prompt-cache reads and writes. APISea offers pay-as-you-go billing only for successful requests: input costs $0.88 per 1M tokens and output costs $4.40 per 1M tokens. The default configuration is about 12% below the provider list price, with separate rates for cache reads and writes.
أبرز مزايا claude-haiku-4-5-20251001
Text And Image Inputs
The documented Claude Messages interface accepts text and images for multimodal conversations and generates chat responses.
Large Token Limits
Supports up to 200,000 input tokens and 64,000 output tokens. Set max_tokens to cap the generated response.
Prompt Cache Support
Supports prompt-cache reads and writes, with pricing for both 5-minute and 1-hour cache-write TTLs.
Tools And Streaming
Use tool definitions and tool_choice for tool workflows, or enable stream for Server-Sent Events. The Claude Messages interface also supports extended thinking configuration.
كيفية استدعاء API الخاص بـ claude-haiku-4-5-20251001 في 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" والمعلمات أدناه.
- 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",
"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
Document Q&A
Build a conversational interface over supplied documents, using the input allowance to include relevant source material and a system prompt to guide answers.
Image-Aware Assistance
Let users submit images alongside questions in a chat workflow through the Claude Messages interface.
Tool-Connected Assistants
Define custom function tools for assistants that need to request actions or retrieve information from your application.
Repeat-Context Conversations
Build multi-turn assistants with recurring instructions or reference material, using prompt caching where appropriate to manage repeated-input costs.
نصائح للحصول على نتائج أفضل
- 01
Choose Your Interface
Use POST /v1/chat/completions for OpenAI-compatible requests or POST /v1/messages for the native Claude protocol. On the native interface, put instructions in the separate system parameter.
- 02
Set An Output Budget
The native Claude Messages endpoint requires max_tokens. Choose a cap appropriate to the task rather than automatically requesting the 64,000-token maximum.
- 03
Plan Cache Usage
Cache reads cost $0.088 per 1M tokens. Compare cache-write costs of $1.10 per 1M tokens for a 5-minute TTL and $1.76 per 1M tokens for a 1-hour TTL against how often you expect to reuse the content.
- 04
Preserve Thinking Signatures
Use the standard model name with the thinking parameter rather than a platform-side thinking alias. If you pass thinking blocks back in multi-turn requests, preserve their signature unchanged.
القيود ومعلومات مهمة
Maximum input is 200,000 tokens; maximum output is 64,000 tokens.
Native Claude Messages requests require max_tokens, and generation may stop before reaching that cap.
The native Claude Messages interface accepts at most four stop_sequences.
الأسئلة الشائعة حول API الخاص بـ claude-haiku-4-5-20251001
How much does claude-haiku-4-5-20251001 cost on APISea?
Input costs $0.88 per 1M tokens and output costs $4.40 per 1M tokens. Cached input costs $0.088 per 1M tokens; cache writes cost $1.10 per 1M tokens for a 5-minute TTL or $1.76 per 1M tokens for a 1-hour TTL. The default configuration is about 12% below the 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 in POST /v1/chat/completions or POST /v1/messages. Use Bearer authentication for the OpenAI-compatible interface; the native Claude Messages interface accepts either x-api-key or Bearer authentication.
What parameters does the Claude Messages interface support?
It supports system, max_tokens, thinking, temperature, top_p, top_k, stream, stop_sequences, tools, and tool_choice. max_tokens is required, and the documentation recommends using either temperature or top_p rather than both.
What are the input and output limits?
The model supports a maximum of 200,000 input tokens and 64,000 output tokens. It also supports prompt-cache reads and cache writes.
Can I use this model commercially?
Commercial use is subject to the provider's terms. Review Anthropic’s applicable terms and APISea’s service terms for your intended application.
What is the difference between the dated ID and claude-haiku-4-5?
The date suffix in claude-haiku-4-5-20251001 identifies a pinned snapshot suited to reproducibility. The facts also list claude-haiku-4-5 as an accepted callable name; they do not specify future alias-update behavior.
نماذج ذات صلة
claude-haiku-4-5
claude-haiku-4-5-20251001-thinking
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
مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.
