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

# 获取单个 KEY 详情

> 根据 token_id 获取 KEY 的详细信息

## 请求参数

### 请求头（headers）

<ResponseField type="string" required>
  请求身份认证。接口使用 AIHubMix Manage Key 进行身份认证。
</ResponseField>

<ResponseField type="string">
  请求内容类型。此参数必须设置为 application/json。
</ResponseField>

### 路径参数（Path）

<ParamField path="token_id" type="integer" required>
  KEY ID。
</ParamField>

## 响应参数

<ResponseField name="success" type="boolean">
  是否成功。
</ResponseField>

<ResponseField name="message" type="string">
  提示信息（可能为空）。请求失败时返回失败原因。
</ResponseField>

<ResponseField name="data" type="object">
  Key 详情对象。请求失败时 data 可能为空对象 `{}`。

  <ResponseField name="id" type="integer">
    Key ID。
  </ResponseField>

  <ResponseField name="user_id" type="integer">
    用户 ID。
  </ResponseField>

  <ResponseField name="key" type="string">
    Key 字符串（用于调用/鉴权）。
  </ResponseField>

  <ResponseField name="status" type="integer">
    Key 状态。0 为未启用，1 为启用。
  </ResponseField>

  <ResponseField name="name" type="string">
    Key 名称。
  </ResponseField>

  <ResponseField name="created_time" type="integer">
    Key 创建时间（UNIX 时间戳）。
  </ResponseField>

  <ResponseField name="accessed_time" type="integer">
    Key 最近获取/访问时间（UNIX 时间戳）。
  </ResponseField>

  <ResponseField name="expired_time" type="integer">
    Key 过期时间（UNIX 时间戳）；-1 表示永不过期。
  </ResponseField>

  <ResponseField name="remain_quota" type="integer">
    限额余量；-1 表示无限额。
  </ResponseField>

  <ResponseField name="unlimited_quota" type="boolean">
    是否无限额。true 表示无限额；false 表示限额。
  </ResponseField>

  <ResponseField name="used_quota" type="integer">
    已使用额度。实际用量换算：used\_quota / 500000。
  </ResponseField>

  <ResponseField name="models" type="text">
    限制当前 Key 使用的模型（空字符串表示不限制或未设置）。
  </ResponseField>

  <ResponseField name="subnet" type="text">
    IP 限制（空字符串表示不限制或未设置）。
  </ResponseField>
</ResponseField>

***

更新时间：2026-06-01
