获取区域地址
在控制台顶栏选择区域,再到 复制 API 端点。示例域名YOUR-REGION.example 无法调用;不需要选择文档站所在区域。
OpenAI SDK 在 Base URL 后添加资源路径。不要重复写成
/v1/v1/responses。Anthropic SDK 与 Claude Code 的地址为根地址,去掉尾部 /v1;Gemini 从根地址构建 /v1beta 请求。
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
复制真实区域地址,区分包含 /v1 的地址与网关根地址。
YOUR-REGION.example 无法调用;不需要选择文档站所在区域。
| 客户端或协议 | 示例配置 |
|---|---|
| OpenAI Python / JavaScript SDK、Codex CLI | https://YOUR-REGION.example/v1 |
| Anthropic SDK、Claude Code | https://YOUR-REGION.example |
| Gemini 原生请求 | https://YOUR-REGION.example/v1beta/models/MODEL_ID:generateContent |
/v1/v1/responses。Anthropic SDK 与 Claude Code 的地址为根地址,去掉尾部 /v1;Gemini 从根地址构建 /v1beta 请求。