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
The name of the new Key.
Expiration time. Stored as a UNIX timestamp; -1 indicates it never expires.
Whether there is a quota limit.
remain_quota is: expected quota * 500000
Restricted models.
Restricted IP.
Response Parameters
Information related to the user’s newly created Key (typically includes id, name, etc.).
Key ID.
User ID.
Key status. 0 means disabled, 1 means enabled.
Key name.
Key creation time, stored as a UNIX timestamp.
Key retrieval time, stored as a UNIX timestamp.
Key expiration time; -1 indicates it never expires.
Remaining quota; -1 indicates unlimited quota.
Whether there is a quota limit.
Used quota is: used_quota / 500000
Models restricted for the current Key usage.
IP restrictions.
Detailed information on request failure. This parameter is not returned on successful requests.
Whether the request was successful.
Last updated: 2026-06-01
Create New KEY