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

# 认证与 Base URL

> 所有 Relay 请求的统一入口与鉴权方式

所有 Relay 请求均通过 API Key 鉴权，Base URL 固定为：

```text theme={null}
https://gogogotoken.ai
```

## 快速接入

1. 在控制台创建 API Key
2. 将 Base URL 指向 `https://gogogotoken.ai`
3. 使用 `Authorization: Bearer YOUR_API_KEY` 发起请求

## 鉴权方式

所有接口都推荐统一使用 `Authorization: Bearer`：

```http theme={null}
Authorization: Bearer YOUR_API_KEY
```

Claude Messages 接口也兼容 `x-api-key`，用于适配部分 Claude SDK 或客户端配置：

```http theme={null}
x-api-key: YOUR_API_KEY
anthropic-version: 2023-06-01
```

Gemini 原生接口也兼容 `x-goog-api-key`，用于适配部分 Gemini SDK 或客户端配置：

```http theme={null}
x-goog-api-key: YOUR_API_KEY
```

> 通常只需要传一种鉴权方式。网关会统一校验令牌权限、分组模型范围与余额，无需区分上游厂商 Key 格式。

## 获取 API Key

1. 注册并登录 [gogogotoken.ai](https://gogogotoken.ai)
2. 进入控制台 -> 令牌管理
3. 创建 Key，按需设置分组、模型限制与配额

请妥善保管 Key，勿提交至公开仓库。
