Skip to main content
Docs
Creating Keys

Creating Keys

Learn how to create and configure virtual keys for API access.

Create virtual keys to manage API access, set rate limits, and track usage per application or team.

Creating a Developer API Key

From Settings

  1. Go to Settings > API Keys
  2. Click Create API Key
  3. Enter a descriptive name
  4. Configure optional settings
  5. Click Create
  6. Copy the key immediately (shown only once)

Key Configuration Options

OptionDescription
NameDescriptive identifier
ExpirationOptional expiry date
Rate LimitRequests per minute
BudgetOptional spending cap

Key Naming Conventions

Use descriptive names that identify:

  • Purpose: production-chat, dev-testing
  • Application: web-app-frontend, mobile-api
  • Environment: staging-backend, prod-analytics
  • Team: engineering-team, support-bot

Configuration Examples

Development Key

Name: development-local
Rate Limit: 20 requests/minute
Budget: $10/month
Expiration: None

Production Key

Name: production-web-app
Rate Limit: 200 requests/minute
Budget: $500/month
Expiration: None

Limited Testing Key

Name: qa-testing-ephemeral
Rate Limit: 10 requests/minute
Budget: $5/month
Expiration: 30 days

After Creation

Once created, you'll see:

  1. API Key: elyxir_xxxxx... (copy immediately)
  2. Key ID: Internal identifier for management
  3. Configuration Summary: Your settings

Managing Keys

Viewing Keys

Go to Settings > API Keys to see all keys:

  • Key name and partial key ID
  • Creation date
  • Last used date
  • Status (active/inactive)

Editing Keys

Most settings can be edited after creation:

  1. Click on a key in the list
  2. Modify settings (name, limits, budget)
  3. Save changes

Revoking Keys

To permanently disable a key:

  1. Find the key in Settings > API Keys
  2. Click the menu icon
  3. Select Revoke
  4. Confirm revocation

Revoked keys cannot be reactivated. Any applications using the key will immediately fail authentication.

Programmatic Key Management

Use the API to manage keys programmatically:

# Example: List keys (future API)
# Note: Key management API may require admin permissions

Security Recommendations

Do

  • Create separate keys per environment
  • Set expiration for temporary keys
  • Use budget limits to control costs
  • Monitor key usage regularly
  • Revoke compromised keys immediately

Don't

  • Share keys between applications
  • Use production keys for development
  • Create keys without meaningful names
  • Leave unused keys active
Creating Keys | elyxir