DevelopersAPI Docs
Platform

Credits & Balance

Use this endpoint to check the credit balance of the user who owns the API key. Useful for validating balance before submitting a generation request.

Endpoint

http
GET https://bumi.digital/api/v1/credits
Authorization: Bearer YOUR_API_KEY

Example Request (cURL)

bash
curl -X GET https://bumi.digital/api/v1/credits \
  -H "Authorization: Bearer YOUR_API_KEY"

Example Response

json
{
  "ok": true,
  "data": {
    "user_id": "clu...xyz",
    "credits": 1234.56,
    "currency": "credits"
  }
}

Tips

Check your balance before submitting a generation to avoid failures due to insufficient credits. Each model has a different cost estimate — see the cost field on the /api/v1/models/pricing endpoint.