> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codeflare.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# 区域与 Base URL

> 复制真实区域地址，区分包含 /v1 的地址与网关根地址。

export const ConsoleLink = ({path = "/console", children}) => <a href={"http://localhost:3001" + path} target="_blank" rel="noopener noreferrer">{children}</a>;

## 获取区域地址

在控制台顶栏选择区域，再到 <ConsoleLink path="/console/keys">API 密钥页 ↗</ConsoleLink> 复制 API 端点。示例域名 `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` |

OpenAI SDK 在 Base URL 后添加资源路径。不要重复写成 `/v1/v1/responses`。Anthropic SDK 与 Claude Code 的地址为根地址，**去掉尾部 `/v1`**；Gemini 从根地址构建 `/v1beta` 请求。

## 切换与测速

控制台选择区域只改变你复制的 API 入口，不会修改已经运行的应用；修改应用配置后再发送新请求。已登录用户的区域偏好保存在账户，访客偏好保存在浏览器。

<Warning>手选区域失败不会自动跨区切换。查询、续接和取消已有 Responses 请求时，应继续使用原区域；失败后先确认结果，再决定是否重新生成。</Warning>

区域测速是入口延迟参考，不能代表模型生成速度或服务可用性承诺。可用区域与实际地址以控制台当前配置为准。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.