Generous 80M token free tier · Enable 'Stop on Exhaust' to prevent auto-charges
https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/compatible-mode/v1 💡 Directly paste the address above as Base URL into any OpenAI-compatible client (NextChat, Cherry Studio, Immersive Translate, etc.).
qwen3.8-max qwen3.8-flash qwen3.7-plus qwen3.7-flash qwen3-coder-flash deepseek-v4.1-flash Alibaba Cloud Bailian (Model Studio) is Alibaba's one-stop foundation model platform, hosting the entire Qwen family alongside top third-party models like DeepSeek, Kimi, and GLM.
New users receive one of the largest welcome packages in China: 1,000,000 free tokens for each of 80+ models (~80 million tokens total), from Qwen 3.8 Max down to coding specialists. Note that free tokens apply strictly to the China North 2 (Beijing) region and auto-convert to pay-as-you-go unless the protective toggle is turned on.
For KYC-verified accounts, once a model's 1M free quota is exhausted, traffic seamlessly transitions to post-pay billing (charged by minute). Go to Bailian Console -> 'Free Quota' and toggle on 'Stop on Free Tier Exhaustion' (returns HTTP 403 AllocationQuota.FreeTierOnly when spent).
Free tokens are strictly valid for the China North 2 (Beijing) region. Using endpoints in Singapore (ap-southeast-1) or Tokyo (ap-northeast-1) will bypass free credits and incur immediate charges! Ensure your Base URL points to cn-beijing.
Each quota is valid for 90 days from onboarding or model release date. Quotas do not cross-pool: consuming qwen3.8-max leaves your 1M tokens for qwen3.8-flash completely intact. Date-tagged snapshots count as separate models with independent quotas.
OpenAI-compatible Base URL follows https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/compatible-mode/v1. Replace {WorkspaceId} with your workspace identifier from the top right of the console. Pass DASHSCOPE_API_KEY as Bearer Token.
Open https://bailian.console.aliyun.com/, log in with your Alibaba Cloud / Alipay account, complete identity verification, and activate the platform to receive 80+ model vouchers.
Under 'Free Quota' in the left sidebar, enable 'Stop when free tier exhausted'. Then navigate to 'API-KEY' to generate your key and note your Workspace ID.
In NextChat, ChatBox, or your code, set Base URL to https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/compatible-mode/v1, enter your API Key, and select qwen3.8-max or qwen3.8-flash!
from openai import OpenAI
client = OpenAI(
api_key="your_api_key_here", # 填入申请的 Key
base_url="https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/compatible-mode/v1"
)
response = client.chat.completions.create(
model="qwen3.8-max",
messages=[
[object Object]
]
)
print(response.choices[0].message.content)