Skip to main content
GET
Get API key quota balance
Returns the call quota for the current API key (independent of account points). If you set total_quota in the console, the key is capped; 0 means unlimited.

Response fields

About used_quota

used_quota is the current key’s cumulative charged usage in the same unit as total_quota (points).
  • Scope: only jobs charged through this key.
  • When it increases: after a job is submitted and charged (cost added to used_quota).
  • Enforcement: if total_quota > 0 and used_quota >= total_quota, new billable requests with this key are rejected.
  • Vs account used_coin: /user/balance is account-wide net spend; used_quota is per-key.
Charges still debit the user points balance. total_quota / used_quota only cap how much one key may spend.

Example

Authorizations

Authorization
string
header
required

控制台创建的 API Key,格式:Bearer sk_xxx

Response

200 - application/json

Key quota

code
integer
Example:

20000

msg
string
data
object
Last modified on October 15, 2026