v1

latestOpenAPI 3.1.02026-07-267724480.0 KB

Get current API key

Retrieve usage, quota, expiration, and model-limit details for the CometAPI API key sent in the bearer Authorization header.

get/api/usage/token

Response

Current API key usage details.

codeboolean required

Whether the request succeeded.

messagestring required

Status message.

Example response

{
  "data": {
    "object": "token_usage",
    "name": "production",
    "total_granted": 150000,
    "total_used": 50000,
    "total_available": 100000,
    "model_limits": {}
  }
}