Skip to main content

Account Balance and Usage

This set of APIs provides both the platform’s custom wrapper and an OpenAI-compatible structure.

API Key Usage

Successful response:

OpenAI-Compatible Subscription Information

The following two paths are equivalent:
  • GET /dashboard/billing/subscription
  • GET /v1/dashboard/billing/subscription
Response example:

OpenAI-Compatible Usage

The following two paths are equivalent:
  • GET /dashboard/billing/usage
  • GET /v1/dashboard/billing/usage
Response example:
The final display unit of soft_limit_usd, hard_limit_usd, and total_usage is affected by the site’s quota display configuration, and may not always be USD.

Common Errors

Missing Authorization for /api/usage/token/

Invalid Bearer format for /api/usage/token/

OpenAI-compatible balance API error