Account Management
Query Token Balance
- Query remaining and used credits of the current API Key
- Monitor single token usage
- CORS support for cross-origin requests
- Real-time balance monitoring
GET
Get the remaining and used balance of the current API Key (token). This endpoint is used to monitor the usage of a single token.Documentation Index
Fetch the complete documentation index at: https://gccai.heqingsong.uk/llms.txt
Use this file to discover all available pages before exploring further.
Authorization
All API endpoints require Bearer Token authenticationGet your API Key:Visit the API Key Management Page to get your API KeyAdd it to the request header:
Endpoints
Response
Whether the request was successful
Error message (only returned on failure)
Token remaining balance (returned on success). Returns
-1 when unlimited_quota is trueToken used balance (returned on success)
Whether the token has unlimited quota.
true means unlimited, false means limitedUse Cases
- Monitor consumption of a single API Key
- Display current token balance in your application
- Set up balance alerts when balance falls below threshold
Balance Unit InformationThe unit of the balance value depends on system configuration:
- USD - US Dollars
- CNY - Chinese Yuan
- Tokens - Token count
Common Errors
| Error Message | Cause | Solution |
|---|---|---|
| No Authorization header | Authorization header not provided | Add Authorization: Bearer sk-xxxxx header |
| Failed to get token info | Token doesn’t exist or has been deleted | Check if the token key is correct |