Overview
CyrionAI uses API key authentication for all requests. Your API key serves as your identity and determines your access level and rate limits.Getting Your API Key
- Email [email protected] with proof of your organization’s status
- Provide documentation showing you’re a 501(c)(3) nonprofit, government entity, school, library, etc.
- Receive your API key upon approval
API keys are generated automatically when your account is approved. You can regenerate your key at any time from your dashboard.
Using Your API Key
Include your API key in theAuthorization header of all requests:
Example Request
SDK Authentication
Python
Node.js
Environment Variables
For security, store your API key in environment variables:Security Best Practices
Do’s ✅
- Store API keys in environment variables
- Use secure secret management systems
- Rotate keys regularly
- Monitor API usage for unusual activity
- Use different keys for different environments (dev/staging/prod)
Don’ts ❌
- Commit API keys to version control
- Share keys in public forums or chat
- Include keys in client-side JavaScript
- Use the same key across multiple applications
- Log API keys in application logs
API Key Management
Regenerating Your Key
If you suspect your API key has been compromised:- Go to your dashboard
- Navigate to API Keys section
- Click “Regenerate Key”
- Update your applications with the new key
Regenerating your key will immediately invalidate the old key. Make sure to update all applications before regenerating.
Key Permissions
API keys have the following permissions:- Read access to your account information
- Write access to create completions, images, videos, and transcriptions
- Admin access (if granted) to manage users and grants
Rate Limits
Your API key determines your rate limits:| Endpoint | Rate Limit |
|---|---|
| Chat Completions | 100 requests/minute |
| Image Generation | 20 requests/minute |
| Video Generation | 10 requests/minute |
| Audio Transcription | 50 requests/minute |
Rate limits are per API key. Contact us if you need higher limits for your use case.
Error Responses
Invalid API Key (401)
Missing API Key (401)
Rate Limit Exceeded (429)
Testing Your Authentication
You can test your API key by making a simple request to the models endpoint:Need Help?
If you’re having trouble with authentication:- Check that your API key is correct and not expired
- Ensure you’re using the correct header format (
Bearer your-key) - Verify your account is active and not suspended
- Contact support for assistance