// Models · API key guide
Alibaba Cloud Model Studio (Bailian) API key
This page is about the platform side – regions, workspaces, sub-accounts and permissions. For a quick Qwen call, see the Qwen page.
5 stepsofficial docs onlychecked 2026-10-26
01How to get a Alibaba Cloud Model Studio (Bailian) API key
- Activate Model Studio in the Bailian console with your Alibaba Cloud account.
- Pick the region at the top of the console – each region has its own keys, models and endpoints.
- (Teams) Create workspaces for projects, and RAM users for people; grant RAM users Bailian permissions.
- API Key → Create API Key: choose the owning account (main or RAM), the workspace, and permissions – all, or restricted by model and IP.
- Use the key as DASHSCOPE_API_KEY with the region’s endpoint.
Official key page: https://bailian.console.aliyun.com/?tab=model#/api-key – console labels may change; follow what the official page shows.
02Real-name, phone and credit card requirements
| Real-name / ID verification | Free quota: no. Pay-as-you-go after the free quota: yes. |
|---|---|
| Phone number | Alibaba Cloud account required; sign-up rules are on Alibaba Cloud’s site. |
| Credit card / payment | Not needed for the free quota. |
03Base URL and a minimal call
https://dashscope.aliyuncs.com/compatible-mode/v1DASHSCOPE_API_KEY · Example model:qwen3.8-maxcurl
curl https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-d '{
"model": "qwen3.8-max",
"messages": [{"role": "user", "content": "你好"}]
}' 04Free quota
All free AI APIs →About 1M tokens per model for 90 days (Beijing region only, real-time inference only), shared by the main account and RAM users; a “stop when free quota runs out” switch prevents charges.
05Alibaba Cloud Model Studio (Bailian) API prices
All model prices →Third-party models priced on Bailian (Qwen’s own prices are on the Qwen page).
| Model | Input / 1M tokens | Output / 1M tokens | Source |
|---|---|---|---|
MiniMax-M3 (on 百炼)MiniMax-M3@bailian | ¥4.2 | ¥16.8 | official · 2026-10-10 |
Step-5-Preview (on 百炼)step-5-preview@bailian | ¥7 | ¥20 | official · 2026-10-10 |
MiMo-V2.5-Pro (on 百炼)mimo-v2.5-pro@bailian | ¥7 | ¥21 | official · 2026-10-10 |
GLM-5.3 (on 百炼)glm-5.3@bailian | ¥8 | ¥28 | official · 2026-10-10 |
DeepSeek-V4-Pro (on 百炼)deepseek-v4-pro@bailian | ¥12 | ¥24 | official · 2026-10-10 |
Kimi K3 (on 百炼)kimi-k3@bailian | ¥20 | ¥100 | official · 2026-10-10 |
Standard (non-batch) list prices from our price database; cheapest first, max 8 rows. Prices change – the official page wins.
06Keep your API key safe
- Up to 50 keys per account per region; temporary keys last at most 1,800 seconds.
- Give each RAM user / workspace its own key and restrict it to the models it needs.
- Keep the key in an environment variable or a secrets manager – never hard-code it, never commit it to Git, never paste it into a screenshot, chat or issue.
- Never put a long-lived key in front-end, mobile or desktop client code – anyone can extract it. Call the API from your own server.
- One key per project or environment, so a leak can be revoked without breaking everything else.
- If a key leaks, delete it in the console immediately and create a new one, then check usage and billing.
- Do not buy keys from resellers or “API relays” and do not paste your key into websites you do not trust.
07FAQ
FAQ
Bailian key vs Qwen key – are they different?
Same key. Qwen models are served through Bailian, so a Bailian (DashScope) key calls Qwen and the other models on Bailian.
Why does my key return an error in another region?
Keys are bound to the region where they were created and cannot be used across regions. Create a key in that region and use its endpoint.
What is the Bailian API address?
For China (Beijing): https://dashscope.aliyuncs.com/compatible-mode/v1 (OpenAI-compatible). Other regions have their own addresses – check the console.
08Official sources
- 阿里云百炼 · 获取 API Key help.aliyun.com
- 阿里云百炼 · 新人免费额度 help.aliyun.com
- 阿里云百炼 · OpenAI 兼容 help.aliyun.com
All facts checked against these pages on 2026-10-26. If anything differs, the official page wins.