Skip to main content
POST
建立新的 KEY

請求參數

請求標頭

請求的身份驗證。本 API 使用 AIHubMix Manage Key 進行身份驗證。
請求的內容類型。此參數必須設定為 application/json。

請求主體

string
必填
新建立 Key 的名稱。
integer
到期時間。以 UNIX 時間戳記儲存;-1 表示永不過期。
boolean
是否有額度限制。
integer
remain_quota 為:期望額度 * 500000
text
受限的模型。
text
受限的 IP。

回應參數

object
使用者新建立 Key 的相關資訊(通常包含 id、name 等欄位)。
integer
Key ID。
integer
使用者 ID。
integer
Key 狀態。0 表示停用,1 表示啟用。
string
Key 名稱。
integer
Key 建立時間,以 UNIX 時間戳記儲存。
integer
Key 存取時間,以 UNIX 時間戳記儲存。
string
Key 到期時間;-1 表示永不過期。
string
剩餘額度;-1 表示無限制。
boolean
是否有額度限制。
integer
已使用額度為:used_quota / 500000
text
目前 Key 可使用的受限模型。
text
IP 限制。
string
請求失敗的詳細資訊。請求成功時不會傳回此參數。
boolean
請求是否成功。

最後更新:2026-06-01