积分查询
通过 API 查询账户积分余额。
端点
GET https://api.aivideoapi.ai/v1/credits
请求
curl https://api.aivideoapi.ai/v1/credits \
-H "Authorization: Bearer sk-your-api-key"
响应
{
"code": 200,
"msg": "success",
"data": {
"balance": 9800,
"total_purchased": 10000,
"total_consumed": 200
}
}
响应字段
| 字段 | 类型 | 说明 |
|---|---|---|
balance | integer | 当前可用积分 |
total_purchased | integer | 累计购买积分(含赠送) |
total_consumed | integer | 累计消耗积分 |