Key Info

GET /v1/key/info

Check your current balance, rate limits, and today's usage for the authenticated API key.

Request

GET https://api.chuizi.ai/v1/key/info

Authentication

Authorization: Bearer ck-your-api-key

No query parameters are required. The key is identified from the Authorization header.

Response

config.json
json
{
  "object": "key_info",
  "key_prefix": "ck-a1b2",
  "name": "Production Key",
  "group": "default",
  "is_active": true,
  "balance": "42.50000000",
  "currency": "USD",
  "rate_limit": {
    "rpm": 500,
    "daily": 10000
  },
  "allowed_models": [],
  "ip_whitelist": [],
  "usage_today": {
    "requests": 1523,
    "tokens": 2450000,
    "cost": "3.82000000"
  },
  "created_at": "2025-01-15T08:30:00Z"
}

Code Examples

terminal
bash
curl https://api.chuizi.ai/v1/key/info \
  -H "Authorization: Bearer ck-your-key"

Next Steps