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

claude-sonnet-4-6-thinking API

Build reasoning-focused chat applications with Anthropic’s claude-sonnet-4-6-thinking on APISea.

استدلالالمحادثة والنصمتزامنالتخزين المؤقت للمطالبات
معرّف النموذج
claude-sonnet-4-6-thinking

تسعير API لنموذج claude-sonnet-4-6-thinking

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

نوع الـ tokenAPISeaرسميوفّر
الإدخال لكل 1M رمز$2.64$3.00−12%
الإدخال المخزّن مؤقتًا لكل 1M رمز$0.264$0.30−12%
الكتابة إلى ذاكرة التخزين المؤقت لكل 1M رمز$3.30$3.75−12%
الكتابة في ذاكرة التخزين المؤقت (5 دقائق) لكل 1M رمز$3.30$3.75−12%
الكتابة في ذاكرة التخزين المؤقت (ساعة واحدة) لكل 1M رمز$5.28$6.00−12%
الإخراج لكل 1M رمز$13.20$15.00−12%

ما هو claude-sonnet-4-6-thinking؟

Anthropic’s claude-sonnet-4-6-thinking is a Claude Sonnet chat and reasoning model for applications that need extended thinking alongside conversational responses. It is suited to multi-step analysis, document review, and tool-assisted workflows. The documented Claude Messages interface supports text and image inputs, multi-turn conversations, tool definitions, and SSE streaming. Developers can configure extended thinking, set system instructions, and bound generation with max_tokens. The model supports up to 1,000,000 input tokens and 128,000 output tokens.

APISea provides access through its OpenAI-compatible base URL, https://api.apisea.ai/v1, and the native Claude Messages endpoint. Pricing is pay-as-you-go, with billing only for successful requests: $2.64 per 1M tokens for input and $13.20 per 1M tokens for output. Prompt-cache reads and writes have separate rates, and the default configuration is about 12% below the provider list price.

أبرز مزايا claude-sonnet-4-6-thinking

Extended Thinking Controls

The Claude Messages interface supports a thinking configuration object. When enabled, response content may include thinking blocks.

Large Input Allowance

The model supports a maximum input of 1,000,000 tokens and a maximum output of 128,000 tokens.

Text And Image Inputs

The documented Claude Messages interface supports multimodal content including text and images, plus multi-turn conversations.

Tools And Streaming

Define tools and a tool-choice strategy for tool-assisted applications. Enable stream to receive responses through Server-Sent Events.

كيفية استدعاء API الخاص بـ claude-sonnet-4-6-thinking في 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-sonnet-4-6-thinking" والمعلمات أدناه.

  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-sonnet-4-6-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
  }'

المعلمات

المعلمةالنوعمطلوبافتراضيالوصف
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-sonnet-4-6-thinking

Document analysis assistants

Build assistants that work through supplied documents, answer follow-up questions, and use extended thinking for multi-step analysis.

Tool-assisted workflows

Connect reasoning-focused conversations to custom function tools for workflows that need external data or application actions.

Image review conversations

Let users submit images alongside text questions and continue the review through multi-turn conversations.

Reusable-context assistants

Build chat workflows around recurring context, using prompt-cache reads and writes to manage repeated input costs.

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

  • 01

    Prefer portable thinking configuration

    For easier migration to Anthropic’s official endpoint, the documentation recommends the standard model name, claude-sonnet-4-6, with the thinking parameter rather than a platform-side thinking alias.

  • 02

    Set the output budget

    The native Claude Messages endpoint requires max_tokens. Set it to the maximum generation length your task needs; the model may stop before reaching it.

  • 03

    Preserve thinking signatures

    When passing thinking blocks back in a multi-turn conversation, return their signature unchanged. Modified signatures cause upstream rejection.

  • 04

    Plan cache retention

    Cache reads cost $0.264 per 1M tokens. Cache writes with a 5-minute TTL cost $3.30 per 1M tokens, while writes with a 1-hour TTL cost $5.28 per 1M tokens; choose retention to match your reuse pattern.

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

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

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

  • The /v1/messages inference endpoint returns upstream responses without a wrapper; do not mix its response format with management API formats.

الأسئلة الشائعة حول API الخاص بـ claude-sonnet-4-6-thinking

How much does claude-sonnet-4-6-thinking cost on APISea?

Input costs $2.64 per 1M tokens, and output costs $13.20 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?

Cache reads cost $0.264 per 1M tokens. Cache writes and 5-minute TTL cache writes cost $3.30 per 1M tokens; 1-hour TTL cache writes cost $5.28 per 1M tokens.

How do I call this model through APISea?

Use claude-sonnet-4-6-thinking as the model value with POST /v1/chat/completions at https://api.apisea.ai/v1 and Bearer authentication. The native POST /v1/messages interface also supports either x-api-key or Bearer authentication.

How does the thinking alias differ from the standard Sonnet model name?

The thinking suffix positions claude-sonnet-4-6-thinking for extended reasoning. The documentation recommends using claude-sonnet-4-6 with the thinking parameter when portability to Anthropic’s official endpoint matters.

What token limits and generation controls are available?

The maximum input is 1,000,000 tokens, and the maximum output is 128,000 tokens. The native Claude Messages interface requires max_tokens and documents thinking, temperature, top_p, top_k, streaming, and stop-sequence controls.

Can I use this model in a commercial application?

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

نماذج ذات صلة

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

ابدأ التطوير باستخدام claude-sonnet-4-6-thinking

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