Error Response Format
All API errors follow a consistent JSON format:HTTP Status Codes
| Status Code | Meaning | Common Causes |
|---|---|---|
| 400 | Bad Request | Invalid parameters, missing required fields |
| 401 | Unauthorized | Invalid or missing API key |
| 403 | Forbidden | Valid API key but insufficient permissions |
| 404 | Not Found | Resource doesn’t exist or you don’t have access |
| 429 | Too Many Requests | Rate limit exceeded |
| 500 | Internal Server Error | Server-side error (rare) |
Common Errors
Authentication Errors
401 - Missing API Key
401 - Missing API Key
Error:Solution:
401 - Invalid API Key
401 - Invalid API Key
Error:Solution:
- Verify your API key is correct
- Check you’re using the right environment (production vs development)
- Regenerate your API key if needed at https://api.slidevid.ai/settings/api
403 - Subscription Required
403 - Subscription Required
Error:Solution:
- Upgrade your plan at https://api.slidevid.ai/settings/billing
- Check your subscription status
Validation Errors
400 - Missing Required Fields
400 - Missing Required Fields
Error:Solution:
400 - Invalid Field Value
400 - Invalid Field Value
Error:Solution:
400 - Script Too Long
400 - Script Too Long
Error:Solution: Split your script into multiple videos or reduce the length
Resource Errors
404 - Avatar Not Found
404 - Avatar Not Found
Error:Solution:
- List available avatars:
GET /api/v1/avatar/list - Verify the avatar ID exists and you have access to it
- Check if it’s a custom avatar from another team
404 - Template Not Found
404 - Template Not Found
Error:Solution:
- List your templates:
GET /api/v1/template/list - Verify the template ID
- Ensure the template belongs to your team
Rate Limiting
429 - Rate Limit Exceeded
429 - Rate Limit Exceeded
Error:Headers:Solution:
Processing Errors
Video Generation Failed
Video Generation Failed
Webhook Payload:Common Causes:
- Script contains unsupported characters
- Voice model temporarily unavailable
- Audio processing timeout
- Check script for special characters
- Try a different voice
- Retry the request
- Contact support if persists
Template Variable Mismatch
Template Variable Mismatch
Error:Solution:
Error Handling Patterns
Basic Error Handling
Advanced Error Handling
Retry Logic with Exponential Backoff
Debugging Tips
1
Check API Key
Verify your API key is correct and active
2
Validate Request Body
Use a JSON validator to ensure your payload is valid
3
Check Response
Log the full response to see what went wrong
4
Monitor Rate Limits
Check rate limit headers in responses
Error Prevention Checklist
Before making API calls:
- API key is set and valid
- All required fields are included
- Field values match expected types and formats
- Avatar/Voice/Template IDs exist and are accessible
- Script length is within limits (< 5000 characters)
- Rate limits are being tracked
- Webhook URL is publicly accessible (if used)
- Error handling is implemented
- Retry logic for transient errors
Getting Help
Status Page
Check system status and outages
Support
Contact support for assistance
Discord Community
Get help from the community
GitHub Issues
Report bugs and issues