API v2 · Account
Credits
Return available credits, total purchased, total spent, and active API key count.
GET
/api/v2/me/creditsAuthentication
Send your API key as a bearer token on every request.
Header
Authorization: Bearer vba_your_api_keyResponse
Successful responses use JSON. Video feature endpoints return an async job_id rather than the final processed video immediately.
| Field | Type | Required | Description |
|---|---|---|---|
| success | boolean | Yes | True when credits were fetched. |
| available_credits | number | Yes | Current usable credits. |
| total_purchased | number | Yes | Lifetime purchased credits. |
| total_spent | number | Yes | Lifetime spent credits. |
| active_api_keys | number | Yes | Number 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"