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

qwen3.8-2.4t-a95b API

Run Alibaba Qwen chat and text generation on APISea with large input limits and prompt-cache support.

محادثةالمحادثة والنصمتزامنالتخزين المؤقت للمطالبات
معرّف النموذج
qwen3.8-2.4t-a95b

تسعير API لنموذج qwen3.8-2.4t-a95b

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

نوع الـ tokenAPISeaرسميوفّر
الإدخال لكل 1M رمز$1.51$1.71−12%
الإدخال المخزّن مؤقتًا لكل 1M رمز$0.1886$0.2143−12%
الكتابة إلى ذاكرة التخزين المؤقت لكل 1M رمز$1.89$2.14−12%
الإخراج لكل 1M رمز$4.53$5.14−12%

ما هو qwen3.8-2.4t-a95b؟

qwen3.8-2.4t-a95b is an Alibaba Qwen chat model available through APISea for conversational applications and text generation. It accepts conversation messages with role and content fields, including system instructions and prior assistant responses. With a maximum input of 983,616 tokens and maximum output of 131,072 tokens, it offers room for substantial source material and longer responses. The chat interface provides controls for randomness, output length, sampling, and stop sequences, with streaming or complete-response delivery.

Call the model through APISea’s OpenAI-compatible base URL, https://api.apisea.ai/v1, using one API key. Billing is pay-as-you-go and applies only to successful requests. Input costs $1.51 per 1M tokens, cached input costs $0.1886 per 1M tokens, cache writes cost $1.89 per 1M tokens, and output costs $4.53 per 1M tokens. The default configuration is about 12% below the provider list price.

أبرز مزايا qwen3.8-2.4t-a95b

Large Input Capacity

Supply up to 983,616 input tokens for conversations or source-heavy prompts. Generated output can reach 131,072 tokens.

Prompt Cache Support

The model supports prompt-cache reads and cache writes. APISea lists separate rates for cached input and cache writes.

Generation Controls

Adjust temperature, top_p, and max_tokens through the chat interface. Stop sequences and repetition penalties provide additional response controls.

Flexible Response Delivery

Use streaming for SSE responses or disable streaming to receive a complete response at once. Requests follow the OpenAI Chat Completions API format.

كيفية استدعاء API الخاص بـ qwen3.8-2.4t-a95b في 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": "qwen3.8-2.4t-a95b" والمعلمات أدناه.

  4. 04

    تعامل مع الاستجابة

    اقرأ الاستجابة (أو استقبل الـ tokens بالتدفق باستخدام stream: true). يظهر الاستخدام والتكلفة في وحدة التحكم.

curl https://api.apisea.ai/v1/chat/completions \
  -H "Authorization: Bearer $APISEA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen3.8-2.4t-a95b",
    "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مطلوبgpt-5Model name
messagesarrayمطلوب—List of conversation messages
rolestringمطلوبuserRole type
contentstringمطلوب—Message content
temperaturenumberاختياري—Controls output randomness, range 0-2
max_tokensintegerاختياري—Maximum number of tokens to generate
streambooleanاختياري—Whether to use streaming output
top_pnumberاختياري—Nucleus sampling parameter, range 0-1
frequency_penaltynumberاختياري—Frequency penalty, range -2.0 to 2.0
presence_penaltynumberاختياري—Presence penalty, range -2.0 to 2.0
stopstring or arrayاختياري—Stop sequences
nintegerاختياري—Number of completions to generate

ما الذي يمكنك إنشاؤه باستخدام qwen3.8-2.4t-a95b

Document-Based Assistants

Build chat workflows that include substantial source text alongside user questions. Use system messages to specify how responses should refer to the supplied material.

Multi-Turn Support Chat

Pass previous user and assistant messages as conversation context for support applications. Set system instructions to define the assistant’s role and response style.

Long-Form Drafting

Generate drafts from detailed briefs and reference material. Set an explicit output budget to match the intended length.

Repeated-Context Workflows

Build workflows that reuse a common prompt or reference material, with prompt-cache support available for cost planning. Account separately for cache writes and reads.

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

  • 01

    Set an Output Budget

    Choose max_tokens based on the response you need rather than defaulting to the model’s maximum. Output is billed at $4.53 per 1M tokens.

  • 02

    Tune One Sampling Control

    Start with either temperature or top_p, as the documentation recommends. Lower temperature values make output more deterministic.

  • 03

    Plan Cache Costs

    Cached input costs $0.1886 per 1M tokens, while cache writes cost $1.89 per 1M tokens. Check the caching documentation before budgeting for repeated-context requests.

  • 04

    Choose Streaming Explicitly

    Set stream to true for SSE output or false for a complete response. Explicitly choosing the mode avoids relying on endpoint defaults.

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

  • Maximum input is 983,616 tokens.

  • Maximum output is 131,072 tokens; a response may end when its generation limit is reached.

  • Generation can stop because of content filtering.

الأسئلة الشائعة حول API الخاص بـ qwen3.8-2.4t-a95b

How much does qwen3.8-2.4t-a95b cost on APISea?

Input costs $1.51 per 1M tokens, cached input costs $0.1886 per 1M tokens, cache writes cost $1.89 per 1M tokens, and output costs $4.53 per 1M tokens. The default configuration is about 12% below the provider list price, with billing only for successful requests.

How do I call qwen3.8-2.4t-a95b through the API?

Use https://api.apisea.ai/v1 as your OpenAI-compatible base URL and send a POST request to /chat/completions. Authenticate with your APISea key as a Bearer token, set model to qwen3.8-2.4t-a95b, and provide a messages array.

What parameters can I use?

The documented chat interface includes temperature, top_p, max_tokens, stream, frequency_penalty, presence_penalty, stop, and n. Messages contain role and content fields, with user, assistant, and system roles available.

What are the input and output limits?

The maximum input is 983,616 tokens and the maximum output is 131,072 tokens. Use max_tokens to set a smaller generation budget for individual requests.

Does qwen3.8-2.4t-a95b support prompt caching?

Yes, it supports prompt-cache reads and cache writes. These are billed separately from standard input, so check the caching documentation for implementation details.

Can I use qwen3.8-2.4t-a95b commercially?

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

نماذج ذات صلة

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

ابدأ التطوير باستخدام qwen3.8-2.4t-a95b

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