CQTAI

APIKey Management

An APIKey is the sole credential for calling every API. Create, view, disable, and rotate keys in the console, and set a quota and permissions for each key.

🔑 Go straight to the management page: APIKey Management → /secret-key

Create an APIKey

  1. Sign in to the console — Go to the APIKey Management page.
  2. Click "Create Key" — Enter a name (e.g. Production), and optionally set a quota cap and allowed model categories.
  3. Copy and store it safely — The key is shown in full only once at creation time, in the form sk-cqt-xxxx; save it to a secure location immediately.
  4. Use it in the request header — All APIs authenticate via Authorization: Bearer sk-cqt-xxxx.

⚠️ A key carries the same power as your account—never commit it to a code repository or expose it in the frontend. If leaked, disable it in the console and regenerate immediately.

Key operations

  • View usage: See call counts, credits consumed, and remaining quota per key.
  • Set quota: Set a credit cap for a single key; once exceeded the key is auto-disabled to prevent overspending.
  • Disable / Enable: Temporarily disable a key without deleting it—handy for troubleshooting or rotation.
  • Delete / Rotate: Delete an old key and generate a new one; rotating regularly improves security.