Skip to main content
GET
/
billing
/
usage
Get billing usage information
curl --request GET \
  --url https://api.videodb.io/billing/usage \
  --header 'x-access-token: <api-key>'
{
  "success": true,
  "data": {
    "credit_balance": 100.5,
    "usage_this_month": 25.75,
    "breakdown": {}
  }
}
Retrieve detailed usage statistics showing credit consumption across different operations in your account.
import videodb

conn = videodb.connect(api_key="your_api_key")

# Get usage statistics
usage_data = conn.check_usage()

print(f"Total Credits Used: {usage_data.get('total_credits_used')}")
print(f"Monthly Credit Limit: {usage_data.get('monthly_limit')}")
print(f"Credits Remaining: {usage_data.get('credits_remaining')}")
  • Usage data includes cumulative credits consumed across all operations (video processing, AI generation, storage)
  • Credits reset monthly based on your billing plan
  • Track usage regularly to avoid unexpected bill increases
  • Real-time updates may have slight delays (typically 5-15 minutes)

Authorizations

x-access-token
string
header
required

API key for authentication (sk-xxx format)

Response

200 - application/json

Billing usage data

success
boolean
Example:

true

data
object