Update API Key
Update API Key — Authenticate with an access token
Use an access token generated on the profile page, not the model API Key being managed. See Programmatic API Key management for credentials and the full workflow.
Quota conversion: remain_quota = amount * 500000. expired_time=-1 means never expires; remain_quota=-1 with unlimited_quota=true means unlimited quota.
An ordinary update may reset omitted configuration. Read the details first and retain expiry, quota, and other settings before submitting.
Configuration and status-only updates share an endpoint. For status only, set status_only=true and send only id and status. The example includes the query parameter; configure it explicitly in Try It too.
/api/token/Update configuration or status. Ordinary updates may reset omitted fields; read details first and retain required settings. For status only, set status_only=true and submit id/status.
Authorization
userAccessToken Create an access token under Profile → Security. Use Bearer authentication, not a model API Key.
In: header
Query Parameters
Whether to update status only.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Ordinary updates may reset omitted configuration. Read details first and resubmit settings to retain. Use status_only=true for status-only updates.
Response Body
application/json
application/json