Key Info

GET /v1/key/info

Use the API key on the current request to retrieve account balance, key permissions, and limits. This endpoint never returns the full plaintext key and cannot recover a key after creation.

Request

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

Response

config.json
json
{
  "data": {
    "key_prefix": "ck-a1b2",
    "name": "Production Key",
    "group": "default",
    "balance": "42.50000000",
    "tier": "pro",
    "rpm_limit": 500,
    "daily_limit": "10.0000",
    "allowed_models": ["openai/gpt-4.1"],
    "is_active": true,
    "created_at": "2026-05-01T08:30:00.000Z",
    "last_used_at": "2026-05-12T10:15:00.000Z"
  }
}
FieldDescription
data.balanceCurrent account balance as a USD decimal string
data.allowed_modelsModels this key can call; empty or unset follows the console policy
data.rpm_limitPer-key requests-per-minute limit; null uses the account default
data.daily_limitPer-key daily spend cap; null means no key-level cap
data.last_used_atLast use timestamp; may be null

For request-level usage, use the dashboard request log or Generation Query.

Key Info — Chuizi AI Docs | Chuizi AI