Skip to main content
CometAPI provides two ways to check account balance and usage: the CometAPI CLI and the query service API at query.cometapi.com. If you use a Workspace, see Manage a team with CometAPI Workspace to understand shared Organization Credits and billing roles.

CometAPI CLI

Check your balance from the terminal with one command. See CometAPI CLI overview for installation.
Add --source token for per-key details:
See the commands reference for all available options.

Query service API

GET https://query.cometapi.com/user/quota Returns account-level balance, cumulative usage, total request count, and per-key quota details. This endpoint uses a separate query service at query.cometapi.com and authenticates via the key query parameter rather than a Bearer Token.
Use a dedicated API key for balance queries. If you want to limit exposure, disable Unlimited Quota and set the smallest positive credit limit allowed by the dashboard.

Request parameters

When start_date and end_date are provided, the response includes a daily_quota field with per-key usage broken down by day.

Response fields

Code examples

Query account balance:

Response example

Daily breakdown example

Query daily usage for a date range:
The response includes the same top-level fields plus daily_quota: