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

# 什么是 Token 和 API Key

> 理解 Anyone 中的 API Key 和模型 Token 的区别。

"Token" 在 Anyone 中有两个含义，别搞混了：

## API Key（你的钥匙）

API Key 是你调用 Anyone API 的凭证，格式通常是 `sk-xxxxx`。

* 在控制台创建
* 放在请求的 `Authorization: Bearer` 头中
* 每个 API key 有独立的用量统计和额度
* 可以随时创建新的、删除旧的

👉 详见 [管理你的 API Key](/guides/manage-tokens)

## 模型 Token（计费单位）

模型 Token 是 AI 模型处理文本的基本单位。大约：

* 1 个英文单词 ≈ 1-2 个 token
* 1 个中文字 ≈ 1-3 个 token
* 1000 token ≈ 750 个英文单词

每次 API 调用的费用 = 输入 token 数 × 输入单价 + 输出 token 数 × 输出单价

API 响应的 `usage` 字段会告诉你每次请求用了多少 token：

```json theme={null}
{
  "usage": {
    "prompt_tokens": 25,      // 输入用了 25 个 token
    "completion_tokens": 100,  // 输出用了 100 个 token
    "total_tokens": 125        // 总计 125 个 token
  }
}
```

<Tip>
  想省钱？用更短的 system prompt、减少上下文长度、选用更便宜的模型（如 gpt-5.4-mini 代替 gpt-4o）。
</Tip>
