API Key Authentication
All API requests must be authenticated using an API key passed in the request headers.Getting Your API Key
1
Access your dashboard
Log in to app.slidevid.ai
2
Navigate to API settings
Go to Settings → API Keys
3
Generate a new key
Click “Generate New API Key” and give it a descriptive name
4
Save your key
Copy and store your API key securely - you won’t be able to see it again
Try It in the Playground
You can test all API endpoints directly in this documentation!Click on any endpoint (like List Avatars) and you’ll see an Authorization field where you can enter your API key to make real requests.
How to Use the API Playground:
- Navigate to any API endpoint page
- Look for the Authorization or x-api-key field at the top
- Enter your API key
- Modify the request parameters if needed
- Click “Send” to see the real response
Using Your API Key in Code
Include your API key in thex-api-key header of every request:
Security Best Practices
Environment Variables
Store your API key in environment variables:API Key Management
Rotate keys regularly
Rotate keys regularly
For production applications, rotate your API keys every 90 days. Create a new key before deleting the old one to avoid downtime.
Use different keys for environments
Use different keys for environments
Create separate API keys for development, staging, and production environments.
Restrict IP addresses (coming soon)
Restrict IP addresses (coming soon)
We’re adding support for IP whitelisting to further secure your API keys.
Monitor usage
Monitor usage
Check your API usage in the dashboard to detect any unusual activity.
Error Responses
If authentication fails, you’ll receive a401 Unauthorized response:
Common Authentication Errors
| Error | Cause | Solution |
|---|---|---|
401 Unauthorized | Missing or invalid API key | Check that your key is correct and included in headers |
403 Forbidden | API key doesn’t have required permissions | Verify your subscription plan includes API access |
429 Too Many Requests | Rate limit exceeded | Wait before making more requests or upgrade your plan |
Rate Limiting
API requests are rate-limited based on your subscription plan:| Plan | Rate Limit | Burst Limit |
|---|---|---|
| Free | 10 requests/minute | 20 requests |
| Starter | 60 requests/minute | 100 requests |
| Pro | 300 requests/minute | 500 requests |
| Premium | 1000 requests/minute | 2000 requests |
Rate Limit Headers
Each response includes rate limit information in the headers:Handling Rate Limits
Implement exponential backoff when you receive a429 response:
Testing Your Authentication
Test your API key with a simple request:If you receive a successful response with avatar data, your authentication is working correctly!