Skip to main content
GET
/
v1
/
credits
Check API Credits
curl --request GET \
  --url https://api.loova.ai/api/v1/credits \
  --header 'Authorization: Bearer <token>'
{
  "code": 200,
  "trace_id": "45c30d76f06549b199a3775544515689",
  "message": null,
  "data": {
    "api_available_credits": 47995,
    "api_total_credits": 51000
  }
}

Notes

  • Authentication: Authorization: Bearer <api_key>
  • Use this endpoint to check current available API credits before submitting more tasks

Authorizations

Authorization
string
header
required

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

Response

Successful response

code
integer
trace_id
string
message
string | null
data
object