Qwen3.8 27B API

Multimodal reasoner with 256K context, image and video input, function tools, structured JSON, and thinking on by default.

Alibaba Cloud文本生成256K 上下文发布日期 2026年8月14日原生推理

关于 Qwen3.8 27B

Multimodal reasoner with 256K context, image and video input, function tools, structured JSON, and thinking on by default.

Supports text, image, and video input, streaming, function tools, structured JSON output, seed control, and thinking mode on by default. Use reasoning_effort (xhigh, medium, low) or enable_thinking=false for direct answers. Automatic cache reads are billed at the cached-input rate when reported by the model service. Explicit cache controls are not supported. Open-weight context is 256K; hosted 1M context and official built-in tools are not included.

也称为 Alibaba Cloud Qwen3.8 27B

reasoningvisionvideofunction callingcachemultimodaljson modelogprobs

Qwen3.8 27B 规格

模型 ID
qwen3-8-27b
提供方
Alibaba Cloud
类别
文本生成
发布日期
2026年8月14日
上下文窗口
256K 个 token
最大输出
32,768 个 token
输入
文本图像视频
输出
文本
结构化输出
JSON Schema
端点
POST/v1/chat/completionsPOST/v1/responsesPOST/v1/messagesPOST/v1/completionsPOST/v1beta/models/qwen3-8-27b:generateContent
备用模型 ID
qwen3.8-27bqwen/qwen3-8-27bqwen/qwen3.8-27b

Qwen3.8 27B API 价格最高省 84%

来自 EmpirioLabs 目录的实时按量计费价格。只为实际用量付费,没有月度最低消费。

类型
规格
价格
输入
per 1M prompt tokens
$0.45$0.17
输出
per 1M generated tokens
$3.20$0.50
Implicit cache read
per 1M cached input tokens
$0.08
Web Search (Linkup)
per call when invoked
$0.013
在完整价格页比较

如何调用 Qwen3.8 27B API

Qwen3.8 27B 提供 OpenAI 兼容的 Chat Completions API。用你的 EmpirioLabs API 密钥把任意 OpenAI SDK 指向 https://api.empiriolabs.ai/v1,并使用模型 ID qwen3-8-27b。 在EmpirioLabs 控制台获取 API 密钥。

cURL
curl https://api.empiriolabs.ai/v1/chat/completions \
  -H "Authorization: Bearer $EMPIRIOLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen3-8-27b",
    "messages": [
      {"role": "user", "content": "Write a haiku about the ocean."}
    ]
  }'
Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(
    base_url="https://api.empiriolabs.ai/v1",
    api_key="YOUR_EMPIRIOLABS_API_KEY",
)

response = client.chat.completions.create(
    model="qwen3-8-27b",
    messages=[{"role": "user", "content": "Write a haiku about the ocean."}],
)
print(response.choices[0].message.content)
Qwen3.8 27B API 完整参考

Qwen3.8 27B API 参数

EmpirioLabs 上 Qwen3.8 27B API 支持的请求参数。省略字段时使用默认值。

参数类型默认值范围 / 值描述
temperaturenumber10 到 2Sampling temperature. 0 is deterministic and 2 is maximum randomness.
top_pnumber0.950 到 1Nucleus sampling probability mass. Lower values make outputs more focused.
max_tokensinteger40961 到 32768Maximum output tokens.
stopstring--Up to 4 strings where the model will stop generating further tokens.
enable_thinkingbooleantrue-Enable reasoning before answering.
reasoning_effortenumxhighnone, low, medium, xhighReasoning effort level. none disables thinking. low, medium, and xhigh select discrete thinking depths. There is no token budget control.
top_kinteger201 到 200Limit sampling to the top K candidate tokens when supported.
min_pnumber00 到 1Minimum probability threshold for token sampling.
frequency_penaltynumber0-2 到 2Penalty based on how often a token has already appeared.
presence_penaltynumber0-2 到 2Penalty for tokens that already appeared in the generated text.
repetition_penaltynumber10.1 到 2Penalty used by SGLang to reduce repeated text.
seedinteger-0 到 2147483647Optional random seed for reproducible sampling.
logprobsbooleanfalse-Return token log probabilities when supported.
top_logprobsinteger-0 到 20Return up to this many top token log probabilities.
文档中还有 7 个参数

须知

Supports text, image, and video input, streaming, function tools, structured JSON output, seed control, and thinking mode on by default. Use reasoning_effort (xhigh, medium, low) or enable_thinking=false for direct answers. Automatic cache reads are billed at the cached-input rate when reported by the model service. Explicit cache controls are not supported. Open-weight context is 256K; hosted 1M context and official built-in tools are not included.

Qwen3.8 27B API:常见问题

Qwen3.8 27B API 收费多少?

在 EmpirioLabs,Qwen3.8 27B 按量计费。本页的实时价格表始终与 API 的实际计费一致。

Qwen3.8 27B 的上下文窗口有多大?

Qwen3.8 27B 支持 256K token 的上下文窗口,每次响应最多 32,768 个输出 token。

Qwen3.8 27B API 兼容 OpenAI 吗?

兼容。Qwen3.8 27B 提供 OpenAI 兼容的 Chat Completions API,现有 OpenAI SDK 只需把 base_url 指向 https://api.empiriolabs.ai/v1 并把模型 ID 设为 qwen3-8-27b 即可使用。

集成之前可以在浏览器里试用 Qwen3.8 27B 吗?

可以。EmpirioLabs Playground在浏览器中以与 API 相同的参数运行 Qwen3.8 27B,你可以在写代码之前先测试提示词。

如何获取 Qwen3.8 27B API 密钥?

创建 EmpirioLabs 账户,然后在控制台的 API Keys生成密钥。计费使用按量付费的额度,只为实际发出的请求付费。

准备好使用更好的终端了吗?

查看我们的定价,或者如果你想将自己的模型部署到我们的堆栈中,请联系我们。