Understanding Klyra API error codes and how to resolve them
Code | Description | Resolution |
---|---|---|
invalid_api_key | API key is invalid or has been revoked | Check your API key or generate a new one in the dashboard |
missing_api_key | No API key was provided | Add the Authorization header with your API key |
expired_api_key | The API key has expired | Generate a new API key in the dashboard |
insufficient_permissions | The API key doesn’t have permission for this action | Use a different API key with the required permissions |
Code | Description | Resolution |
---|---|---|
invalid_request | The request was malformed or missing required fields | Check your request parameters against the API documentation |
unsupported_content_type | The content type provided is not supported | Verify you’re sending a supported content type |
content_too_large | The content exceeds size limits | Reduce the size of your content or use chunking for large files |
invalid_parameters | One or more parameters are invalid | Check the param field for which parameter is problematic |
missing_content | No content was provided for moderation | Ensure the content field in your request is not empty |
invalid_url | The URL provided could not be accessed | Verify the URL is correct and publicly accessible |
Code | Description | Resolution |
---|---|---|
rate_limit_exceeded | You’ve exceeded your rate limit | Wait before retrying or upgrade your plan for higher limits |
quota_exceeded | You’ve exceeded your monthly quota | Upgrade your plan or wait until the next billing cycle |
concurrent_requests_exceeded | Too many concurrent requests | Implement backoff and limit parallel requests |
Code | Description | Resolution |
---|---|---|
internal_server_error | Something went wrong on our end | Contact support with the request_id if this persists |
service_unavailable | The service is temporarily unavailable | Retry the request after a brief delay |
model_unavailable | The requested model is temporarily unavailable | Try a different model or retry later |
timeout | The request took too long to process | Simplify your request or break it into smaller chunks |
Code | Description | Resolution |
---|---|---|
unprocessable_content | The content couldn’t be processed | Check that your content is valid and in a supported format |
content_download_failed | Failed to download content from the provided URL | Verify the URL is publicly accessible and the content exists |
unsupported_language | The language of the content is not supported | Check the list of supported languages |
corrupted_media | The media file is corrupted or in an invalid format | Verify the file integrity and format |