API Keys Management
API keys authenticate your requests to the RegPilot AI Gateway. Each key is associated with a project and can be configured with specific permissions and rate limits.Creating API Keys
1
Navigate to AI Gateway
Go to your project and select AI Gateway → Overview
2
Click Manage Keys
Open the API keys management panel
3
Create New Key
Key Types
Gateway Keys (sk_)
- AI Gateway API requests
- Chat completions, embeddings
- Governor validation
- Usage tracking
Project Keys (pk_)
- Compliance management APIs
- Violations, models, policies
- Read-only dashboard access
Key Permissions
Configure what each key can access:Key Status
Active
- Key is valid and can be used
- All features enabled
Inactive
- Key temporarily disabled
- Returns 401 errors
- Can be reactivated
Revoked
- Permanently disabled
- Cannot be reactivated
- Create new key instead
Security Best Practices
Environment Variables
Store keys in env vars, never in code
Rotate Regularly
Change keys every 90 days
Least Privilege
Only grant needed permissions
Monitor Usage
Watch for unusual patterns
Rate Limits
Keys have rate limits based on your plan:| Plan | Requests/Min | Tokens/Day |
|---|---|---|
| Free | 10 | 100,000 |
| Pro | 100 | 1,000,000 |
| Enterprise | Custom | Custom |