Provider profile: Aliyun Bailian (Qwen) - Aliyun Bailian (阿里云百炼 / Model Studio) is Alibaba Cloud's enterprise model platform serving the Qwen and Wan families via the DashScope compatible-mode endpoint. TheRouter routes directly to both regions — dashscope.aliyuncs.com (China, Beijing) for CN-cost pricing, and dashscope-intl.aliyuncs.com (Singapore) as the international failover — and, for models offered in both regions, picks the cheaper healthy region per request. Coverage spans the Qwen3 commercial lineup (qwen3-max, qwen-max/plus/flash, qwen-long), code- and vision-specialised variants (qwen3-coder-plus, qwen3-vl-plus), the qwen-plus-thinking reasoning model, two embedding generations (v3 + v4), and Wan 2.2 text-to-image (flash + plus).
Aliyun Bailian (Qwen)
China + Singapore12 modelsAliyun Bailian API — DashScope-Compatible Qwen & Wan Routing, CN + Singapore Failover
Aliyun Bailian (阿里云百炼 / Model Studio) is Alibaba Cloud's enterprise model platform serving the Qwen and Wan families via the DashScope compatible-mode endpoint. TheRouter routes directly to both regions — dashscope.aliyuncs.com (China, Beijing) for CN-cost pricing, and dashscope-intl.aliyuncs.com (Singapore) as the international failover — and, for models offered in both regions, picks the cheaper healthy region per request. Coverage spans the Qwen3 commercial lineup (qwen3-max, qwen-max/plus/flash, qwen-long), code- and vision-specialised variants (qwen3-coder-plus, qwen3-vl-plus), the qwen-plus-thinking reasoning model, two embedding generations (v3 + v4), and Wan 2.2 text-to-image (flash + plus).
- ✓Full Qwen3 commercial lineup — qwen3-max, qwen-max/plus/flash, qwen-long, qwen-plus-thinking reasoning
- ✓Dual-region routing for models offered in both regions: dashscope.aliyuncs.com (CN pricing) + Singapore international failover, cost-optimised per request
- ✓OpenAI-compatible DashScope endpoint — drop in your existing OpenAI SDK with one URL change
- ✓Code and vision specialised variants: qwen3-coder-plus, qwen3-vl-plus
- ✓Wan 2.2 text-to-image (flash + plus) from the same provider key
Quickstart
from openai import OpenAI
client = OpenAI(
base_url="https://api.therouter.ai/v1",
api_key="YOUR_THEROUTER_KEY",
)
response = client.chat.completions.create(
model="qwen/qwen3-max",
messages=[{"role": "user", "content": "Explain dual-region failover in 3 sentences"}],
max_tokens=512,
)
print(response.choices[0].message.content)Use the global api.therouter.ai endpoint for new integrations; the legacy China accelerated endpoint is retired.
Models
Frequently Asked Questions
What is Aliyun Bailian (阿里云百炼)?
Aliyun Bailian — also known as Alibaba Cloud Model Studio — is Alibaba's enterprise AI platform that hosts the Qwen (通义千问) and Wan (通义万相) model families via a DashScope-compatible endpoint. It is one of the largest OpenAI-compatible API providers in China, serving both domestic and international developers through separate regional endpoints.
Which Aliyun / Qwen models are available on TheRouter?
TheRouter routes 12 Qwen/Wan models via Aliyun Bailian: the Qwen3 commercial lineup (qwen3-max, qwen-max, qwen-plus, qwen-flash, qwen-long), code-specialised qwen3-coder-plus, vision variant qwen3-vl-plus, reasoning model qwen-plus-thinking, two embedding generations (text-embedding-v3 + v4), and Wan 2.2 text-to-image in flash and plus sizes.
How does TheRouter handle the CN vs international DashScope regions?
TheRouter connects to both dashscope.aliyuncs.com (Beijing, CN pricing) and dashscope-intl.aliyuncs.com (Singapore, international pricing) and, for models offered in both regions, automatically selects the cheaper healthy region per request. If that primary region is unavailable, traffic falls over to the secondary region transparently — no client-side changes needed; models available in only one region (such as CN-only qwen-long) always route to their single region. Both regions are reached from TheRouter's global endpoint.
Is Aliyun Bailian's API OpenAI-compatible?
Yes. Alibaba Cloud's DashScope exposes an OpenAI-compatible chat completions endpoint. TheRouter normalises authentication, model namespacing (qwen/model-name), and request format so you can use the standard OpenAI Python or TypeScript SDK with only a base_url change. Streaming, function calling (tools), and response_format are all supported.
Why use TheRouter instead of calling DashScope directly?
TheRouter adds automatic dual-region failover, unified billing across Qwen and every other provider, usage analytics with per-model cost breakdown, spend controls, and team API key management — all through one OpenAI-compatible endpoint. You also gain access to Wan image generation and embedding models without separate credentials.