Skip to content

API Keys

API keys are the credentials for calling Tokeness. Each key should have a clear purpose; avoid sharing one key across multiple projects.

Tokeness API Keys pageTokeness API Keys page
API Keys page

Create a Key

  1. Sign in to tokeness.ai.
  2. Open "API Keys" in the left navigation of the console.
  3. Click create or add a key.
  4. Fill in the name, quota, group, or model scope.
  5. Save the key immediately after creation.

Before connecting to production workloads, you can create two keys first:

ScenarioConfiguration
TestingSmall quota, easy to trial and error
ProductionSeparate key, avoid mixing with testing

Security Reminder

API keys are sensitive credentials. Never write keys into frontend code, public repositories, screenshots, ticket images, or group chat messages.

List Fields

The API Keys page shows the main management info for each key:

FieldDescription
NameKey purpose name, e.g. development, production, or a specific customer
StatusWhether the key is enabled
API KeyMasked key, used to confirm the right credential is selected
QuotaCurrent key quota limit
GroupModel or billing group the key belongs to
ModelsAvailable model scope for the current key
IP RestrictionWhether calling source IPs are restricted
Created AtKey creation time
Last UsedMost recent call time
ExpiryKey expiry policy

Naming Conventions

ScenarioExample key name
Local developmentdev-local
Production serviceprod-api-gateway
Customer projectclient-acme-prod
Automation taskn8n-workflows

Quota Strategy

Set a small quota for development and test keys. Set limits on production keys based on business volume. In channel or multi-customer scenarios, use a separate key for each customer to track consumption.

Rotate Keys

When a key is leaked, a team member leaves, a project is handed off, or an environment is migrated, create a new key and replace the old configuration. After confirming the new key works, disable the old key.

Environment Variables

Server-side projects use environment variables to store keys:

bash
TOKENESS_API_KEY=sk-...
TOKENESS_BASE_URL=https://n.tokeness.dev/v1

Do not commit .env files to Git repositories.

OpenAI-compatible access with centralized models, quota, and logs.