> ## 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 的詳細資訊

## 請求參數

### 請求標頭

<ResponseField type="string" required>
  請求的身份驗證。本 API 使用 AIHubMix Manage Key 進行身份驗證。
</ResponseField>

<ResponseField type="string">
  請求的內容類型。此參數必須設定為 application/json。
</ResponseField>

### 路徑參數

<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
