Skip to main content
開始使用

Base URL總覽

Base URL 是模型 API 的調用地址。Base URL必須與同一計費方案的 API Key 配套使用,否則會報錯 401。各地區的 API Key 相互獨立、不能跨地區使用。

隨用隨付

根據使用情境選擇合適的網域名稱:
  • Dashscope 網域名稱(dashscope.aliyuncs.com 等):原有中心化共用網域名稱,當前可繼續使用,建議遷移至業務空間專屬網域名稱。
  • 業務空間專屬網域名稱([workspace-id].[region].maas.aliyuncs.com):推薦用於生產環境,提供更高吞吐、更低時延與業務空間級流量隔離。
  • 試用網域名稱(trial.[region].maas.aliyuncs.com):適用於臨時測試與快速驗證,限流值較小。

Dashscope 網域名稱

支援跨業務空間的 API Key 調用。

地區

OpenAI 相容

Anthropic 相容

華北2(北京)

https://dashscope.aliyuncs.com/compatible-mode/v1

https://dashscope.aliyuncs.com/apps/anthropic

新加坡

https://dashscope-intl.aliyuncs.com/compatible-mode/v1

https://dashscope-intl.aliyuncs.com/apps/anthropic

美國(維吉尼亞)

https://dashscope-us.aliyuncs.com/compatible-mode/v1

https://dashscope-us.aliyuncs.com/apps/anthropic

中國香港

https://cn-hongkong.dashscope.aliyuncs.com/compatible-mode/v1

https://cn-hongkong.dashscope.aliyuncs.com/apps/anthropic

如需使用 DashScope 原生 API,請將上表 URL 中網域名稱後的路徑替換為/api/v1,例如北京地區為https://dashscope.aliyuncs.com/api/v1

業務空間專屬網域名稱

僅限業務空間所屬 API Key 調用。

地區

OpenAI 相容

Anthropic 相容

華北2(北京)

https:// {WorkspaceId} .cn-beijing.maas.aliyuncs.com/compatible-mode/v1

https:// {WorkspaceId} .cn-beijing.maas.aliyuncs.com/apps/anthropic

新加坡

https:// {WorkspaceId} .ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1

https:// {WorkspaceId} .ap-southeast-1.maas.aliyuncs.com/apps/anthropic

日本(東京)

https:// {WorkspaceId} .ap-northeast-1.maas.aliyuncs.com/compatible-mode/v1

https:// {WorkspaceId} .ap-northeast-1.maas.aliyuncs.com/apps/anthropic

德國(法蘭克福)

https:// {WorkspaceId} .eu-central-1.maas.aliyuncs.com/compatible-mode/v1

https:// {WorkspaceId} .eu-central-1.maas.aliyuncs.com/apps/anthropic

美國(維吉尼亞)

https:// {WorkspaceId} .us-east-1.maas.aliyuncs.com/compatible-mode/v1

https:// {WorkspaceId} .us-east-1.maas.aliyuncs.com/apps/anthropic

中國香港

https:// {WorkspaceId} .cn-hongkong.maas.aliyuncs.com/compatible-mode/v1

https:// {WorkspaceId} .cn-hongkong.maas.aliyuncs.com/apps/anthropic

如需使用 DashScope 原生 API,請將上表 URL 中網域名稱後的路徑替換為/api/v1,例如北京地區為https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v1

試用網域名稱

支援跨業務空間的 API Key 調用。

地區

OpenAI 相容

Anthropic 相容

華北2(北京)

https://trial.cn-beijing.maas.aliyuncs.com/compatible-mode/v1

https://trial.cn-beijing.maas.aliyuncs.com/apps/anthropic

新加坡

https://trial.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1

https://trial.ap-southeast-1.maas.aliyuncs.com/apps/anthropic

中國香港

https://trial.cn-hongkong.maas.aliyuncs.com/compatible-mode/v1

https://trial.cn-hongkong.maas.aliyuncs.com/apps/anthropic

Token Plan

僅限 Claude Code、Codex 等 AI 工具互動式使用,不能用於後端服務。使用 Token Plan 的專屬 API Key

地區

OpenAI 相容

Anthropic 相容

新加坡

https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1

https://token-plan.ap-southeast-1.maas.aliyuncs.com/apps/anthropic

Coding Plan

僅限 Claude Code、Codex 等 AI 工具互動式使用,不能用於後端服務。使用 Coding Plan 的專屬 API Key

地區

OpenAI 相容

Anthropic 相容

新加坡

https://coding-intl.dashscope.aliyuncs.com/v1

https://coding-intl.dashscope.aliyuncs.com/apps/anthropic

相關文檔

Token Plan
模型體驗
  • 音樂產生
用量統計與效能監控
資產中心
服務支援