Keys & Settings

API keys in FastRouter allow granular control over access, usage, and budget. You can generate multiple keys with custom configurations for different users, projects, or integrations.

Create/Edit Key

Types of API Keys

FastRouter supports two key types for different use cases:

User-Owned API Keys

  • Tied to individual users.

  • Can be created by any project member.

  • Inherits the user’s project-level permissions.

  • Best suited for development, experimentation, or scoped access within a specific project.

Service Account Keys (Coming Soon)

  • Managed at the project level.

  • Not tied to an individual user.

  • Designed for application-level integration.

Creating an API Key

When you create a key, FastRouter generates a one-time visible token. Be sure to copy and save it securely — it cannot be retrieved later.

Key Settings

Key Name

  • A custom label to help you identify the key.

Optional Settings

Budget Controls

  • Set a maximum spend in USD for the key.

  • Leave blank for unlimited usage.

Reset Budget

  • Define when the budget resets:

    • Never (default)

    • Daily, Weekly, Monthly

Select Models

  • Choose which LLM models the key can access.

  • Default: All Selected under the Project.

Tokens Per Minute Limit (TPM)

  • Limit how many tokens this key can consume per minute.

  • Project level settings cap this limit.

Requests Per Minute Limit (RPM)

  • Set the maximum number of requests this key can send per minute.

  • Project level settings cap this limit.

Expire Key

  • Schedule a date and time for the key to automatically expire.

  • Useful for temporary access or testing.

Best Practices

  • Rotate keys periodically and revoke unused keys.

  • Use budget + rate limits to protect from accidental overuse.

  • Tag keys by project to stay organized.

  • Assign specific model access for tighter control.

Last updated