CometAPI Account Balance Query API Usage Instructions
https://query.cometapi.com/user/quota
key (the API key you registered on the CometAPI platform)
**Request Example**
https://query.cometapi.com/user/quota/?key=sk-xxx
## Response Body Example
```json
{
"username": "<username>",
"total_quota": 10000,
"total_used_quota": 10000,
"request_count": 1000000,
"keys": [
{
"name": "no-limited",
"remain_quota": -1,
"used_quota": 0
},
{
"name": "limited",
"remain_quota": 100,
"used_quota": 0
}
]
}
Field Descriptions#
| Field Name | Description |
|---|
| username | Username |
| total_quota | Current account balance (Unit: USD) |
| total_used_quota | Total consumed quota of the account |
| request_count | Total number of requests |
| keys.name | API Key name |
| keys.remain_quota | Remaining quota of the key (-1 indicates unlimited quota) |
| keys.used_quota | Used quota of the key (-1 indicates unlimited quota) |
Security Recommendations#
š Key Usage Suggestions
It is recommended to generate a dedicated token for querying purposes:Set the balance to 0, granting only query permissions
Token acquisition as shown in the image:
Modified atĀ 2026-02-13 03:47:24