> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qclawrouter.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 查询令牌余额

> 查询指定令牌（API Key）的余额和使用情况

## 请求示例

```bash cURL theme={null}
curl https://api.qclawrouter.com/v1/dashboard/billing/credit_grants \
  -H "Authorization: Bearer sk-your-api-key"
```

```python Python theme={null}
import requests

response = requests.get(
    "https://api.qclawrouter.com/v1/dashboard/billing/credit_grants",
    headers={"Authorization": "Bearer sk-your-api-key"}
)
print(response.json())
```

## 返回示例

```json theme={null}
{
  "object": "credit_summary",
  "total_granted": 10.00,
  "total_used": 2.50,
  "total_available": 7.50,
  "grants": {
    "data": []
  }
}
```
