查询令牌余额
curl --request GET \
--url https://api.qclawrouter.com/v1/dashboard/billing/credit_grants账户
查询令牌余额
查询指定令牌(API Key)的余额和使用情况
GET
/
v1
/
dashboard
/
billing
/
credit_grants
查询令牌余额
curl --request GET \
--url https://api.qclawrouter.com/v1/dashboard/billing/credit_grants请求示例
cURL
curl https://api.qclawrouter.com/v1/dashboard/billing/credit_grants \
-H "Authorization: Bearer sk-your-api-key"
Python
import requests
response = requests.get(
"https://api.qclawrouter.com/v1/dashboard/billing/credit_grants",
headers={"Authorization": "Bearer sk-your-api-key"}
)
print(response.json())
返回示例
{
"object": "credit_summary",
"total_granted": 10.00,
"total_used": 2.50,
"total_available": 7.50,
"grants": {
"data": []
}
}
⌘I