Error Handling
Error Codes
Here’s a comprehensive list of error codes you may encounter, grouped by category and ordered from most common to least common.
Input Validation Errors
generation_unsupported_model
Message: “The requested model is not supported for this operation.”
Description: This error is thrown when you attempt to use a model that is not compatible with the current operation or API endpoint.
Resolution:
- Check the documentation to see which models are supported for this specific API call.
- Update your request to use a supported model.
- If you believe this is an error, please contact our support team with details of your use case.
generation_media_metadata_missing
Message: “Required media metadata is missing from the request.”
Description: This error occurs when the media file lacks essential metadata for processing. The required metadata fields include:
duration
: The length of the media in seconds (for both audio and video)frame_rate
: The number of frames per second (for video content only)
Resolution:
- Ensure that your media file includes the required metadata embedded within it:
- For audio files: Verify that the
duration
metadata is present. - For video files: Check that both
duration
andframe_rate
metadata are included.
- For audio files: Verify that the
- Use media editing tools to add or update the necessary metadata to your file.
- Verify that the metadata is correctly embedded and readable before submitting the media for processing.
- For persistent issues, contact our support team for guidance on proper media preparation and metadata requirements.
generation_audio_length_exceeded
Message: “The provided audio exceeds the maximum allowed length.”
Description: This error is thrown when the audio file submitted for processing is longer than the maximum permitted duration of 300 seconds (5 minutes).
Resolution:
- Trim or split your audio file to meet the length requirements.
- If you need to process longer audio files, consider batching your requests into smaller chunks or contact support for alternative solutions.
generation_text_length_exceeded
Message: “Text must be less than 5000 characters in one generation.”
Description: This error occurs when the text provided for text-to-speech (TTS) generation exceeds the maximum allowed length of 5,000 characters.
Resolution:
- Reduce the length of your text input to 5,000 characters or fewer.
- Consider breaking longer text into multiple smaller requests.
- Remove unnecessary content or use more concise language to fit within the limit.
generation_audio_missing
Message: “No audio file was provided in the request.”
Description: This error occurs when an audio file is expected but not included in the API request.
Resolution:
- Ensure that you’re including the audio file in your request payload.
- Verify that the audio file is properly encoded and formatted as per the API requirements.
- For persistent issues, contact our support team for guidance on proper audio file preparation and submission.
generation_video_missing
Message: “No video file was provided in the request.”
Description: This error occurs when a video file is expected but not included in the API request.
Resolution:
- Make sure you’re including the video file in your request payload.
- Verify that the video file is properly encoded and formatted according to the API specifications.
- For persistent issues, contact our support team for guidance on proper video file preparation and submission.
generation_input_validation_failed
Message: “The input data failed validation.”
Description: This error occurs when the provided input data does not meet the required validation criteria for processing. This can include issues with file formats, metadata, or other input parameters that don’t conform to expected specifications.
Resolution:
- Review your input data to ensure it meets all API requirements and specifications.
- Check that all required fields are present and properly formatted.
- Verify that file formats, sizes, and other parameters are within acceptable limits.
- If the issue persists, contact our support team with details about your input data for further assistance.
Batch API Errors
batch_concurrency_limit_reached
Message: “Batch concurrency limit reached. You have X active batches and your plan allows Y. Please wait for existing batches to complete or upgrade your plan for higher limits.”
Description: This error occurs when you attempt to create a new batch while already at your plan’s batch concurrency limit.
Resolution:
- Wait for one or more of your active batches to complete before submitting new ones.
- Check your active batches using the List Batches endpoint to monitor their progress.
- Consider upgrading to a higher plan if you need more concurrent batch processing capacity.
batch_plan_required
Message: “This endpoint is only available for scale and enterprise plans. Please upgrade your plan.”
Description: The Batch API is only available for Scale plan subscribers and above.
Resolution:
- Upgrade your subscription to Scale plan or higher to access batch processing features.
- Contact our sales team to discuss plan options that meet your batch processing needs.
batch_file_too_large
Message: “File size exceeds the maximum limit of 5MB.”
Description: The uploaded batch file exceeds the 5MB size limit.
Resolution:
- Reduce the size of your batch file by splitting it into smaller batches.
- Remove unnecessary data or optimize your JSON formatting to reduce file size.
- Consider processing your data in multiple smaller batches instead of one large batch.
batch_too_many_requests
Message: “Number of records exceeds the maximum limit of 10,000.”
Description: Your batch file contains more than the maximum allowed 10,000 generation requests.
Resolution:
- Split your batch into multiple smaller batches, each containing 10,000 or fewer requests.
- Process your data in chunks to stay within the limit.
batch_invalid_jsonl
Message: “Invalid JSON at line X: [specific error message]”
Description: The batch file contains invalid JSON formatting on a specific line.
Resolution:
- Validate your JSON Lines (.jsonl) file format - each line must be valid JSON.
- Check the specific line mentioned in the error message for syntax errors.
- Ensure there are no trailing commas, missing quotes, or other JSON formatting issues.
- Use a JSON validator to check each line of your file.
batch_duplicate_request_id
Message: “Duplicate request_id found at line X: [request_id]”
Description: The batch file contains duplicate request_id
values, which must be unique within each batch.
Resolution:
- Ensure all
request_id
values in your batch file are unique. - Review your batch generation logic to prevent duplicate IDs.
- Consider using UUIDs or timestamps to ensure uniqueness.
batch_invalid_endpoint
Message: “Invalid endpoint specified. Only ‘/v2/generate’ is supported.”
Description: The batch file contains requests for unsupported endpoints.
Resolution:
- Ensure all requests in your batch file use
"endpoint": "/v2/generate"
. - Currently, only the generate endpoint is supported for batch processing.
System and Processing Errors
generation_timeout
Message: “The generation process exceeded the maximum allowed time.”
Description: This is an internal error that occurs when our system is under high load, causing the requested operation to take longer than the allotted time to complete.
Resolution:
- Retry your request after a short delay, as the high load may be temporary.
- If possible, try submitting your request during off-peak hours.
- Consider breaking down large requests into smaller, more manageable chunks.
- If the issue persists, contact our support team to report the problem and discuss potential solutions.
generation_pipeline_failed
Message: “An error occurred in the generation pipeline.”
Description: This error indicates a failure in one of the internal processing steps of the generation pipeline.
Resolution:
- Review your input data to ensure it meets all the required specifications.
- Try resubmitting the request, as some pipeline errors may be temporary.
- If the problem continues, reach out to our support team with details about your request and the specific error message for further investigation.
generation_database_error
Message: “An error occurred while accessing the database.”
Description: This error indicates a problem with database operations during the generation process.
Resolution:
- Verify that your request doesn’t contain any invalid or conflicting data that might cause database issues.
- Try your request again after a short wait, as database errors can sometimes be temporary.
- If the problem continues, report the issue to our support team, providing details about your request and any specific error messages you received.
generation_internal_auth
Message: “Authentication failed for internal generation service.”
Description: This error occurs when there’s an issue with our internal authentication process. If you get this error, contact our support team so we can get it fixed.
generation_unhandled_error
Message: “An unexpected error occurred during the generation process.”
Description: This is a catch-all error for unforeseen issues that aren’t covered by more specific error codes.
Resolution:
- Check all aspects of your request for any potential issues or inconsistencies.
- Try the request again, as some unhandled errors may be due to temporary system glitches.
- If the error persists, contact our support team with a detailed description of your request and the steps to reproduce the error.
generation_infra_storage_error
Message: “An error occurred while accessing the storage on infra layer.”
Description: This error indicates a problem with accessing or managing storage resources during the generation process. This can occur due to temporary storage service issues or connectivity problems.
Resolution:
- Retry your request after a short delay, as storage errors are often temporary.
- Ensure your input files are accessible and not corrupted.
- If the problem persists, contact our support team as this may indicate a broader infrastructure issue.
generation_infra_resource_exhausted
Message: “The infra resources are exhausted.”
Description: This error occurs when the infrastructure resources required for processing your request are temporarily unavailable or at capacity.
Resolution:
- Wait a few minutes and retry your request, as resource availability fluctuates.
- Consider submitting your request during off-peak hours when resources are more readily available.
- If you frequently encounter this error, contact our support team to discuss your usage patterns and potential solutions.
generation_infra_service_unavailable
Message: “The infra service is unavailable.”
Description: This error indicates that one or more infrastructure services required for processing are temporarily unavailable. This can be due to maintenance, connectivity issues, or service outages.
Resolution:
- Check our status page for any ongoing service issues or maintenance windows.
- Retry your request after a short delay, as service availability issues are typically temporary.
- If the service remains unavailable for an extended period, contact our support team for updates and assistance.
General Troubleshooting Tips
- Check your API key: Ensure you’re using the correct API key and that it is not revoked.
- Verify request format: Double-check that your API request is properly formatted and includes all required parameters.
- Review rate limits: Make sure you haven’t exceeded your API rate limits.
- Check service status: Visit our status page to see if there are any ongoing service issues.
- Consult the documentation: Our API documentation may have been updated with new information or changes.
Finding Generation IDs from Studio
If you need to find a generation ID for troubleshooting purposes, you can easily locate it through the Studio interface:
- Access the History: Click on the “History” button in the Studio interface
- Locate Your Generation: Find the specific generation you need the ID for
- Copy the Generation ID: The generation ID (also called job_id) will be visible and can be copied from the generation entry

This generation ID can then be used when contacting support or when making API calls to retrieve specific generation details.
If you’re still experiencing issues after trying these steps, please don’t hesitate to reach out to our support team for assistance.