API Keys
API Keys are called Tokens in the Brivionix Console. They are the credentials for making API calls.
Creating a Token
Go to Token Management → Create token.
Available settings:
| Setting | Description |
|---|---|
| Name | A label for your reference |
| Group | Determines which models are accessible; use default for the public model list |
| Allowed Models | Whitelist specific models (leave empty for all in group) |
| IP Restriction | Limit usage to specific IP addresses |
| Expiration | Set an auto-expiry date |
| Quota Limit | Maximum credits this token can consume |
WARNING
Your full API Key can be viewed anytime from the Token Management list.
Token Groups
| Group | Available Models |
|---|---|
default | Publicly listed models |
Your token's group determines which models you can access. Contact support to change your group.
Managing Tokens
In Token Management you can:
- Create new tokens
- Copy selected token keys
- Edit token settings (name, quota, models, etc.)
- Disable / Enable tokens
- Delete tokens
- Chat directly with a token via built-in clients
Security Best Practices
- ✅ Set quota limits on every token
- ✅ Use model whitelists when possible
- ✅ Set expiration dates for temporary use
- ✅ Use IP restrictions for production tokens
- ❌ Never share tokens in public repos or frontend code
- ❌ Never screenshot tokens
Using Your Token
bash
# In the Authorization header
Authorization: Bearer sk-your-api-keypython
from openai import OpenAI
client = OpenAI(
api_key="sk-your-api-key",
base_url="https://brivionix.com/v1",
)