API Keys
API keys authenticate your requests to the ru-llm gateway. All keys have the prefix sk-ru-.
Creating a key
-
Open the console and navigate to API Keys.
-
Click Create key.
-
Give the key a descriptive name (e.g.
my-app-production). -
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_KEYor
x-api-key: sk-ru-YOUR_KEYBoth headers are accepted by both the OpenAI-compatible and Anthropic-compatible surfaces.
Revoking a key
- Navigate to API Keys in the console.
- Find the key you want to revoke.
- 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.