Skip to content
هذه الصفحة غير متاحة بلغتك بعد، لذا تُعرض باللغة الإنجليزية.
Anthropic · Claude Haiku

claude-haiku-5-5 API

Build chat applications with Anthropic’s claude-haiku-5-5 on APISea, with large inputs and prompt caching.

محادثةالمحادثة والنصمتزامنالتخزين المؤقت للمطالبات
معرّف النموذج
claude-haiku-5-5

تسعير API لنموذج claude-haiku-5-5

جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.

نوع الـ tokenAPISeaرسميوفّر
الإدخال لكل 1M رمز$0.088$0.10−12%
الإدخال المخزّن مؤقتًا لكل 1M رمز$0.0088$0.01−12%
الكتابة في ذاكرة التخزين المؤقت (5 دقائق) لكل 1M رمز$0.11$0.125−12%
الكتابة في ذاكرة التخزين المؤقت (ساعة واحدة) لكل 1M رمز$0.176$0.20−12%
الإخراج لكل 1M رمز$0.44$0.50−12%

التسعير حسب طول المطالبة

نوع الـ tokenحتى 100,000 tokenأكثر من الشريحة السابقة
الإدخال$0.088$0.10$0.44$0.50
الإدخال المخزّن مؤقتًا$0.0088$0.01$0.044$0.05
الكتابة في ذاكرة التخزين المؤقت (5 دقائق)$0.11$0.125$0.55$0.625
الكتابة في ذاكرة التخزين المؤقت (ساعة واحدة)$0.176$0.20$0.88$1.00
الإخراج$0.44$0.50$2.20$2.50

ما هو claude-haiku-5-5؟

claude-haiku-5-5 is an Anthropic chat model in the Claude Haiku family, available through APISea for conversational applications and text-generation workflows. Its maximum input is 1,000,000 tokens, and its maximum output is 128,000 tokens, making it an option for workflows that supply substantial reference material or request lengthy responses. Prompt-cache reads and writes are supported. APISea provides an OpenAI-compatible chat interface and a native Claude Messages interface, whose documented controls include system prompts, streaming, sampling settings, and output limits.

Billing is pay-as-you-go, with charges only for successful requests. For requests with up to 100,000 input tokens, input costs $0.088 per 1M tokens and output costs $0.44 per 1M tokens. Above that threshold, input costs $0.44 per 1M tokens and output costs $2.20 per 1M tokens. Cached input costs $0.0088 per 1M tokens; cache writes have separate rates for 5-minute and 1-hour TTLs. The default configuration is about 12% below the provider list price.

أبرز مزايا claude-haiku-5-5

Large Input Capacity

Supply up to 1,000,000 input tokens for reference-heavy chat workflows.

Long Output Allowance

The model supports a maximum output of 128,000 tokens. Set an output limit appropriate to the task rather than always requesting the maximum.

Prompt Cache Support

Prompt-cache reads and writes are supported, with separate write pricing for 5-minute and 1-hour TTLs.

Two API Interfaces

Call the model through APISea’s OpenAI-compatible Chat Completions interface or native Claude Messages interface. The Messages API returns upstream responses without a response wrapper.

كيفية استدعاء API الخاص بـ claude-haiku-5-5 في 4 خطوات

  1. 01

    احصل على API key

    سجّل الدخول إلى APISea، واشحن رصيدك بدءًا من $50، وأنشئ مفتاح sk-sea من وحدة التحكم.

  2. 02

    اضبط عنوان URL الأساسي

    استخدم https://api.apisea.ai/v1 عنوانًا أساسيًا في SDK أو عميل HTTP.

  3. 03

    أرسل الطلب

    استدعِ POST /v1/chat/completions مع "model": "claude-haiku-5-5" والمعلمات أدناه.

  4. 04

    تعامل مع الاستجابة

    اقرأ الاستجابة (أو استقبل الـ tokens بالتدفق باستخدام stream: true). يظهر الاستخدام والتكلفة في وحدة التحكم.

أمثلة على الطلبات

الوثائق: Claude Messages API
curl https://api.apisea.ai/v1/chat/completions \
  -H "Authorization: Bearer $APISEA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-haiku-5-5",
    "messages": [
      {"role": "system", "content": "You are a concise assistant."},
      {"role": "user", "content": "Explain what an AI API gateway does in two sentences."}
    ],
    "stream": false
  }'

المعلمات

