API v2 · Account

Contact

Credits

Return available credits, total purchased, total spent, and active API key count.

GET/api/v2/me/credits

Authentication

Send your API key as a bearer token on every request.

Header
Authorization: Bearer vba_your_api_key

Response

Successful responses use JSON. Video feature endpoints return an async job_id rather than the final processed video immediately.

FieldTypeRequiredDescription
successbooleanYesTrue when credits were fetched.
available_creditsnumberYesCurrent usable credits.
total_purchasednumberYesLifetime purchased credits.
total_spentnumberYesLifetime spent credits.
active_api_keysnumberYesNumber of active API keys.
JSON
{
  "success": true,
  "available_credits": 500,
  "total_purchased": 1000,
  "total_spent": 500,
  "active_api_keys": 2
}

Example

curl
curl -X GET https://www.bgblur.com/api/v2/me/credits \
  -H "Authorization: Bearer vba_your_api_key"
Back to API Reference