API Keys
Get current API key
Retrieve quota, usage, expiration, and model-limit details for the CometAPI API key sent in the bearer Authorization header.
GET
cURL
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.
This endpoint uses a CometAPI API key:
Authorization: Bearer $COMETAPI_KEY. API key management endpoints use a separate personal access token.Returned fields
| 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. |
Authorizations
CometAPI API key used for model requests. Send it as Authorization: Bearer $COMETAPI_KEY.