Account Management

Account management here mainly covers three categories: authentication methods, OAuth browser flow, and balance and usage queries at the API Key level or account level.

Authentication Methods

Bearer Token, Claude-compatible headers, Gemini-compatible headers, login state, and OAuth routes.

Balance and Usage

/api/usage/token, /dashboard/billing/subscription, /dashboard/billing/usage.

Route List

MethodPathDescription
GET/api/oauth/stateGenerate OAuth state value
GET/api/oauth/{provider}Standard OAuth callback route
GET/api/usage/token/API Key usage and balance
GET/dashboard/billing/subscriptionOpenAI-compatible subscription/balance
GET/v1/dashboard/billing/subscriptionSame as above, compatibility path with /v1 prefix
GET/dashboard/billing/usageOpenAI-compatible usage
GET/v1/dashboard/billing/usageSame as above, compatibility path with /v1 prefix
  1. Authentication Methods
  2. Account Balance and Usage