qwen-plus-chat-3.5-2026-04-20 API
Alibaba Bailian Qwen3.5 Plus 2026-04-20.
執行前請查看公開價格與可選參數。
公開 ID: qwen-plus-chat-3.5-2026-04-20
模型型別: 聊天
定價
可變價格 · 按實際用量計費;執行前確認價格
隱私
未知
未知表示尚未釋出經過核實的完整服務隱私保證。無審查不保證任意請求成功。
快速開始
確認該模型出現在你的金鑰目錄中,再檢視該能力文件中的輸入選項。
將 GLOOP_API_BASE 設為 API 位址,GLOOP_API_KEY 設為伺服器端金鑰。
curl
curl --fail-with-body "${GLOOP_API_BASE%/}/v1/chat/completions" \
-H "Authorization: Bearer $GLOOP_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"messages": [
{
"content": "Hello",
"role": "user"
}
],
"model": "qwen-plus-chat-3.5-2026-04-20"
}'Python
import os, json, urllib.request
url = os.environ['GLOOP_API_BASE'].rstrip('/') + "/v1/chat/completions"
headers = {'Authorization': 'Bearer ' + os.environ['GLOOP_API_KEY']}
headers['Content-Type'] = 'application/json'
data = "{\n \"messages\": [\n {\n \"content\": \"Hello\",\n \"role\": \"user\"\n }\n ],\n \"model\": \"qwen-plus-chat-3.5-2026-04-20\"\n}".encode('utf-8')
request = urllib.request.Request(url, data=data, headers=headers)
with urllib.request.urlopen(request) as response:
print(json.load(response))Node.js
const url = process.env.GLOOP_API_BASE.replace(/\/$/, '') + "/v1/chat/completions";
const headers = { Authorization: `Bearer ${process.env.GLOOP_API_KEY}` };
headers['Content-Type'] = 'application/json';
const response = await fetch(url, { method: 'POST', headers, body: JSON.stringify({
"messages": [
{
"content": "Hello",
"role": "user"
}
],
"model": "qwen-plus-chat-3.5-2026-04-20"
}) });
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());
執行前請確認模型存取權限與價格。複製範例不會呼叫 API。
常見問題
qwen-plus-chat-3.5-2026-04-20 — 應使用哪個模型 ID?
qwen-plus-chat-3.5-2026-04-20
qwen-plus-chat-3.5-2026-04-20 — 此模型如何計費?
執行前請查看公開價格與可選參數。
qwen-plus-chat-3.5-2026-04-20 — 支援哪些 API 端點?
/v1/chat/completions, /v1/responses