Skip to content

API Keys

API keys authenticate your requests to the ru-llm gateway. All keys have the prefix sk-ru-.

Creating a key

  1. Open the console and navigate to API Keys.

  2. Click Create key.

  3. Give the key a descriptive name (e.g. my-app-production).

  4. Click Create and copy the key immediately — it is displayed only once.

Using a key

Pass your key in requests to either API surface:

Authorization: Bearer sk-ru-YOUR_KEY

or

x-api-key: sk-ru-YOUR_KEY

Both headers are accepted by both the OpenAI-compatible and Anthropic-compatible surfaces.

Revoking a key

  1. Navigate to API Keys in the console.
  2. Find the key you want to revoke.
  3. Click Revoke and confirm.

Revoked keys are immediately invalidated. Any in-flight requests using that key will receive a 401 Unauthorized response.

Best practices

  • Create a separate key per application or environment (dev, staging, production).
  • Store keys in environment variables or a secrets manager — never hard-code them.
  • Revoke keys that are no longer in use.