积分查询

通过 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
  }
}

响应字段

字段类型说明
balanceinteger当前可用积分
total_purchasedinteger累计购买积分(含赠送)
total_consumedinteger累计消耗积分