المعلمةالنوعمطلوبافتراضيالوصف
modelstringمطلوبclaude-sonnet-4-6Model name
messagesarrayمطلوب—List of messages
rolestringمطلوبuserRole type
contentstringمطلوب—Message content
max_tokensintegerمطلوب—Maximum tokens to generate (**required**, same as Anthropic official)
thinkingobjectاختياري—Extended thinking configuration
systemstring | arrayاختياري—System prompt
temperaturenumberاختياري—Temperature parameter, range 0-1
top_pnumberاختياري—Nucleus sampling parameter, range 0-1
top_kintegerاختياري—Top-K sampling
streambooleanاختياري—Enable streaming
stop_sequencesarrayاختياري—Stop sequences
metadataobjectاختياري—Metadata
toolsarrayاختياري—Tool definitions
tool_choiceobjectاختياري—Tool choice strategy

ما الذي يمكنك إنشاؤه باستخدام claude-haiku-5-5

Reference-Based Assistants

Build chat assistants that receive extensive reference text alongside user questions. Instruct the model to distinguish supplied evidence from assumptions.

Document Summarization

Provide long documents and request structured summaries, key points, or follow-up questions. Specify the desired length and organization in the prompt.

Multi-Turn Support Chat

Build conversational support workflows using message history and explicit system instructions. Stream responses through the documented API interface when appropriate.

Repeated Reference Workflows

Evaluate prompt caching for applications that repeatedly send shared instructions or reference material. Account for cache-write charges as well as read pricing.

نصائح للحصول على نتائج أفضل

  • 01

    Set the Model Explicitly

    Use claude-haiku-5-5 as the model value. The documented API defaults refer to other models, so do not rely on the default.

  • 02

    Bound Response Length

    The native Messages API requires max_tokens. Choose a task-specific value within the 128,000-token output maximum; generation may stop before reaching it.

  • 03

    Watch the Pricing Threshold

    Requests above 100,000 input tokens use input pricing of $0.44 per 1M tokens and output pricing of $2.20 per 1M tokens. Budget large-input workflows using that tier.

  • 04

    Choose a Cache TTL

    Cache writes cost $0.11 per 1M tokens for a 5-minute TTL or $0.176 per 1M tokens for a 1-hour TTL. Compare expected reuse against write costs and the $0.0088 per 1M tokens cache-read rate.

القيود ومعلومات مهمة

  • Maximum input is 1,000,000 tokens, and maximum output is 128,000 tokens.

  • Requests above 100,000 input tokens use the higher input and output pricing tier.

  • Native Claude Messages requests require max_tokens and use a separate system parameter for system prompts.

الأسئلة الشائعة حول API الخاص بـ claude-haiku-5-5

How much does claude-haiku-5-5 cost on APISea?

For up to 100,000 input tokens, input costs $0.088 per 1M tokens and output costs $0.44 per 1M tokens. Above that threshold, input costs $0.44 per 1M tokens and output costs $2.20 per 1M tokens. The default configuration is about 12% below the provider list price.

How do I call claude-haiku-5-5 through APISea?

Use the OpenAI-compatible base URL https://api.apisea.ai/v1 and send a Chat Completions request with model set to claude-haiku-5-5. Alternatively, call POST /v1/messages using the native Claude Messages format and authenticate with either x-api-key or a Bearer token.

What parameters can I use with the native Messages API?

The documented interface includes messages, system, max_tokens, temperature, top_p, top_k, stream, and stop_sequences. max_tokens is required, and system instructions belong in the separate system parameter rather than the messages array.

What are the token limits for claude-haiku-5-5?

The maximum input is 1,000,000 tokens, and the maximum output is 128,000 tokens. These are limits, not a guarantee that every response will use the full output allowance.

Does claude-haiku-5-5 support prompt caching?

Yes, prompt-cache reads and writes are supported. Cached input costs $0.0088 per 1M tokens; writes cost $0.11 per 1M tokens for a 5-minute TTL or $0.176 per 1M tokens for a 1-hour TTL.

Can I use claude-haiku-5-5 commercially?

Commercial use is subject to the provider's terms. Review Anthropic’s applicable terms and APISea’s terms before deploying your application.

نماذج ذات صلة

العمق: أكثر من 250 نموذجًا · الحد الأدنى لشحن الرصيد $50

ابدأ التطوير باستخدام claude-haiku-5-5

مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.