Skip to content

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 ManagementCreate token.

Available settings:

SettingDescription
NameA label for your reference
GroupDetermines which models are accessible; use default for the public model list
Allowed ModelsWhitelist specific models (leave empty for all in group)
IP RestrictionLimit usage to specific IP addresses
ExpirationSet an auto-expiry date
Quota LimitMaximum credits this token can consume

WARNING

Your full API Key can be viewed anytime from the Token Management list.

Token Groups

GroupAvailable Models
defaultPublicly 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-key
python
from openai import OpenAI

client = OpenAI(
    api_key="sk-your-api-key",
    base_url="https://brivionix.com/v1",
)