Read subscription usage and routing advice

Changed on

Requires an inference API key. For monitoring without spending permissions, use a usage:read management token with /api/management/v1/subscription/usage. Input-token quotas count tokens, not requests.

get/subscription/v1/usage

Request

  • Base URL
    https://api.nano-gpt.com/api
  • URL
    https://api.nano-gpt.com/api/subscription/v1/usage
  • Auth
    • HTTP bearer
    • or API key in header x-api-key

Response

Subscription quotas and billing-routing advice. Unavailable counters are null with degraded=true.

activeboolean required
state'active' | 'grace' | 'inactive' required
usageUnits'tokens'

Present for token-based trials.

Changes