claude-sonnet-5-5 API
Run Anthropic Claude Sonnet chat on APISea with large inputs, prompt caching, and flexible API controls.
claude-sonnet-5-5تسعير API لنموذج claude-sonnet-5-5
جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.
| نوع الـ token | APISea | رسمي | وفّر |
|---|---|---|---|
| الإدخال لكل 1M رمز | $1.76 | $2.00 | −12% |
| الإدخال المخزّن مؤقتًا لكل 1M رمز | $0.088 | $0.10 | −12% |
| الكتابة في ذاكرة التخزين المؤقت (5 دقائق) لكل 1M رمز | $2.20 | $2.50 | −12% |
| الكتابة في ذاكرة التخزين المؤقت (ساعة واحدة) لكل 1M رمز | $3.52 | $4.00 | −12% |
| الإخراج لكل 1M رمز | $8.80 | $10.00 | −12% |
ما هو claude-sonnet-5-5؟
claude-sonnet-5-5 is an Anthropic Claude Sonnet chat model available through APISea for conversational applications and text-generation workflows. Its maximum input is 1,000,000 tokens, with up to 128,000 output tokens. The documented Claude Messages interface supports text and image content, multi-turn conversations, tool use, streaming SSE, and extended thinking. Developers can set a separate system prompt, cap generation with max_tokens, and configure sampling and stop sequences. These controls make it a practical option for document-based assistants and tool-connected workflows.
Call claude-sonnet-5-5 through APISea's OpenAI-compatible interface or the native Anthropic Messages protocol. APISea provides one API key and an OpenAI-compatible base URL, https://api.apisea.ai/v1. Billing is pay-as-you-go and applies only to successful requests. Input costs $1.76 per 1M tokens and output costs $8.80 per 1M tokens; cache reads and writes have separate rates. The default configuration is about 12% below the provider list price.
أبرز مزايا claude-sonnet-5-5
Large Token Limits
Supports a maximum input of 1,000,000 tokens and a maximum output of 128,000 tokens.
Prompt Cache Support
Supports prompt-cache reads and cache writes, with separate write pricing for 5-minute and 1-hour TTLs.
Native Claude Controls
The documented Messages API supports tool definitions, tool choice, extended thinking, and a separate system prompt.
Two API Formats
Use the OpenAI-compatible Chat Completions interface or the native Anthropic Claude Messages protocol. The Messages endpoint returns passthrough responses without a wrapper.
كيفية استدعاء API الخاص بـ claude-sonnet-5-5 في 4 خطوات
- 01
احصل على API key
سجّل الدخول إلى APISea، واشحن رصيدك بدءًا من $50، وأنشئ مفتاح sk-sea من وحدة التحكم.
- 02
اضبط عنوان URL الأساسي
استخدم https://api.apisea.ai/v1 عنوانًا أساسيًا في SDK أو عميل HTTP.
- 03
أرسل الطلب
استدعِ POST /v1/chat/completions مع "model": "claude-sonnet-5-5" والمعلمات أدناه.
- 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-sonnet-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
}'المعلمات
| المعلمة | النوع | مطلوب | افتراضي | الوصف |
|---|---|---|---|---|
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-sonnet-5-5
Document-Based Assistants
Build assistants that take substantial document text as input and answer questions across multi-turn conversations.
Text and Image Chat
Use the documented Messages interface to build conversations that accept text and image content.
Tool-Connected Workflows
Define custom function tools and a tool-choice strategy for assistants that interact with your application's functions.
Long-Form Drafting
Generate reports or other extended text with explicit system instructions and a max_tokens budget suited to the requested output.
نصائح للحصول على نتائج أفضل
- 01
Set an Output Budget
The native Messages API requires max_tokens. Set it to your task's output budget, within the 128,000-token maximum; generation may stop earlier.
- 02
Plan Cache Usage
Cache reads cost $0.088 per 1M tokens. Cache writes cost $2.20 per 1M tokens for a 5-minute TTL or $3.52 per 1M tokens for a 1-hour TTL; account for write costs when choosing a caching strategy.
- 03
Preserve Thinking Signatures
Use the thinking parameter with the standard model ID for extended thinking. If you return thinking blocks in later turns, preserve their signature unchanged to avoid upstream rejection.
- 04
Keep Protocols Distinct
For native Messages requests, put instructions in the separate system field and use either x-api-key or Bearer authentication. Use /v1/messages for inference, not the /api/* management routes.
القيود ومعلومات مهمة
Maximum input is 1,000,000 tokens; maximum output is 128,000 tokens.
The native Messages API requires max_tokens and allows at most 4 stop sequences.
Thinking-block signatures must remain unchanged when passed back in multi-turn conversations.
الأسئلة الشائعة حول API الخاص بـ claude-sonnet-5-5
How much does claude-sonnet-5-5 cost on APISea?
Input costs $1.76 per 1M tokens and output costs $8.80 per 1M tokens. The default configuration is about 12% below the provider list price, with pay-as-you-go billing only for successful requests.
What are the prompt-caching prices?
Cached input reads cost $0.088 per 1M tokens. Cache writes cost $2.20 per 1M tokens with a 5-minute TTL or $3.52 per 1M tokens with a 1-hour TTL.
How do I call claude-sonnet-5-5 through APISea?
Set the model field to claude-sonnet-5-5 and use POST /v1/chat/completions with the OpenAI-compatible base URL https://api.apisea.ai/v1. Alternatively, use POST /v1/messages with the native Anthropic protocol; that endpoint accepts either x-api-key or Bearer authentication.
Does it support tools, images, and extended thinking?
The documented Claude Messages interface supports text and image content, tool use, extended thinking, and streaming SSE. It also exposes system, temperature, top_p, top_k, and stop_sequences controls.
What are its input and output limits?
The maximum input is 1,000,000 tokens and the maximum output is 128,000 tokens. Native Messages requests must include max_tokens, and the model may stop before reaching that value.
Can I use claude-sonnet-5-5 commercially?
Commercial use is subject to the provider's terms. Review Anthropic's applicable terms and APISea's terms for your intended application.
نماذج ذات صلة
claude-sonnet-4-5
claude-sonnet-4-5-20250929
claude-sonnet-4-5-20250929-thinking
claude-sonnet-4-6
claude-sonnet-4-6-thinking
claude-sonnet-5
claude-fable-5
claude-fable-5.1
ابدأ التطوير باستخدام claude-sonnet-5-5
مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.