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

claude-fable-5.1 API

Run Anthropic chat workloads with large inputs and prompt caching on APISea.

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

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

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

نوع الـ tokenAPISeaرسميوفّر
الإدخال لكل 1M رمز$8.80$10.00−12%
الإدخال المخزّن مؤقتًا لكل 1M رمز$0.22$0.25−12%
الكتابة في ذاكرة التخزين المؤقت (5 دقائق) لكل 1M رمز$11.00$12.50−12%
الكتابة في ذاكرة التخزين المؤقت (ساعة واحدة) لكل 1M رمز$17.60$20.00−12%
الإخراج لكل 1M رمز$44.00$50.00−12%

ما هو claude-fable-5.1؟

claude-fable-5.1 is an Anthropic chat model in the Claude Fable family, available through APISea for applications that generate responses from conversation messages. Its maximum input is 1,000,000 tokens, with up to 128,000 output tokens, making it an option for workflows that supply extensive source material or request long responses. It supports prompt-cache reads and cache writes. APISea offers an OpenAI-compatible chat interface and a native Claude Messages interface; the latter documents multi-turn conversations, text and image content, streaming, tools, and extended-thinking controls.

Use claude-fable-5.1 as the model identifier with one APISea key and the OpenAI-compatible base URL https://api.apisea.ai/v1. Billing is pay-as-you-go and applies only to successful requests. Input costs $8.80 per 1M tokens and output costs $44.00 per 1M tokens. Cached input costs $0.22 per 1M tokens, with separate cache-write rates for 5-minute and 1-hour TTLs. The default configuration is about 12% below the provider list price.

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

Large Input Allowance

Supply up to 1,000,000 input tokens for conversations or source-heavy prompts.

Long Output Limit

Generate up to 128,000 output tokens. Set max_tokens to control the requested generation length.

Prompt Cache Support

Supports cache reads and cache writes, with distinct pricing for cached input and 5-minute or 1-hour cache writes.

Two API Interfaces

Call through OpenAI-compatible Chat Completions or the native Claude Messages protocol. The native interface documents SSE streaming, tool use, and extended-thinking configuration.

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

  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.1",
    "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.1

Source-Based Assistants

Build chat assistants that receive extensive reference material alongside user questions, using the large input allowance to supply relevant context.

Long-Form Drafting

Request detailed reports or document drafts with an explicit structure and output budget, within the 128,000-token output limit.

Repeated Reference Workflows

Use prompt caching for applications that repeatedly submit shared instructions or reference material, while accounting for cache-write costs.

Multi-Turn Applications

Build conversational workflows that pass user and assistant messages across turns. Use the native Messages interface when your integration needs its documented Claude-specific controls.

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

  • 01

    Set an Output Budget

    The native Messages API requires max_tokens. Choose a task-appropriate value rather than automatically requesting the maximum output allowance.

  • 02

    Plan Cache Lifetimes

    Cache reads cost $0.22 per 1M tokens. Cache writes cost $11.00 per 1M tokens for a 5-minute TTL or $17.60 per 1M tokens for a 1-hour TTL; weigh write costs against expected reuse.

  • 03

    Keep Interfaces Distinct

    Use POST /v1/chat/completions for OpenAI-compatible calls or POST /v1/messages for native Claude requests. Native Messages uses a separate system parameter and returns upstream responses without a {code, data} wrapper.

  • 04

    Preserve Thinking Signatures

    The native Messages documentation recommends the standard model name plus the thinking parameter rather than platform-side thinking aliases. If returning thinking blocks in multi-turn requests, preserve their signature unchanged to avoid upstream rejection.

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

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

  • The native Messages API requires max_tokens, and generation may stop before reaching it.

  • Native Messages and OpenAI-compatible Chat Completions have different request formats; do not mix them.

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

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

Input costs $8.80 per 1M tokens and output costs $44.00 per 1M tokens. Cached input costs $0.22 per 1M tokens; cache writes cost $11.00 per 1M tokens for a 5-minute TTL or $17.60 per 1M tokens for a 1-hour TTL. The default configuration is about 12% below the provider list price, and APISea bills only successful requests.

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

Set the model field to claude-fable-5.1 and send conversation messages to POST /v1/chat/completions using https://api.apisea.ai/v1 as your OpenAI-compatible base URL. Authenticate with your APISea key as a Bearer token; native Claude requests can instead use POST /v1/messages.

What are its input and output token limits?

The model supports a maximum input of 1,000,000 tokens and a maximum output of 128,000 tokens. Use max_tokens to set your requested output budget; it is required on the native Messages endpoint.

Which controls does the native Claude Messages API expose?

The documented interface exposes system, temperature, top_p, top_k, stream, stop_sequences, tools, tool_choice, and thinking controls. It also documents text and image content, multi-turn conversations, and SSE streaming; consult the endpoint documentation for request details.

Can I use claude-fable-5.1 commercially?

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

How does claude-fable-5.1 compare with other Claude models?

The supplied facts identify it as part of the Claude Fable family but provide no sibling benchmarks or capability comparisons. Compare documented limits, pricing, and results on your own workloads rather than assuming a ranking from the name.

نماذج ذات صلة

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

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

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