Skip to main content
GET
/
api
/
ai
/
credits
Get remaining credits
curl --request GET \
  --url https://api.example.com/api/ai/credits \
  --header 'Authorization: Bearer <token>'
{
  "credits": 123,
  "usage": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Remaining credits information

credits
number

Remaining credits balance

usage
number

Total usage amount