claude-sonnet-4-5-20250929 API
Run Anthropic’s Claude Sonnet chat model on APISea with text and image inputs, tool use, and extended thinking.
claude-sonnet-4-5-20250929هذه لقطة مؤرخة لـ claude-sonnet-4-5-20250929. يُنصح معظم المستخدمين باستخدام صفحة النموذج الرئيسية. claude-sonnet-4-5
تسعير API لنموذج claude-sonnet-4-5-20250929
جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.
| نوع الـ token | APISea | رسمي | وفّر |
|---|---|---|---|
| الإدخال لكل 1M رمز | $2.64 | $3.00 | −12% |
| الإدخال المخزّن مؤقتًا لكل 1M رمز | $0.264 | $0.30 | −12% |
| الكتابة في ذاكرة التخزين المؤقت (5 دقائق) لكل 1M رمز | $3.30 | $3.75 | −12% |
| الكتابة في ذاكرة التخزين المؤقت (ساعة واحدة) لكل 1M رمز | $5.28 | $6.00 | −12% |
| الإخراج لكل 1M رمز | $13.20 | $15.00 | −12% |
ما هو claude-sonnet-4-5-20250929؟
Anthropic’s claude-sonnet-4-5-20250929 is a Claude Sonnet chat model for applications that work with conversation history, text, and images. Developers can use it for document discussions, image-based assistance, and workflows that call defined tools. Its date-suffixed name is positioned as a pinned snapshot for reproducible model selection; it is also callable as claude-sonnet-4-5. The documented Claude Messages interface supports multi-turn conversations, SSE streaming, tool use, and extended thinking, with controls for system instructions, sampling, and output length.
On APISea, call the model through the OpenAI-compatible chat interface or the native Anthropic Claude Messages protocol. It supports up to 200,000 input tokens and 64,000 output tokens, plus prompt-cache reads and writes. Pay-as-you-go pricing is $2.64 per 1M tokens for input and $13.20 per 1M tokens for output, with separate cache rates. The default configuration is about 12% below provider list price, and APISea bills only successful requests.
أبرز مزايا claude-sonnet-4-5-20250929
Text and Image Inputs
The Claude Messages interface supports multimodal content including text and images, alongside multi-turn conversation history.
Large Token Limits
The model supports a maximum of 200,000 input tokens and 64,000 output tokens. Set your requested output budget with max_tokens.
Tools and Thinking
Define tools and a tool-choice strategy through the Claude Messages interface. The thinking parameter enables extended thinking.
Prompt Cache Support
Supports prompt-cache reads and cache writes. APISea offers cache-write pricing for both 5-minute and 1-hour TTLs.
كيفية استدعاء API الخاص بـ claude-sonnet-4-5-20250929 في 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-4-5-20250929" والمعلمات أدناه.
- 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-4-5-20250929",
"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-4-5-20250929
Document discussion apps
Build chat interfaces that accept substantial reference text and follow-up questions, using conversation history and system instructions to frame responses.
Image-based assistance
Let users submit images with text questions through the Claude Messages interface for conversational assistance.
Tool-connected workflows
Define custom function tools for assistants that interact with your application’s services, using tool_choice to control the tool-selection strategy.
Streaming chat interfaces
Use SSE streaming to display responses as they arrive rather than waiting for the complete response.
نصائح للحصول على نتائج أفضل
- 01
Set an output budget
For Claude Messages requests, max_tokens is required and must be at least 1. Choose a budget within the model’s 64,000-token output maximum; generation may stop earlier.
- 02
Plan your cache usage
Cache reads cost $0.264 per 1M tokens. Cache writes cost $3.30 per 1M tokens for a 5-minute TTL or $5.28 per 1M tokens for a 1-hour TTL, so account for write costs when planning repeated prompts.
- 03
Use native thinking controls
Prefer the standard model name with the thinking parameter over platform-side thinking aliases. If you pass thinking blocks back in a multi-turn conversation, preserve their signature unchanged.
- 04
Keep protocols distinct
On Claude Messages, put system instructions in the separate system parameter and authenticate with either x-api-key or Bearer authentication. Inference responses are upstream passthrough, not management API wrappers.
القيود ومعلومات مهمة
Maximum input is 200,000 tokens, and maximum output is 64,000 tokens.
Claude Messages requests require max_tokens and allow at most 4 stop sequences.
Changed signatures in returned thinking blocks cause the upstream to reject the request.
الأسئلة الشائعة حول API الخاص بـ claude-sonnet-4-5-20250929
How much does claude-sonnet-4-5-20250929 cost on APISea?
Input costs $2.64 per 1M tokens, output costs $13.20 per 1M tokens, and cached input reads cost $0.264 per 1M tokens. Cache writes cost $3.30 per 1M tokens for a 5-minute TTL or $5.28 per 1M tokens for a 1-hour TTL. 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-sonnet-4-5-20250929 using the OpenAI-compatible base URL https://api.apisea.ai/v1 and the /chat/completions endpoint. You can also use POST /v1/messages with the native Anthropic Claude Messages protocol.
Which 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; the documentation recommends using either temperature or top_p, not both.
What are its input and output limits?
The model supports a maximum of 200,000 input tokens and 64,000 output tokens. The documented Claude Messages interface accepts text and image content.
Can I use this model commercially?
Commercial use is subject to the provider’s terms. Review Anthropic’s applicable terms and your intended use before deploying.
What is the difference between the dated ID and claude-sonnet-4-5?
The model is also callable as claude-sonnet-4-5. The date-suffixed ID is positioned as a pinned snapshot for reproducible model selection; the supplied facts do not specify the alias’s update policy.
نماذج ذات صلة
claude-sonnet-4-5
claude-sonnet-4-5-20250929-thinking
claude-sonnet-4-6
claude-sonnet-4-6-thinking
claude-sonnet-5
claude-sonnet-5-5
claude-fable-5
claude-fable-5.1
ابدأ التطوير باستخدام claude-sonnet-4-5-20250929
مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.