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

claude-fable-5.2 API

Build long-context chat applications with Anthropic’s claude-fable-5.2 on APISea.

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

تسعير API لنموذج claude-fable-5.2

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

نوع الـ tokenAPISeaرسميوفّر
الإدخال لكل 1M رمز$7.04$8.00−12%
الإدخال المخزّن مؤقتًا لكل 1M رمز$0.176$0.20−12%
الكتابة في ذاكرة التخزين المؤقت (5 دقائق) لكل 1M رمز$8.80$10.00−12%
الكتابة في ذاكرة التخزين المؤقت (ساعة واحدة) لكل 1M رمز$14.08$16.00−12%
الإخراج لكل 1M رمز$35.20$40.00−12%

ما هو claude-fable-5.2؟

Anthropic’s claude-fable-5.2, part of the Claude Fable family, is a chat model for applications that need substantial input capacity and room for long responses. It accepts up to 1,000,000 input tokens and generates up to 128,000 output tokens, making it suited to document-heavy conversations, reference-based drafting, and multi-turn assistants. APISea’s documented Claude Messages interface supports text and image content, streaming SSE, tool use, and extended thinking, with controls for system instructions, sampling, and generation length.

Call the model through APISea’s OpenAI-compatible base URL, https://api.apisea.ai/v1, or use the native Claude Messages endpoint. APISea provides one API key and pay-as-you-go billing, charging only for successful requests. Input costs $7.04 per 1M tokens and output costs $35.20 per 1M tokens. Prompt-cache reads and writes have separate rates, with 5-minute and 1-hour cache-write options. The default configuration is about 12% below the provider list price.

أبرز مزايا claude-fable-5.2

Large Input Capacity

Supply up to 1,000,000 input tokens for document-heavy chat workflows and extensive reference material.

Long Response Capacity

Generate up to 128,000 output tokens. Use max_tokens to set a generation ceiling; responses may stop before reaching it.

Prompt Cache Support

The model supports prompt-cache reads and writes. APISea lists separate write rates for 5-minute and 1-hour TTLs.

Claude Protocol Controls

The documented native Claude Messages interface supports streaming SSE, tool use, and extended thinking. It also provides system instructions and sampling controls.

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

  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-fable-5.2",
    "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-fable-5.2

Document-Based Assistants

Build conversational tools that receive large collections of reference text and answer questions against the supplied material.

Long-Form Drafting

Use detailed source material and system instructions to produce substantial drafts, reports, or documentation within the output limit.

Recurring Reference Workflows

Build workflows that reuse shared prompt material across requests, using cache reads and writes to manage repeated-input costs.

Tool-Connected Chat

Use the documented Claude Messages tool interface to connect conversations with application-defined functions and multi-turn workflows.

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

  • 01

    Set the Model Explicitly

    Send claude-fable-5.2 as the model parameter rather than relying on an endpoint’s default model.

  • 02

    Bound Response Length

    Set max_tokens to match the response length your application needs. It is required on the native Claude Messages endpoint, and the model may finish before reaching it.

  • 03

    Plan Cache Costs

    Cache reads cost $0.176 per 1M tokens. Compare cache-write pricing of $8.80 per 1M tokens for a 5-minute TTL and $14.08 per 1M tokens for a 1-hour TTL when planning repeated requests.

  • 04

    Preserve Thinking Signatures

    When returning thinking blocks in a native Claude multi-turn conversation, preserve each signature unchanged. The documentation warns that altered signatures cause upstream rejection.

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

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

  • The native Claude Messages endpoint requires max_tokens; generation may stop before that limit.

  • Use /v1/* for inference, and do not mix its passthrough responses with management API response formats.

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

How much does claude-fable-5.2 cost on APISea?

Input costs $7.04 per 1M tokens, and output costs $35.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-cache prices?

Cached input reads cost $0.176 per 1M tokens. Cache writes cost $8.80 per 1M tokens for a 5-minute TTL or $14.08 per 1M tokens for a 1-hour TTL.

How do I call claude-fable-5.2 through APISea?

Use POST /v1/chat/completions with Bearer authentication and set the model parameter to claude-fable-5.2. APISea also documents POST /v1/messages for native Claude Messages requests, accepting either x-api-key or Bearer authentication.

Which parameters can I use with the Claude Messages endpoint?

The documented interface includes max_tokens, system, temperature, top_p, top_k, stream, stop_sequences, tools, tool_choice, and thinking. max_tokens is required, and the documentation recommends using either temperature or top_p rather than both.

What are the input and output token limits?

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

Can I use claude-fable-5.2 commercially?

Commercial use is subject to the provider’s terms. Review the applicable Anthropic terms and APISea requirements for your intended application.

نماذج ذات صلة

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

ابدأ التطوير باستخدام claude-fable-5.2

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