Skip to main content
The API uses API keys to authenticate requests. Every request must include your key in the Authorization header:
Keep your API keys private. Do not share them in browser code, public repositories, or chat messages. If a key is compromised, delete it in the Console and create a new one.

Create an API key

  1. Sign in to the UncensoredGPT Console.
  2. Go to Keys and click Create key.
  3. Give the key a name (for example, my-app) and set any limits you need.
  4. Copy the key. It is shown only once — store it somewhere safe.
Keys start with sk- and are tied to your account’s credit balance and rate limits.

Use the key in code

The Messages endpoints

The Anthropic-format Messages endpoints also accept the x-api-key header, so clients that send keys that way work unchanged:

Managing keys

In the Console you can create multiple keys, rename or delete them, and set per-key limits:
  • Token limits — tokens per minute (TPM) and requests per minute (RPM).
  • Allowed models — restrict a key to a subset of the catalog.
  • Allowed routes — restrict a key to specific endpoints.
All keys on your account draw from the same credit balance. See Usage & Billing for details.