Skip to main content

GET /credits/balance

This endpoint returns the authenticated user’s current credit balance and usage information.

Response

balance
number
The user’s current credit balance.
usage
object
An object containing usage information.
total
number
The total credits used by the user.
thisMonth
number
The credits used in the current billing cycle.
curl -X GET https://api.llmgenerator.com/api/v1/credits/balance \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "balance": 450,
  "usage": {
    "total": 550,
    "thisMonth": 50
  }
}