Platform API
Create New KEY
Create a new API KEY
POST
Create New KEY
Request Parameters
Request Headers
Authentication for the request. This API uses the AIHubMix Manage Key for authentication.
The content type of the request. This parameter must be set to application/json.
Request Body
string
required
The name of the new Key.
integer
Expiration time. Stored as a UNIX timestamp; -1 indicates it never expires.
boolean
Whether there is a quota limit.
integer
remain_quota is: expected quota * 500000
text
Restricted models.
text
Restricted IP.
Response Parameters
object
Information related to the user’s newly created Key (typically includes id, name, etc.).
integer
Key ID.
integer
User ID.
integer
Key status. 0 means disabled, 1 means enabled.
string
Key name.
integer
Key creation time, stored as a UNIX timestamp.
integer
Key retrieval time, stored as a UNIX timestamp.
string
Key expiration time; -1 indicates it never expires.
string
Remaining quota; -1 indicates unlimited quota.
boolean
Whether there is a quota limit.
integer
Used quota is: used_quota / 500000
text
Models restricted for the current Key usage.
text
IP restrictions.
string
Detailed information on request failure. This parameter is not returned on successful requests.
boolean
Whether the request was successful.
Last updated: 2026-06-01
Create New KEY