The Base URL is the API endpoint for model calls. Pair it with an API Key from the same billing plan — a mismatch returns a 401 error. API Keys are region-specific.
Pay-as-you-go
Choose a domain that fits your use case:
- DashScope domain (
dashscope.aliyuncs.com): Legacy shared domain. Still available; migration to a workspace-dedicated domain is recommended. - Workspace-dedicated domain (
[workspace-id].[region].maas.aliyuncs.com): Recommended for production. Higher throughput, lower latency, and workspace-level traffic isolation. - Trial domain (
trial.[region].maas.aliyuncs.com): For testing and quick validation. Lower rate limits apply.
DashScope Domain
Accepts an API Key from any workspace in the same region.
Region | OpenAI-compatible | Anthropic-compatible |
|---|---|---|
China (Beijing) | ||
Singapore | ||
US (Virginia) | ||
China (Hong Kong) |
|
/api/v1. For example, the endpoint for the China (Beijing) region is https://dashscope.aliyuncs.com/api/v1.
Workspace-dedicated Domain
Requires an API Key that belongs to the target workspace.
Region | OpenAI-compatible | Anthropic-compatible |
|---|---|---|
China (Beijing) |
|
|
Singapore |
|
|
Japan (Tokyo) |
|
|
Germany (Frankfurt) |
|
|
US (Virginia) |
|
|
China (Hong Kong) |
|
|
/api/v1. For example, the endpoint for the China (Beijing) region is https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v1.
Trial Domain
Accepts an API Key from any workspace in the same region.
Region | OpenAI-compatible | Anthropic-compatible |
|---|---|---|
China (Beijing) |
| |
Singapore |
|
|
China (Hong Kong) |
|
Token Plan
For interactive AI coding tools (Claude Code, Codex) only — not for backend services. Use the Token Plan dedicated API Key.
Region | OpenAI-compatible | Anthropic-compatible |
|---|---|---|
Singapore |
|
|
Coding Plan
For interactive AI coding tools (Claude Code, Codex) only — not for backend services. Use the Coding Plan dedicated API Key.
Region | OpenAI-compatible | Anthropic-compatible |
|---|---|---|
Singapore |