Skip to main content
CometAPI provides two ways to check account balance and usage: the CometAPI CLI and an authenticated account statistics request. 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.

Personal access token

To query account balance and monthly usage, create a personal access token in Console → Personal Settings. Grant the Usage → View permission (usage:read) and store the token in COMETAPI_ACCESS_TOKEN. Send the raw token in the Authorization header. Do not prefix it with Bearer. Run the following command to print the balance, monthly usage, and monthly request count:
The jq filter selects these fields:
  • balance is the account balance.
  • month_usage is usage for the current month.
  • month_req_count is the request count for the current month.
Last modified on November 26, 2026