Alibaba Cloud Bailian阿里云百炼 (DashScope)
Alibaba Cloud enterprise platform offering Qwen 2.5, Qwen-Max, and Wanx multimodal models with free credits.
Core Free Tier
1000 万 Tokens (180天超长有效)限时赠送
通义千问 Qwen 系列每个主流模型各赠送 100 万 ~ 1000 万 Tokens,半年有效。
Reset Cycle: 一次性
Eligibility & Verification Requirements
Phone VerificationNo Phone Needed
Credit CardNo Card Needed
Network / RegionGlobal Direct
Concurrency RateStandard Tier
10-Second Drop-in Integration Code (OpenAI Compatible)
curl https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_API_KEY" -d '{
"model": "qwen-turbo",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'from openai import OpenAI
client = OpenAI(
base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
api_key="YOUR_API_KEY",
)
response = client.chat.completions.create(
model="qwen-turbo",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://dashscope.aliyuncs.com/compatible-mode/v1",
apiKey: "YOUR_API_KEY",
});
const response = await client.chat.completions.create({
model: "qwen-turbo",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);Gotchas & Risk Precautions
- 免费额度消耗后自动转为按量扣费,请设置用量预警。
