Alibaba Cloud Bailian (Model Studio)

● 24h Uptime 99.9% (Alibaba Beijing & Global Cloud)

Generous 80M token free tier · Enable 'Stop on Exhaust' to prevent auto-charges

💡 HIGHLIGHT

Alibaba Cloud Bailian Guide: 80M Free Tokens, Beijing Region Endpoint & Charge Prevention

⚡ Speed & Latency
110ms ~ 220ms
Top-tier Alibaba Cloud BGP multi-line network, Qwen 3.8 / Flash instant TTFT
🎁 Free Quota & Policy
80+ models receive 1M free tokens each (~80M tokens total)
Beijing region exclusive · 90-day validity · Stop-on-exhaust supported
🛡️ Auth & Access Requirements
Use DASHSCOPE_API_KEY as standard Bearer Token
Offers official compatible-mode endpoint for standard OpenAI SDKs
📊 Concurrency & Context
30,000 RPM / 5,000,000 TPM
Enterprise-grade concurrency, 1M ultra-long context, and SSE streaming

🔌 OpenAI-Compatible Base URL

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.).

📋 Featured Models:

Click Model ID to copy
Flagship LLM qwen3.8-max
Qwen 3.8 flagship model, 1M context, state-of-the-art complex reasoning
High Throughput qwen3.8-flash
Next-gen Flash model, 1M context, ultra-fast TTFT and high throughput
Balanced Workhorse qwen3.7-plus
Balanced all-rounder, 1M context, limited-time 20% off discount
Ultra Low Cost qwen3.7-flash
Extremely cost-effective (¥0.2/M), 1M context, top choice for lightweight tasks
Code Expert qwen3-coder-flash
Specialized model for code generation, repository debugging, and refactoring
Managed 3rd-Party deepseek-v4.1-flash
Official Bailian-hosted DeepSeek V4.1 Flash with dedicated 1M free tokens

🎁 Free Tier Reality & Limits

1M free tokens per model across 80+ models (~80M tokens total), valid for 90 days in cn-beijing
🔄 Reset Cycle One-time starter grant upon activation or new model release (valid 90 days)
🛡️ Overage Behavior ⚠️ KYC-verified accounts automatically switch to pay-as-you-go upon exhaustion! Strongly recommend enabling 'Stop on Exhaust' switch in console
📋 Access Requirements
✓ No Credit Card 🪪 ID Verification Required

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.

⚠️ Worth Knowing & Gotchas

⚠️ Anti-Billing: Enable 'Stop on Exhaust'

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).

📍 Region Constraint: Free Quota Limited to Beijing (cn-beijing)

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.

🕒 90-Day Validity & Snapshot Independence

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.

🔑 {WorkspaceId} Placeholder & Bearer Auth

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.

🚀 30-Second Quick Setup Guide

01

Sign in and activate Bailian Console

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.

02

Enable 'Stop on Exhaust' and copy credentials

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.

03

Configure OpenAI-compatible clients

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!

💻 Quick Python OpenAI SDK Example

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)

📖 Related In-Depth Tutorials & Strategies

Guides →
← Radar 🚀 Toolbox