🎬 新功能发布:今天发布您的第一个AI视频——立即尝试。🎬 新:今天发布您的第一个视频!
API Token
创建一个新令牌
通过API查询积分余额
返回有关帐户的分级相关信息。
POST https://backend.kaze.ai/api/ext/v1/get_quota
Header parameters:
- Authorization: Bearer <>
- Content-Type: application/json
Request Body:
Using Image URL
- image_url: https://example.com/image.png
curl --location --request POST 'https://backend.kaze.ai/api/ext/v1/get_quota' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{}'Response:
- limit: 总配额
- usage: 已用配额
- remaining: 剩余配额
{
"code": 0,
"message": "Success",
"data": {
"limit": 500,
"usage": 0,
"remaining": 500
}
}状态码
| CODE | DESCRIPTION |
|---|---|
| 0 | Success |
| 1000 | Parameter Error |
| 1001 | Invalid HTTP Method |
| 1002 | Authentication error |
| 1003 | Insufficient Credits to Perform the Action |
| 11xx | Server Internal Error |