Base URL总览

更新时间:
复制 MD 格式

Base URL 是模型 API 的调用地址。Base URL必须与同一计费方案的 API Key 配套使用,否则会报错 401。各地域的 API Key 相互独立、不能跨地域使用。

按量付费

根据使用场景选择合适的域名:

  • Dashscope 域名(dashscope.aliyuncs.com 等):原有中心化共享域名,当前可继续使用,建议迁移至业务空间专属域名。

  • 业务空间专属域名([workspace-id].[region].maas.aliyuncs.com):推荐用于生产环境,提供更高吞吐、更低时延与业务空间级流量隔离。

  • 试用域名(trail.[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

业务空间专属域名

仅限业务空间所属 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

试用域名

支持跨业务空间的 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

Token Plan

仅限 Claude Code、Codex 等 AI 工具交互式使用,不能用于后端服务。使用 Token Plan 的专属 API Key

地域

OpenAI 兼容

Anthropic 兼容

华北2(北京)

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

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

Coding Plan

仅限 Claude Code、Codex 等 AI 工具交互式使用,不能用于后端服务。使用 Coding Plan 的专属 API Key

地域

OpenAI 兼容

Anthropic 兼容

华北2(北京)

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

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

相关文档