Skip to main content
GET
https://aihubmix.com
/
api
/
token
Get KEY List
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
}

Request Parameters

Request Headers

Authentication for the request. This API uses the AIHubMix Manage Key for authentication.
Content type of the request. This parameter must be set to application/json.

Response Parameters

data
object
Information related to the user Key (usually includes id, name, etc.).
id
integer
Key ID.
user_id
integer
User ID.
status
integer
Key status. 0 means disabled, 1 means enabled.
name
string
Key name.
created_time
integer
Key creation time, stored as a UNIX timestamp.
accessed_time
integer
Key access time, stored as a UNIX timestamp.
expired_time
string
Key expiration time, -1 indicates never expires.
remain_quota
string
Remaining quota, -1 indicates unlimited.
unlimited_quota
boolean
Whether there is a quota limit.
used_quota
integer
Used quota: used_quota / 500000
models
text
Models restricted for current Key usage.
subnet
text
IP restrictions.
message
string
Detailed information on request failure. This parameter will not be returned on successful requests.
success
boolean
Indicates success.