Skip to main content
Docs
Virtual Keys

Virtual Keys

Manage API access with virtual keys for rate limiting, cost tracking, and access control.

Virtual keys in Elyxir manage API access to LLM providers. They enable rate limiting, cost tracking, and fine-grained access control for your organization.

Overview

Virtual keys provide:

  • Rate Limiting: Control requests per minute per key
  • Cost Tracking: Monitor spending per key
  • Access Control: Scope keys to specific models or uses
  • Quota Management: Set spending limits per key

Accessing Virtual Keys

  1. Sign in to studio.elyxir.ai
  2. Go to Virtual Keys in the main navigation
  3. View, create, and manage your keys

Key Components

Developer API Keys

External-facing keys for your applications:

  • Format: elyxir_xxxxxxxxxxxxxxxx
  • Used in the Authorization header
  • Generated in Settings > API Keys

Virtual Keys (Internal)

Internal keys that map to LLM providers:

  • Automatically created with developer keys
  • Linked to your organization's provider credentials
  • Managed through the Virtual Keys dashboard

Dashboard Overview

The Virtual Keys dashboard shows:

ColumnDescription
NameKey identifier
StatusActive or inactive
RequestsTotal API calls
TokensTotal tokens used
CostTotal spending
Rate LimitRequests per minute
CreatedCreation date

Key States

StateDescription
ActiveKey is working normally
InactiveKey is disabled
Over LimitRate or budget limit exceeded
ExpiredKey has passed expiration date

Use Cases

Development vs Production

Create separate keys for:

  • Development: Lower limits, test environment
  • Staging: Medium limits, pre-production
  • Production: Higher limits, live traffic

Per-Application Keys

Create keys for each application:

  • Web App: Frontend chat interface
  • API Service: Backend processing
  • Mobile App: Mobile client requests

Per-Team Keys

Assign keys to teams for:

  • Independent cost tracking
  • Team-specific rate limits
  • Clear usage attribution

Best Practices

  1. Use descriptive names: Identify keys by purpose
  2. Set appropriate limits: Match limits to expected usage
  3. Monitor regularly: Review usage patterns
  4. Rotate periodically: Replace keys every 90 days
  5. Delete unused keys: Remove keys no longer needed
Virtual Keys | elyxir