Alibaba: Qwen3.8 27B
LLM
qwen3.8-27b
厂商 Alibaba
Alibaba Qwen3.8 27B 模型,按官方原价 $0.45/$3.2(每百万 Token)计费,1M 上下文窗口,Prompt 缓存最高省 89%。
上下文窗口
1M
最大输出 131K · Agent 预算 232K
输入 / 输出单价
$0.45 / $3.2USD / 1M · 官方原价
缓存读取
$0.05 (-89%)
无缓存写入附加费
模态与推理强度
文本 + 图像 + 视频 → 文本
默认推理强度:medium
定价与费用计算器
OpenDesign Go 每百万 Token 定价。
估算单次请求费用
输入费用10,000 × $0.45/1M
$0.0045
输出费用2,000 × $3.2/1M
$0.0064
缓存读取0 × $0.05/1M
$0
预估单次请求费用
$0.0109
标准档费率
| 输入长度 | 输入 | 输出 | 缓存读取 | 缓存写入 |
|---|---|---|---|---|
| 标准档 | $0.45 | $3.2 | $0.05 | — |
1,000 次轻对话
$5
每次 4K 输入 + 1K 输出 tokens100 轮编码 Agent
$1.93
每轮 10K 新输入 + 40K 缓存 + 4K 输出10 次长文档审阅
$0.803
每次 150K 输入 + 4K 输出规格与接口参数
上下文窗口1M (预算 232K)
最大输出131,072
推理强度默认: medium
Prompt 缓存$0.05/1M (-89%)
| 参数 | 类型 | 取值 / 支持范围 |
|---|---|---|
| model | string | qwen3.8-27b |
| messages / input | array | text, image, video |
| max_tokens | integer | ≤ 131,072 |
| stream | boolean | SSE 流式输出 |
| reasoning_effort | string | none / low / medium / high (默认: medium) |
| tools / response_format | object | 函数调用与 JSON Schema |
路由、稳定性与隐私保障
托管多路由自动故障转移、锁定公开单价与零数据留存(ZDR)。
上游路由
多路由故障转移
由 OpenDesign Go Link 持续托管优先级调度与上游容灾切换。
费率稳定
锁定公开单价
上游线路自动切换时,对外计费单价始终保持不变。
自动高可用
5xx 熔断保护
异常后端自动进入冷却探测期,流量即时切换至健康线路。
隐私策略 (ZDR)
零负载存储
仅记录账号、模型、用量与账单金额,不存储提示词、输出内容或媒体文件。
API 接入
通过 OpenAI Compatible (Chat / Responses) 调用 qwen3.8-27b。
1
配置 OpenDesign Go API Key
export COROUTER_API_KEY="YOUR_API_KEY" # Base URL: https://amr-link.open-design.ai/v1
2
发送首次请求
curl https://amr-link.open-design.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $COROUTER_API_KEY" \
-d '{
"model": "qwen3.8-27b",
"max_tokens": 1024,
"messages": [
{ "role": "user", "content": "Refactor this API handler for streaming responses." }
]
}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://amr-link.open-design.ai/v1",
api_key=os.environ["COROUTER_API_KEY"],
)
response = client.chat.completions.create(
model="qwen3.8-27b",
max_tokens=1024,
messages=[
{"role": "user", "content": "Refactor this API handler for streaming responses."}
],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://amr-link.open-design.ai/v1",
apiKey: process.env.COROUTER_API_KEY,
});
const response = await client.chat.completions.create({
model: "qwen3.8-27b",
max_tokens: 1024,
messages: [
{ role: "user", content: "Refactor this API handler for streaming responses." },
],
});
console.log(response.choices[0].message.content);import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
baseURL: "https://amr-link.open-design.ai",
apiKey: process.env.COROUTER_API_KEY,
});
const message = await client.messages.create({
model: "qwen3.8-27b",
max_tokens: 1024,
messages: [
{ role: "user", content: "Refactor this API handler for streaming responses." },
],
});
console.log(message.content);3
查看返回体与标准 HTTP 错误码
{
"id": "chatcmpl_od_01j9x7k2m8",
"object": "chat.completion",
"model": "qwen3.8-27b",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Here is the streaming handler implementation..."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 50000,
"completion_tokens": 4000,
"total_tokens": 54000,
"prompt_tokens_details": {
"cached_tokens": 40000
}
}
}
HTTP 401 Unauthorized Invalid or missing Bearer COROUTER_API_KEY.
HTTP 403 Forbidden Workspace key lacks permission for this model or endpoint.
HTTP 404 Not Found Unknown model ID or unavailable endpoint path.
HTTP 429 Too Many Requests Workspace rate limit, concurrency cap, or credit limit reached.
HTTP 502 Bad Gateway Upstream provider returned an error after automatic failover.
HTTP 503 Service Unavailable Upstream provider temporarily unavailable; retry with backoff.
编码工具接入
已预填 Qwen3.8 27B 模型 ID 的主流编码工具配置文件,可直接复制使用。
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"corouter": {
"npm": "@ai-sdk/openai-compatible",
"name": "OpenDesign Go",
"options": {
"baseURL": "https://amr-link.open-design.ai/v1",
"apiKey": "{env:COROUTER_API_KEY}"
},
"models": {
"qwen3.8-27b": {
"name": "Qwen3.8 27B"
}
}
}
},
"model": "corouter/qwen3.8-27b"
}model_provider = "corouter"
model = "qwen3.8-27b"
[model_providers.corouter]
name = "OpenDesign Go"
base_url = "https://amr-link.open-design.ai/v1"
env_key = "COROUTER_API_KEY"
wire_api = "responses"export ANTHROPIC_BASE_URL="https://amr-link.open-design.ai"
export ANTHROPIC_AUTH_TOKEN="YOUR_API_KEY"
export ANTHROPIC_API_KEY=""
export ANTHROPIC_MODEL="qwen3.8-27b"
claudehermes model
# Select: custom OpenAI-compatible endpoint
# Base URL: https://amr-link.open-design.ai/v1
# API key: YOUR_API_KEY
# Model: qwen3.8-27bbrew install --cask cc-switch
# Add OpenDesign Go API Key
# Base URL: https://amr-link.open-design.ai/v1
# Model ID: qwen3.8-27b同类模型对比
并排对比同模态单价、上下文窗口与 50K Token 编码单轮费用估算。
常见问题
Qwen3.8 27B(qwen3.8-27b)按官方原价计费:输入 $0.45/1M、输出 $3.2/1M;Prompt 缓存读取 $0.05/1M(省 89%)。
Qwen3.8 27B 支持 文本 + 图像 + 视频 → 文本,上下文窗口 1M,单次最大输出 131,072 tokens。
支持。可通过 reasoning_effort 参数设置 none / low / medium / high,默认值为 medium。
命中缓存的输入按 $0.05/1M 计费(较常规输入节省 89%),无额外缓存写入费用。
可以。直接复制上方「编码工具接入」中已预填好 "qwen3.8-27b" 的配置片段,替换 YOUR_API_KEY 为你的 OpenDesign Go API Key 即可生效。
不会。OpenDesign Go 严格执行零数据留存(ZDR),仅记录账号、模型、Token 用量与账单金额,绝不存储任何提示词或响应内容。
Alibaba 旗下更多模型
查看厂商页探索更多模型
全部模型目录Qwen3.8 27B API
https://amr-link.open-design.ai/v1
curl https://amr-link.open-design.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $COROUTER_API_KEY" \
-d '{
"model": "qwen3.8-27b",
"max_tokens": 1024,
"messages": [
{ "role": "user", "content": "Refactor this API handler for streaming responses." }
]
}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://amr-link.open-design.ai/v1",
api_key=os.environ["COROUTER_API_KEY"],
)
response = client.chat.completions.create(
model="qwen3.8-27b",
max_tokens=1024,
messages=[
{"role": "user", "content": "Refactor this API handler for streaming responses."}
],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://amr-link.open-design.ai/v1",
apiKey: process.env.COROUTER_API_KEY,
});
const response = await client.chat.completions.create({
model: "qwen3.8-27b",
max_tokens: 1024,
messages: [
{ role: "user", content: "Refactor this API handler for streaming responses." },
],
});
console.log(response.choices[0].message.content);import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
baseURL: "https://amr-link.open-design.ai",
apiKey: process.env.COROUTER_API_KEY,
});
const message = await client.messages.create({
model: "qwen3.8-27b",
max_tokens: 1024,
messages: [
{ role: "user", content: "Refactor this API handler for streaming responses." },
],
});
console.log(message.content);