余额查询
GET /key/info — 查询当前 Key 的额度与消费。
curl https://api.aigateway.ltd/key/info -H "Authorization: Bearer ${AIGATEWAY_API_KEY}"| 字段 | 说明 |
|---|---|
| spend | 已消费 Credit |
| max_budget | Key 总额度 |
| models | 可用模型范围 |
| expires | Key 过期时间 |
GET /key/info — 查询当前 Key 的额度与消费。
curl https://api.aigateway.ltd/key/info -H "Authorization: Bearer ${AIGATEWAY_API_KEY}"| 字段 | 说明 |
|---|---|
| spend | 已消费 Credit |
| max_budget | Key 总额度 |
| models | 可用模型范围 |
| expires | Key 过期时间 |