跳转到主要内容
GET
https://aihubmix.com
/
api
/
token
获取 KEY 列表
curl --request GET \
  --url https://aihubmix.com/api/token/ \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "id": 123,
    "user_id": 123,
    "status": 123,
    "name": "<string>",
    "created_time": 123,
    "accessed_time": 123,
    "expired_time": "<string>",
    "remain_quota": "<string>",
    "unlimited_quota": true,
    "used_quota": 123,
    "models": "<string>",
    "subnet": "<string>"
  },
  "message": "<string>",
  "success": true
}

请求参数

请求头(headers)

请求身份认证。接口使用 AIHubMix Manage Key 进行身份认证。
请求内容类型。此参数必须设置为 application/json。

响应参数

data
object
用户 Key 相关信息(通常包含 id、name 等)。
id
integer
Key ID。
user_id
integer
用户 ID
status
integer
Key 状态。0 为未启用,1 为启用。
name
string
Key 名称。
created_time
integer
Key 创建时间,保存格式为 UNIX 时间戳。
accessed_time
integer
Key 获取时间,保存格式为 UNIX 时间戳。
expired_time
string
Key 过期时间,-1 表示永不过期。
remain_quota
string
限额余量,-1 表示无限额。
unlimited_quota
boolean
是否限额。
used_quota
integer
已使用额度为:used_quota / 500000
models
text
限制当前 Key 使用的模型。
subnet
text
IP 限制。
message
string
请求失败的详细信息。请求成功时不会返回此参数。
success
boolean
是否成功