Credits Query
Check your account balance via the API.
Endpoint
GET https://api.aivideoapi.ai/v1/credits
Request
curl https://api.aivideoapi.ai/v1/credits \
-H "Authorization: Bearer sk-your-api-key"
Response
{
"code": 200,
"msg": "success",
"data": {
"balance": 9800,
"total_purchased": 10000,
"total_consumed": 200
}
}
Response Fields
| Field | Type | Description |
|---|---|---|
balance | integer | Current available credits |
total_purchased | integer | Total credits purchased (including bonuses) |
total_consumed | integer | Total credits consumed by API calls |