Get Credit Balance
GET/credits/balance
Get current credit balance.
Authentication
Authorization: Bearer vm_sk_… with the media.read permission (or all.read). See Authentication. SDK: client.credits.balance (Python), client.credits.balance (Node).
Response
200 application/json
| Field | Type | Description |
|---|---|---|
allocated* | integer | Total allocated this period |
billing_period_end | string | End of current billing period |
billing_period_start | string | Start of current billing period |
bonus* | integer | Bonus/promotional credits |
lifetime_used* | integer | Total credits used all time |
quota* | integer | Monthly allocation from subscription |
remaining* | integer | Remaining credits this period |
subscription_tier | string | Current subscription tier |
total_available* | integer | Total available credits (remaining + bonus) |
used_this_period* | integer | Credits used in current billing period |
{
"allocated": 0,
"bonus": 0,
"lifetime_used": 0,
"quota": 0,
"remaining": 0,
"total_available": 0,
"used_this_period": 0
}Errors
401 | Missing, wrong, revoked or expired key. |
403 | The key lacks media.read, the route is not available to keys, or the key's IP allow-list refuses this client. |
429 | Over a rate limit; retry after `Retry-After` seconds. |
All statuses: Errors.
Example
curl -X GET "https://api.voicemint.io/api/v1/credits/balance" \
-H "Authorization: Bearer $VOICEMINT_API_KEY"