Retrieve quota, usage, expiration, and model-limit details for the CometAPI API key sent in the bearer Authorization header.
curl https://api.cometapi.com/api/usage/token \
-H "Authorization: Bearer <COMETAPI_KEY>"{
"code": true,
"message": "ok",
"data": {
"object": "token_usage",
"name": "production",
"total_granted": 150000,
"total_used": 50000,
"total_available": 100000,
"unlimited_quota": false,
"model_limits": {
"gpt-4.1": true
},
"model_limits_enabled": true,
"expires_at": 0
}
}Use this endpoint to inspect the CometAPI API key used by the request. It returns usage and quota fields for the bearer key, not an account-level list of all keys.Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorization: Bearer <COMETAPI_KEY>. API key management endpoints use a separate personal access token.| Field | Type | Description |
|---|---|---|
name | string | Display name of the API key. |
total_granted | integer | Total quota assigned to this key in CometAPI internal quota units. |
total_used | integer | Quota consumed by this key in CometAPI internal quota units. |
total_available | integer | Remaining quota available to this key in CometAPI internal quota units. |
unlimited_quota | boolean | Whether the key bypasses remaining-quota checks. |
model_limits | object | Model restrictions for this key, keyed by model ID. Empty when no model limits are configured. |
model_limits_enabled | boolean | Whether model restrictions are active for this key. |
expires_at | integer | Unix timestamp in seconds when the key expires. 0 means no expiration in this usage response. |
CometAPI API key used for model requests. Send it as Authorization: Bearer <COMETAPI_KEY>.
curl https://api.cometapi.com/api/usage/token \
-H "Authorization: Bearer <COMETAPI_KEY>"{
"code": true,
"message": "ok",
"data": {
"object": "token_usage",
"name": "production",
"total_granted": 150000,
"total_used": 50000,
"total_available": 100000,
"unlimited_quota": false,
"model_limits": {
"gpt-4.1": true
},
"model_limits_enabled": true,
"expires_at": 0
}
}