cURL
curl --request GET \ --url https://api.qhaigc.net/v1/dashboard/billing/subscription \ --header 'Authorization: Bearer <token>'
查询当前 API Key 的额度、用量和有效期等信息
GET /v1/dashboard/billing/subscription
import requests url = "https://api.qhaigc.net/v1/dashboard/billing/subscription" headers = { "Authorization": "Bearer sk-your-api-key-here" } response = requests.get(url, headers=headers) print(response.json())
{ "object": "billing_subscription", "has_payment_method": true, "canceled": false, "canceled_at": null, "delinquent": null, "access_until": 1761223754, "hard_limit_usd": 100.0, "soft_limit_usd": 80.0, "system_hard_limit_usd": 100.0 }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
账户信息