Alibaba Model Studio
Alibaba Model Studio(DashScope)是訓練 Qwen 的人自己開的門。國際帳號必須用 -intl 主機;中國端點會拒絕外國金鑰。新加坡/國際範圍的新用戶在 90 天內每模型 1M 免費 token。
Alibaba Model Studio(DashScope)是訓練 Qwen 的人自己開的門。國際帳號必須用 -intl 主機;中國端點會拒絕外國金鑰。新加坡/國際範圍的新用戶在 90 天內每模型 1M 免費 token。
阿里雲帳號需要與註冊時所選國家一致的手機號碼 —— 不只是電子郵件。plus 線是 qwen3.5-plus、qwen3.6-plus、qwen3.7-plus —— qwen3-plus 已不是有效 id。長上下文版本仍達 1M。走 /compatible-mode/v1 即 OpenAI 相容。
- 最大上下文
- 1M
- 免費額度
- 每模型 1M token,90 天
- 註冊要求
- 手機號碼驗證,不要卡
端點
基底網址
https://dashscope-intl.aliyuncs.com/compatible-mode/v1環境變數
DASHSCOPE_API_KEY速率限制
1M tokens per model for 90 days on the Singapore / International endpoint- OpenAI 相容
- 官方 SDK:DashScope SDK
- 文字
- 影像
- 程式碼
程式碼範例
npm install openaiimport OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://dashscope-intl.aliyuncs.com/compatible-mode/v1',
apiKey: process.env.DASHSCOPE_API_KEY
})
const response = await client.chat.completions.create({
model: 'qwen3.7-plus',
messages: [{ role: 'user', content: 'Explain closures in one paragraph.' }]
})
console.log(response.choices[0].message.content)pip install openaiimport os
from openai import OpenAI
client = OpenAI(
base_url="https://dashscope-intl.aliyuncs.com/compatible-mode/v1",
api_key=os.environ["DASHSCOPE_API_KEY"],
)
response = client.chat.completions.create(
model="qwen3.7-plus",
messages=[{"role": "user", "content": "Explain closures in one paragraph."}],
)
print(response.choices[0].message.content)curl https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-d '{
"model": "qwen3.7-plus",
"messages": [{"role": "user", "content": "Explain closures in one paragraph."}]
}'pip install dashscopeimport os
import dashscope
dashscope.api_key = os.environ["DASHSCOPE_API_KEY"]
dashscope.base_http_api_url = "https://dashscope-intl.aliyuncs.com/api/v1"
response = dashscope.Generation.call(
model="qwen3.7-plus",
messages=[{"role": "user", "content": "Explain closures in one paragraph."}],
result_format="message",
)
print(response.output.choices[0].message.content)值得注意
- 中國大陸以外請用 -intl 主機;國內端點會拒絕外國帳號。
- 阿里雲帳號需要與註冊時所選國家一致的手機號碼。
- qwen3-plus 不是有效 id。plus 線是 qwen3.5-plus / qwen3.6-plus / qwen3.7-plus。
你能免費使用的模型5
- Qwen 3.7 Plus
qwen3.7-plus - Qwen 3.6 Plus
qwen3.6-plus - Qwen 3.5 Plus
qwen3.5-plus - Qwen 3 Coder Plus
qwen3-coder-plus - Qwen 3.5 Plus Long
qwen3.5-plus-2026