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

# 账户管理概览

> 汇总认证头、OAuth 状态流、Token 用量和 OpenAI 兼容余额查询接口。

# 账户管理

账户管理这里主要覆盖三类内容：认证方式、OAuth 浏览器流，以及 API Key 维度或账户维度的余额与用量查询。

<CardGroup cols={2}>
  <Card title="认证方式" icon="key-round" href="/api-reference/account/authentication">
    Bearer Token、Claude 兼容头、Gemini 兼容头、登录态和 OAuth 路由。
  </Card>

  <Card title="余额与用量" icon="wallet" href="/api-reference/account/billing">
    `/api/usage/token`、`/dashboard/billing/subscription`、`/dashboard/billing/usage`。
  </Card>
</CardGroup>

## 路由清单

| Method | Path                                 | 说明                 |
| ------ | ------------------------------------ | ------------------ |
| `GET`  | `/api/oauth/state`                   | 生成 OAuth `state` 值 |
| `GET`  | `/api/oauth/{provider}`              | 标准 OAuth 回调路由      |
| `GET`  | `/api/usage/token/`                  | API Key 用量与余额      |
| `GET`  | `/dashboard/billing/subscription`    | OpenAI 兼容订阅/余额     |
| `GET`  | `/v1/dashboard/billing/subscription` | 同上，带 `/v1` 前缀的兼容路径 |
| `GET`  | `/dashboard/billing/usage`           | OpenAI 兼容用量        |
| `GET`  | `/v1/dashboard/billing/usage`        | 同上，带 `/v1` 前缀的兼容路径 |

## 推荐阅读顺序

1. [认证方式](./authentication)
2. [账户余额与用量](./billing)
