API ReferenceManagement
Tokens & Quota
Query token balance and usage, plus token grouping and permission best practices.
Query Token Quota
Check the balance and usage of the current token:
curl https://api.tokenhub.belivestudios.com/v1/dashboard/billing/subscription \
-H "Authorization: Bearer sk-your-key"Per-request token usage is also available in the usage field of API responses.
Best Practices
- Group tokens: create separate tokens per business line/environment with model scope and quota limits for cost accounting and risk control
- Least privilege: only enable the models a token actually needs — limits the blast radius of key leaks
- Rotate regularly: rotate keys in "API Tokens" on the console and disable old ones promptly
- Check logs: when calls fail, inspect request records and failure reasons under "Logs" in the console