qwen3.8-27b API
Run Alibaba’s Qwen chat model on APISea for text generation with large inputs and prompt caching.
qwen3.8-27bتسعير API لنموذج qwen3.8-27b
جميع الأسعار بالدولار الأمريكي (USD). مقارنة أسعار APISea بالسعر الرسمي المعلن للوحدة نفسها.
| نوع الـ token | APISea | رسمي | وفّر |
|---|---|---|---|
| الإدخال لكل 1M رمز | $0.3771 | $0.4286 | −12% |
| الإدخال المخزّن مؤقتًا لكل 1M رمز | $0.07543 | $0.08571 | −12% |
| الكتابة إلى ذاكرة التخزين المؤقت لكل 1M رمز | $0.4714 | $0.5357 | −12% |
| الإخراج لكل 1M رمز | $1.51 | $1.71 | −12% |
ما هو qwen3.8-27b؟
qwen3.8-27b is an Alibaba Qwen-family chat model available through APISea for conversational applications and text generation. It accepts conversation messages with role and content fields, including system instructions, user requests, and previous assistant responses. With a maximum input of 983,616 tokens and maximum output of 131,072 tokens, it is an option to evaluate for workflows involving substantial source material or long-form responses. The chat interface offers streaming, temperature, top_p, stop sequences, and output-length controls.
Call qwen3.8-27b through APISea’s OpenAI-compatible base URL, https://api.apisea.ai/v1, using one API key. Pricing is pay-as-you-go, with billing only for successful requests: input costs $0.3771 per 1M tokens and output costs $1.51 per 1M tokens. Prompt-cache reads cost $0.07543 per 1M tokens, while cache writes cost $0.4714 per 1M tokens. The default configuration is about 12% below the provider list price.
أبرز مزايا qwen3.8-27b
Large Input Allowance
Accepts up to 983,616 input tokens, providing room for substantial source text and conversation history.
Extended Text Output
Supports a maximum output of 131,072 tokens. Use max_tokens to set a smaller generation budget for individual requests.
Prompt Cache Support
Supports both prompt-cache reads and cache writes, with separate token rates for each.
Configurable Chat Responses
The unified chat interface offers streaming and non-streaming responses, plus temperature, top_p, and stop-sequence controls.
كيفية استدعاء API الخاص بـ qwen3.8-27b في 4 خطوات
- 01
احصل على API key
سجّل الدخول إلى APISea، واشحن رصيدك بدءًا من $50، وأنشئ مفتاح sk-sea من وحدة التحكم.
- 02
اضبط عنوان URL الأساسي
استخدم https://api.apisea.ai/v1 عنوانًا أساسيًا في SDK أو عميل HTTP.
- 03
أرسل الطلب
استدعِ POST /v1/chat/completions مع "model": "qwen3.8-27b" والمعلمات أدناه.
- 04
تعامل مع الاستجابة
اقرأ الاستجابة (أو استقبل الـ tokens بالتدفق باستخدام stream: true). يظهر الاستخدام والتكلفة في وحدة التحكم.
أمثلة على الطلبات
الوثائق: General Chat API (Default Streaming)curl https://api.apisea.ai/v1/chat/completions \
-H "Authorization: Bearer $APISEA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3.8-27b",
"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 | مطلوب | gpt-5 | Model name |
messages | array | مطلوب | — | List of conversation messages |
role | string | مطلوب | user | Role type |
content | string | مطلوب | — | Message content |
temperature | number | اختياري | — | Controls output randomness, range 0-2 |
max_tokens | integer | اختياري | — | Maximum number of tokens to generate |
stream | boolean | اختياري | — | Whether to use streaming output |
top_p | number | اختياري | — | Nucleus sampling parameter, range 0-1 |
frequency_penalty | number | اختياري | — | Frequency penalty, range -2.0 to 2.0 |
presence_penalty | number | اختياري | — | Presence penalty, range -2.0 to 2.0 |
stop | string or array | اختياري | — | Stop sequences |
n | integer | اختياري | — | Number of completions to generate |
ما الذي يمكنك إنشاؤه باستخدام qwen3.8-27b
Document-Based Assistants
Build chat workflows that include reference documents in the input and ask for answers grounded in the supplied material.
Long-Form Drafting
Generate report drafts or detailed written responses from source text and explicit system instructions.
Multi-Turn Support Chat
Pass previous user and assistant messages alongside each new request to provide conversation context.
Repeated Reference Workflows
Evaluate prompt caching for applications that repeatedly use shared instructions or reference material, accounting for both write and read charges.
نصائح للحصول على نتائج أفضل
- 01
Set an Output Budget
Set max_tokens to the response length your application needs rather than relying on the maximum output allowance.
- 02
Tune One Sampling Control
Use lower temperature values for more deterministic output. The documentation recommends adjusting either temperature or top_p rather than both.
- 03
Account for Cache Writes
Cache reads cost $0.07543 per 1M tokens, but cache writes cost $0.4714 per 1M tokens. Include both rates when estimating the cost of repeated prompts.
- 04
Choose Streaming Explicitly
Set stream to true for SSE responses or false for a complete response at once. Set it explicitly rather than depending on endpoint defaults.
القيود ومعلومات مهمة
Maximum input is 983,616 tokens; keep source text and conversation history within this limit.
Maximum output is 131,072 tokens; responses may end when the configured generation limit is reached.
The supplied documentation covers text chat and does not establish image, audio, or video input support for this model.
الأسئلة الشائعة حول API الخاص بـ qwen3.8-27b
How much does qwen3.8-27b cost on APISea?
Input costs $0.3771 per 1M tokens, output costs $1.51 per 1M tokens, cached input reads cost $0.07543 per 1M tokens, and cache writes cost $0.4714 per 1M tokens. The default configuration is about 12% below the provider list price, with pay-as-you-go billing only for successful requests.
How do I call qwen3.8-27b 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 Bearer token, set model to qwen3.8-27b, and supply a messages array containing role and content fields.
Which generation parameters can I configure?
The unified chat API documents temperature, max_tokens, stream, top_p, frequency_penalty, presence_penalty, stop, and n. Temperature ranges from 0–2, top_p from 0–1, and each penalty from -2.0–2.0.
What are the input and output token limits?
qwen3.8-27b supports a maximum input of 983,616 tokens and a maximum output of 131,072 tokens. Set max_tokens to control the requested generation length.
Can I use qwen3.8-27b commercially?
Commercial use is subject to the provider’s terms. Review the applicable Alibaba terms and APISea documentation before deploying a commercial application.
Does qwen3.8-27b support prompt caching?
Yes, it supports prompt-cache reads and cache writes, each billed at its own rate. Consult the APISea documentation for cache configuration details; the supplied chat excerpts do not specify cache-control parameters.
نماذج ذات صلة
qwen-turbo
qwen3.6-flash
qwen3.6-plus
qwen3.7-flash
qwen3.7-max
qwen3.7-plus
qwen3.8-2.4t-a95b
qwen3.8-flash
ابدأ التطوير باستخدام qwen3.8-27b
مفتاح واحد، وادفع حسب الاستخدام بدءًا من $50؛ ولا تُحتسب الرسوم إلا على الطلبات الناجحة.