GET /credits/balance
This endpoint returns the authenticated user’s current credit balance and usage information.
Response
The user’s current credit balance.
An object containing usage information.The total credits used by the user.
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
}
}