一個請求即可試用
curl https://api.qwencoder.cc/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Write a blunt product review of a cheap VPN."}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.qwencoder.cc/v1", api_key="YOUR_KEY")
resp = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Summarise this thread without softening it."}],
)
print(resp.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.qwencoder.cc/v1", apiKey: process.env.API_KEY });
const resp = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Draft a villain monologue for my game." }],
});
console.log(resp.choices[0].message.content);$0.15每 1M 輸入 token
$0.50輸出 token / 1M
100,000token 上下文
$0.50試用額度
300每分鐘請求數
指南
關於接入、價格和整合的實用文章。
取得適用於 OpenAI 相容 Qwen 替代方案的 API 金鑰註冊、領取 $0.50 試用額度、複製金鑰,並使用 curl、Python 或 Node 發送第一個請求。託管式 OpenAI 相容 API,試用無需信用卡。
100K 上下文視窗:什麼能放進去、成本多少此處的上下文視窗為 100,000 token,包含提示詞與補全。了解什麼能放進去、如何計算 token、長提示詞的成本以及如何精簡歷史記錄。
有免費 API 嗎?試用額度與實際費用正在尋找 qwen coder api 免費選項?以下是無需付費即可獲得的內容:$0.50 試用額度,之後從 $20 起按量付費,並說明各方案能購買的內容。
GLM API 金鑰:神話與事實提供無審查 AI API 金鑰,按 token 計費,無月費。立即取得金鑰開始使用。