FreeTokens 导航
大厂云服务正常可用

阿里云百炼 (DashScope)Alibaba Cloud Bailian

阿里云官方大模型服务平台,聚合通义千问全系列开源与商业化模型,每个模型均提供独立的百万免费额度包。

核心免费额度
1000 万 Tokens (180天超长有效)限时赠送

通义千问 Qwen 系列每个主流模型各赠送 100 万 ~ 1000 万 Tokens,半年有效。

刷新周期:一次性

申领条件与风控要求

手机验证免绑手机
信用卡绑定免绑信用卡
网络环境全球直连
并发限制RPM 无特殊限制 · TPM 无限制

免费可用模型

qwen-turboqwen-plusqwen-max

10 秒快速接入代码

from openai import OpenAI

# 1. 初始化客户端(使用 阿里云百炼 (DashScope) 专属 API 接口地址)
client = OpenAI(
    api_key="YOUR_API_KEY",  # 填入申请到的 阿里云百炼 (DashScope) API Key
    base_url="https://dashscope.aliyuncs.com/compatible-mode/v1"
)

# 2. 发起对话请求(使用官方免费支持的模型)
response = client.chat.completions.create(
    model="qwen-turbo",
    messages=[
        {"role": "user", "content": "你好!请用一句话介绍你自己。"}
    ]
)

print(response.choices[0].message.content)
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": "你好!"}]
  }'
import OpenAI from "openai";

// 1. 初始化客户端
const openai = new OpenAI({
  apiKey: "YOUR_API_KEY",
  baseURL: "https://dashscope.aliyuncs.com/compatible-mode/v1",
});

// 2. 发起请求
const response = await openai.chat.completions.create({
  model: "qwen-turbo",
  messages: [{ role: "user", content: "你好!" }],
});

console.log(response.choices[0].message.content);

避坑提示与风控防范

  • 免费额度消耗后自动转为按量扣费,请设置用量预警。
FreeToken 官方公众号二维码