Skip to content
English

Switch theme

// 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

  1. Activate Model Studio in the Bailian console with your Alibaba Cloud account.
  2. Pick the region at the top of the console – each region has its own keys, models and endpoints.
  3. (Teams) Create workspaces for projects, and RAM users for people; grant RAM users Bailian permissions.
  4. API Key → Create API Key: choose the owning account (main or RAM), the workspace, and permissions – all, or restricted by model and IP.
  5. 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 verificationFree quota: no. Pay-as-you-go after the free quota: yes.
Phone numberAlibaba Cloud account required; sign-up rules are on Alibaba Cloud’s site.
Credit card / paymentNot needed for the free quota.

03Base URL and a minimal call

Base URL:https://dashscope.aliyuncs.com/compatible-mode/v1
China (Beijing). Workspace endpoint format in newer docs: https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/compatible-mode/v1. Use the endpoint your console shows for your region.
Environment variable:DASHSCOPE_API_KEY · Example model:qwen3.8-max
Besides Qwen, Bailian also hosts third-party models; the model IDs are listed in the console’s model square.

curl

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": "你好"}]
  }'

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.

Our free-API tracker:On first activation each model gets its own new-user quota, valid 90 days; Beijing region only.
checked 2026-11-02 · details →

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

ModelInput / 1M tokensOutput / 1M tokensSource
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

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

All facts checked against these pages on 2026-10-26. If anything differs, the official page wins.

09Related

Other API key guides

Data updated: Model API prices · HF model metadata(UTC+8)