Learning LLM application development rarely stalls on the technical part. It stalls on step zero: how to open the platform, whether it will quietly burn money, and what you can actually build when you finish.
This treats Alibaba Cloud Model Studio (百炼, "Bailian") as a course: spend ten minutes setting up an account and quota, get one API call working, then stack the official free courses and labs on top. Everything runs on free quota, so nothing is paid up front.
🎯 1. What Bailian Is
Alibaba Cloud Bailian (Model Studio) is a model service platform positioned as MaaS: models, tools, and application orchestration all in the cloud. No GPUs to provision; call an API and put a model into your product.
Its capabilities split into four blocks, and that is also the learning order:
- Model calls: text, vision, speech, image and video generation, all behind one API key.
- Application orchestration: visually assemble chat apps, agents, and workflows.
- Knowledge base RAG: upload documents, auto-parse and chunk them, and answer from private material.
- Training and deployment: data management, fine-tuning, evaluation, quantization, dedicated deployment.
Compared with running Ollama locally, the difference is the scenario: Bailian is pay-per-use and zero-ops in the cloud, suited to stable concurrency and production use. Local execution suits offline experiments where data must not leave the machine.
🚪 2. Onboarding: Free Quota in Ten Minutes
- Register an Alibaba Cloud account at the registration page.
- Complete real-name verification with an ID card in the account center. No verification, no free quota — this is a hard requirement.
- Open the Bailian console and switch the region in the top right to China North 2 (Beijing). Free quota is issued only in that region.
- Accept the agreement to activate. Quota arrives automatically, usually within two hours; there is nothing to claim.
- Turn on "stop when used up" immediately on the Free Quota page. It is off by default, and once quota runs out the account silently switches to pay-as-you-go — which is where beginners get unexpected bills.
- Create an API key: left sidebar → "API Key Management" → Create. The key is shown once, so store it. See Get an API key.
The quota rules deserve their own table, because they decide how you can study:
| Item | Rule |
|---|---|
| Issuance | Automatic on first activation, no manual claim |
| Scale | Per model, typically 1M tokens each, across 70+ models, 70M+ total |
| Validity | 90 days from activation or model release, whichever is later; the clock runs either way |
| Region | Only models in China North 2 (Beijing) |
| Coverage | Real-time inference only; batch calls, fine-tuning, deployment, custom models excluded |
| Sharing | Main account and RAM sub-accounts share one pool |
| Re-claiming | The same verified identity cannot get newcomer quota again with a new account |
Note "per model": switching models switches pools, and they do not transfer. That is plenty for learning, but do not expect to move one model's quota to another. Full rules: newcomer free quota.
You can check remaining quota in three places: the Free Quota page, the quota block on a model's detail page in the model marketplace, or bl usage free in the Bailian CLI.
🔑 3. The First Working Call
Bailian is OpenAI-compatible, so existing code changes three things: API key, base_url, model name. See OpenAI compatibility.
The base_url is per workspace and per region. For Beijing:
https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/compatible-mode/v1
WorkspaceId is visible in the workspace info in the console; activation creates a default workspace.
Verify the path with curl first:
curl "https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/compatible-mode/v1/chat/completions" \
-H "Authorization: Bearer $DASHSCOPE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen-plus",
"messages": [{"role": "user", "content": "Explain RAG in one sentence."}]
}'
Then Python, with the key in an environment variable rather than in code:
import os
from openai import OpenAI
client = OpenAI(
api_key=os.getenv("DASHSCOPE_API_KEY"),
base_url="https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/compatible-mode/v1",
)
resp = client.chat.completions.create(
model="qwen-plus",
messages=[{"role": "user", "content": "Explain RAG in one sentence."}],
stream=True,
stream_options={"include_usage": True}, # also report token usage
)
for chunk in resp:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
For model choice, three tiers are enough while learning: Max is the strongest and most expensive, Plus is balanced, Flash/Turbo is fast and cheap. Practice on Plus or Flash, and only reach for Max when you want to compare the same prompt across tiers. Model list: models.
📚 4. Ordering the Official Free Courses
Bailian's official material is spread across the training center, Yun Gong Kai Wu, and Tianchi, so it is easy to miss pieces. In beginner order:
| Resource | Content | Stage |
|---|---|---|
| Bailian training camp (17 lessons + 4 labs) | Low-code LLM apps, flow orchestration, plugin agents, RAG, prompt engineering | From zero; certificate on completion |
| Training camp, advanced (24 lessons) | Plug an AI assistant into a website, DingTalk, WeChat official accounts, WeCom in 10 minutes; multi-agent | After you can build a basic app |
| Developer activities | Rolling courses such as AI study sessions and "five must-know lessons" | Anytime |
| Yun Gong Kai Wu AI space | Hands-on labs: agent building, RAG study assistant, ChatBI, ~30 minutes each | Learn by doing |
| Tianchi AI space | Free certification courses such as "building agent apps on Bailian" | Want a credential |
| Alibaba Cloud certification | LLM Clouder, LLM Engineer ACA | Job hunting or internal proof |
The training camp is the best value: short lessons, labs that run directly on free quota, and a certificate requiring 2 of the 4 lab tasks — a low bar.
The advanced version is the bridge from "can build" to "can plug into a real entry point". DingTalk, WeChat official accounts, and WeCom are exactly what most companies actually need.
🗓️ 5. A Four-Week Progression
Courses fade fast. Do these in order; each step fits inside the free quota.
Week 1: Calls and prompts
Get fluent with the API. Write a small CLI that takes a model name, streams output, and prints token usage. Then compare Max / Plus / Flash on the same question, by quality and by cost, and build the intuition for which model fits which task.
Week 2: Knowledge base RAG
Upload a document you know well (an internal product manual or the Chinese docs of an open-source project). Verify three things: retrieval recall, whether answers are fabricated, and whether the model admits it does not know when the answer is out of scope. Those three are the dividing line between usable and unusable RAG.
Week 3: Agents and workflows
Start from something small like customer-service intent classification: write a prompt, then convert it into a workflow, then add knowledge retrieval and tool calls. After that, try a plugin agent that reaches external APIs — weather, search, a database.
Week 4: Ship a small app
Wire the first three weeks into something demoable, such as an internal document Q&A bot or a contract key-information extractor. The value is hitting real problems: concurrency, timeouts, cost, permissions.
Fine-tuning and dedicated deployment come after this. They do not consume free quota, they cost real money, and without a clear business dataset, better prompts usually beat fine-tuning.
⚠️ 6. Five Common Questions
- Wrong region: quota exists only in China North 2 (Beijing). Activate elsewhere and calls are billed per token.
- "Stop when used up" left off: it defaults to off, so quota exhaustion silently becomes billing while you are still studying.
- Assuming quota pools merge: different models, even different snapshots of one model, keep separate pools.
- Spending free quota on fine-tuning: fine-tuning, deployment, and batch calls are all excluded — you find out from the invoice.
- Sub-account without permission: RAM sub-accounts need explicit Bailian permissions; the main account working does not imply the sub-account can.
🔗 7. References
- Registration: account.aliyun.com/register
- Product page: aliyun.com/product/bailian
- Console: bailian.console.aliyun.com
- Documentation: help.aliyun.com/zh/model-studio
- Free quota rules: new-free-quota
- API keys: get-api-key
- OpenAI compatibility: compatibility-of-openai-with-dashscope
- Models: model-studio/models
- Training camp: edu.aliyun.com/trainingcamp/359900
- Developer activities: bailian/activities
- Yun Gong Kai Wu: university.aliyun.com/lesson/campus
- Tianchi AI space: tianchi course homepage
Platform policy and courses change; check the console and official docs before activating.
Top comments (0)