When calling the Sync Labs API, you may encounter the following HTTP status codes. These are returned at the HTTP level before any generation-specific error codes.
Here’s a comprehensive list of Sync Labs lip sync API error codes you may encounter, grouped by category and ordered from most common to least common.
generation_unsupported_modelMessage: “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:
generation_media_metadata_missingMessage: “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:
duration metadata is present.duration and frame_rate metadata are included.generation_audio_length_exceededMessage: “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:
generation_text_length_exceededMessage: “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:
generation_audio_missingMessage: “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:
generation_video_missingMessage: “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:
generation_input_validation_failedMessage: “Failed to validate input: [specific error details or ‘unknown validation failure’]”
Description: This error occurs when the provided input data does not meet the required validation criteria for processing. The error message includes specific details about what validation failed, which can help identify issues with file formats, metadata, or other input parameters that don’t conform to expected specifications. If specific details aren’t available, the message will indicate “unknown validation failure.”
Resolution:
generation_input_audio_invalidMessage: “The provided audio file has invalid metadata.”
Description: This error occurs when the audio file contains metadata that cannot be properly parsed or validated. Unlike generation_media_metadata_missing (which indicates missing metadata), this error means metadata is present but malformed, corrupted, or contains invalid values. Typical causes are corrupted audio files, damaged headers, or files from tools that produce non-standard metadata.
Resolution:
batch_concurrency_limit_reachedMessage: “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:
batch_plan_requiredMessage: “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:
batch_file_too_largeMessage: “File size exceeds the maximum limit of 5MB.”
Description: The uploaded batch file exceeds the 5MB size limit.
Resolution:
batch_too_many_requestsMessage: “Number of records exceeds the maximum limit of 1,000.”
Description: Your batch file contains more than the maximum allowed 1,000 generation requests.
Resolution:
batch_insufficient_recordsMessage: “Input file must contain at least 20 records. Found X record(s).”
Description: Your batch file contains fewer than the minimum required 20 generation requests.
Resolution:
batch_invalid_jsonlMessage: “Invalid JSON at line X: [specific error message]”
Description: The batch file contains invalid JSON formatting on a specific line.
Resolution:
batch_duplicate_request_idMessage: “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:
request_id values in your batch file are unique.batch_invalid_endpointMessage: “Invalid endpoint specified. Only ‘/v2/generate’ is supported.”
Description: The batch file contains requests for unsupported endpoints.
Resolution:
"endpoint": "/v2/generate".generation_timeoutMessage: “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:
generation_pipeline_failedMessage: “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:
generation_database_errorMessage: “An error occurred while accessing the database.”
Description: This error indicates a problem with database operations during the generation process.
Resolution:
generation_internal_authMessage: “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_errorMessage: “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:
generation_infra_storage_errorMessage: “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:
generation_infra_resource_exhaustedMessage: “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:
generation_infra_service_unavailableMessage: “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:
If you need to find a generation ID for troubleshooting purposes, you can easily locate it through the Studio interface. Both Studio Pro and Studio Lite modes follow the same basic process:
For Studio Pro Mode: First click on the “History” button in the Studio interface, then follow the steps below.
For Studio Lite Mode: Go directly to the steps below.
For Agent Mode: In Agent Mode, you can find generation IDs in two ways:
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, check the Troubleshooting page for common problems and solutions, or reach out to our support team for assistance.
A 400 error means your request has invalid input. Common causes include a malformed URL, unsupported media format, missing required fields, or audio exceeding the 300-second limit. Check the specific error code in the response body for details on what to fix.
A generation in PENDING status is waiting for processing resources. During periods of high demand, jobs may queue briefly before starting. If a generation stays in PENDING for an extended time, retry the request or contact support for assistance.
Submit a new generation request with the same input parameters. There is no built-in retry endpoint. For production systems, implement retry logic with exponential backoff for transient errors like 429 rate limits or 500 server errors. Check the error code before retrying.