Error Handling
Retrying generation creation
For POST /v2/generate, send an Idempotency-Key on the first attempt and reuse it with the same payload on every retry. The guide covers replay responses, payload conflicts, retention, and all IDEMPOTENCY_* errors. A lost response or IDEMPOTENCY_OUTCOME_UNKNOWN does not authorize a fresh key or an unkeyed retry. An unknown response may include generationId; poll it when available.
Without a key, a create timeout or transport failure can leave acceptance uncertain. Confirm the outcome before submitting again. General backoff advice below does not make an unkeyed create safe to repeat.
HTTP Status Codes
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.
HTML 403 or Cloudflare Access denied
If a request to api.sync.so returns an HTML page identifying Cloudflare with HTTP 403, Access denied, or error 1010, treat it separately from the JSON API errors below. A Cloudflare block can occur before API validation, so it does not by itself establish that your API key, plan, or media is invalid.
Stop repeated retries and contact support@sync.so with the request method and endpoint, UTC timestamp, Cloudflare Ray ID, client/SDK version, and a redacted response or screenshot. For uploads, include the content type and file sizes. Do not send API keys, authorization headers, or signed media URLs. Support needs the specific response to investigate; do not assume that every 403 has the same cause.
A 403 from a presigned storage upload URL is a different case: check the Asset Uploads troubleshooting guide for content-type and URL-expiry checks.
Machine-Readable Error Codes
Every failed generation carries a stable, machine-readable errorCode alongside the human-readable error message. The errorCode appears on both the Get Generation response (GET /v2/generate/{id}) and the webhook payload delivered when a job finishes.
Branch your error handling on errorCode, not on the error string. The error message is meant for humans and may be reworded over time; the errorCode is a stable identifier you can safely switch on in code.
A failed generation looks like this:
Error responses on request endpoints (assets, voices, TTS, and submit-time generate rejections) carry the same machine-readable shape, with two optional extras: field names the request field that caused the failure (for example voiceId or input[].assetId), and docsUrl links to the relevant documentation page. Unhandled 500s include a requestId you can give to support, alongside errorCode: internal_error:
Look up any code with the error catalog
GET /v2/errors returns the full catalog of error codes — generation codes plus the API request codes below — as an array of { code, message, suggestion } objects. The endpoint is unauthenticated — no x-api-key header is required — so you can resolve any errorCode to its meaning and a suggested fix at runtime.
A typical entry looks like this:
Read and resolve an error code
When a generation fails, read its errorCode and look it up in the catalog returned by GET /v2/errors.
Submit-Time Validation Errors
Some requests are rejected at submit time — the API responds with an error on the request itself, before any render starts, instead of accepting the job and failing it later. These rejections return an HTTP status and a machine-readable errorCode in the response body, so you can correct the request and resubmit without wasting a generation.
A submit-time error returns errorCode on the HTTP response. Validation failures can precede generation creation, but an uncertain submission may already have a generation. Poll generationId when provided and follow the idempotency recovery guidance before retrying.
Rate-limit and dependency errors (429/503/504) also mirror their retry guidance into headers: Retry-After (seconds), and for concurrency 429s, X-Sync-Concurrency-Limit and X-Sync-Active-Generations.
API Request Error Codes
Beyond generation failures, the assets, voices, TTS, and generation download endpoints return their own stable errorCode values on error responses. Where applicable the body also carries field (the request field at fault) and docsUrl (a link to the relevant docs page). All of these appear in the error catalog (GET /v2/errors).
Assets
Voices and TTS
Downloads
GET /v2/generations/{id}/download returns a URL for downloading a completed generation’s output. Missing, deleted, or out-of-organization generations return generation_not_found (404), as covered above. A missing, invalid, or revoked API key returns 401, and a non-UUID id returns 400. The download-specific codes are:
Batch upload capacity
A multipart batch upload can return 503 with errorCode: upload_capacity_unavailable. No batch was created. Retry the same request after the number of seconds in Retry-After. You can also submit records as a JSON rows body.
Audio trims
POST /v2/audio-trims and GET /v2/audio-trims/{id} prepare a shorter audio asset for a partial video. These codes aren’t in the error catalog.
A trim that can’t decode or cut the audio ends with status: failed and errorCode: audio_trim_failed on GET /v2/audio-trims/{id}. Check that the source is a readable audio file, then start a new trim with a new Idempotency-Key.
Reusing an Idempotency-Key with a different body returns 409. A missing Idempotency-Key, or one that isn’t 1–128 characters from [A-Za-z0-9._~-], returns 400. An audio source or trim that doesn’t exist or that you can’t access returns 404. Upload external sources first and trim them by assetId.
Rejected and failed generations
REJECTED and FAILED are terminal statuses. Inspect errorCode and error on the generation response or webhook. REJECTED means the request or account needs a correction before another attempt. FAILED means processing stopped because of an operational error. Follow the recovery for the returned code, and contact support if it persists.
NO_OP is terminal too: the generation finished, but no frame was lip-synced, so the output is the input video unchanged. It carries one of the lip sync skipped codes. See Finished without lip sync.
A request refused before a generation exists returns its error on the HTTP response. Stop polling when a generation reaches any terminal status (COMPLETED, NO_OP, FAILED or REJECTED). For retries, follow Idempotent requests.
What do the API error codes mean?
The codes below are grouped by category, most common first.
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 model 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_plan_duration_exceeded and generation_model_duration_exceeded
Message: “The input exceeds your plan’s output-duration limit.” or “The input exceeds the selected model’s duration limit.”
Description: There is no fixed audio-length limit for lip sync. The longest output you can generate depends on your plan (see Billing), and some models have their own cap, such as 15 seconds for react-1. A submit-time rejection returns 402 generation_plan_duration_exceeded, described in Submit-Time Validation Errors.
Resolution:
- Trim or split the media so the output fits the limit.
- For a model limit, pick a model with a higher limit (see List Models).
- For a plan limit, upgrade your plan for longer generations.
Text-to-speech scripts are validated when you submit them: script accepts 1 to 5,000 characters. See Text-to-Speech.
generation_input_validation_failed
Message: “Something in your input is invalid. Please check your media and settings, then try again.”
Description: This error occurs when the provided input data does not meet the required validation criteria for processing. Common causes are an input URL or assetId that does not resolve to fetchable media, or media in an unsupported format.
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.
generation_input_audio_invalid
Message: “We could not read the audio file metadata. Please try a different audio file.”
Description: This error occurs when the audio file’s metadata is missing or cannot be read. The matching video code is generation_input_video_invalid, which you can fix the same way by re-encoding to H.264 MP4. Typical causes are corrupted audio files, damaged headers, or files from tools that produce non-standard metadata.
Resolution:
- Re-encode your audio file using a standard tool like FFmpeg to ensure proper metadata formatting:
- Verify that your audio file opens and plays correctly in a media player.
- Check that the audio file has not been corrupted during download or transfer.
- If the issue persists, try converting your audio to a different supported format (WAV, MP3, OGG, FLAC) and re-submit.
generation_input_face_selection_invalid
Message: “We could not use the selected speaker face for this video. Please select the face again or try auto-detect.”
Description: This error occurs when the manually selected speaker face cannot be used for the generation. The selected face may not be detected in the video, the supplied face coordinates may fall outside the video frame, or the active-speaker selection may be invalid.
Resolution:
- Re-run face detection and select the speaker again, making sure the face is clearly visible in the chosen frame.
- Verify that any manually supplied coordinates or bounding boxes fall within the video’s dimensions.
- Alternatively, turn off manual speaker selection to let the system auto-detect the active speaker, then resubmit.
Batch API Errors
Batch validation errors are 400 responses with only a message; they have no errorCode. Access, plan, and capacity refusals use the codes below. Dry runs require the same organization approval and plan as batch creation.
Batch access is not enabled (batch_access_not_enabled)
Status: 403
Description: Your organization has not been approved to create batches. Access is disabled by default, including for new Scale subscriptions. Dry runs require the same approval. Existing batches continue processing and remain readable when creation access is removed.
Resolution: Contact support@sync.so to request organization access. Upgrading a plan does not enable access automatically.
Batch needs the Scale plan (plan_feature_unavailable)
Status: 402
Description: The Batch API requires organization approval and a Scale plan or above (Scale, Enterprise, partner and program plans). Other plans and free accounts cannot create batches. The body carries requiredPlan and a billingUrl: requiredPlan is scale, or enterprise on credit plans, because no self-serve credit plan includes batch.
Resolution:
- Upgrade to Scale, or contact sales about Enterprise, and request organization approval to use the Batch API.
- To run a few generations at once without batch, send
POST /v2/generaterequests in parallel within your concurrency limit. See When to use batch, and when not to.
Batch concurrency limit (concurrency_limit_reached)
Status: 429, with Retry-After and X-Sync-Concurrency-Limit headers
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: You already run as many batches as your plan allows. Each active batch holds one slot of a batch limit equal to your plan’s concurrency limit. The body carries activeBatches, concurrencyLimit and retryAfterSeconds.
Resolution:
- Wait
retryAfterSeconds, or until an active batch finishes. - Check your active batches with
GET /v2/batch.
Batch validation messages
Line numbers count non-empty records; with a JSON rows body, line N is rows[N-1].
Dialogue edit row refusals
Example: {"statusCode": 422, "errorCode": "dialogue_edit_not_found", "lineNumber": 3, "message": "Record at line 3: The dialogue edit was not found in this organization."}
Description: Batch rows that carry dialogueEdit (early access) are checked at submit, including with dry_run. If a row cannot be rendered, no batch is created. The response carries the same errorCode that POST /v2/generate returns for that preview, such as dialogue_edit_not_found, dialogue_edit_not_completed, dialogue_edit_source_mismatch, or dialogue_edit_batch_mixed_sources, plus the lineNumber of the first failing row. Line numbers count non-empty records; with a JSON rows body, line N is rows[N-1]. Other batch record errors, such as invalid JSON, give the line only in message.
Resolution:
- Find the row at
lineNumberand fix it as described in Dialogue edit refusals. - Validate again with
dry_rununtil the response is{"status": "VALIDATED"}.
Lip sync skipped
These codes come with the NO_OP status. The generation finished and its outputUrl is the input video unchanged, plus any generated speech or dubbed audio. Lip sync is not charged. See Finished without lip sync.
generation_lipsync_skipped_no_face
Message: “No face was detected in the video, so nothing was lip-synced.”
Resolution: Use a video where the speaker’s face is clearly visible and large enough in the frame, then resubmit.
generation_lipsync_skipped_speaker_not_found
Message: “No face was found at the selected speaker position, so nothing was lip-synced.”
Resolution: Select a point on the speaker’s face in a frame where it is visible, or use automatic speaker detection, then resubmit.
generation_lipsync_skipped_no_active_speaker
Message: “Automatic speaker detection found no one speaking, so nothing was lip-synced.”
Resolution: Select the speaker yourself with a frame number and coordinates, then resubmit. See Speaker Selection.
generation_lipsync_skipped
Message: “No frames were lip-synced, so the video is unchanged.”
Resolution: Use a video where the speaker’s face is clearly visible, then resubmit.
System and Processing Errors
generation_pipeline_failed
Message: “The generation failed while processing. Please try again or contact support if this keeps happening.”
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_unknown_error
Message: “Something went wrong while processing this generation. Please try again.”
Description: The generation failed for a reason that has no more specific code.
Resolution:
- Retry the generation.
- If it fails repeatedly, contact support with the generation ID.
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.
Report an unclear error or a workaround
If an error didn’t say what to fix, a result was wrong, or you needed a workaround, report it with Submit Feedback (POST /v2/feedback).
- Send one report per problem with a
kind(confusing_error,bug,missing_capability,workaround,docsorother) and amessageof up to 4,000 characters that includes the exact error text. - Add the
errorCodeandgenerationIdwhen you have them. - The sync. team reviews reports daily.
- The call returns
202with a referenceid, doesn’t change or retry any job, and is limited to 30 reports per minute. - The MCP server exposes the same report as the
feedback_sendtool.
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. 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.
- Locate Your Generation: Find the generation thumbnail you need the ID for
- Access the Menu: Hover over the generation thumbnail and click the three dots menu that appears
- Copy the Job ID: Select “copy job id” from the dropdown menu
For Agent Mode: In Agent Mode, you can find generation IDs in two ways:
- Sessions Sidebar: Click the dropdown menu (three dots) next to any session entry in the sidebar and select “Copy Job ID”
- Error Card: When a generation fails, click the “Copy Job ID” button directly on the error notification card
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.
Related Resources
- Rate Limits: understand API rate limiting and how to handle throttled requests
- Webhooks: receive real-time notifications when generation jobs complete or fail
- Quickstart: get up and running with your first sync. labs API call
Support Knowledge Base
- Internal Server Error during lipsync: Pipeline failure troubleshooting
- Internal Server Error during TTS: TTS-specific errors
- Upload troubleshooting: File upload errors
- Unable to process audio: Audio processing errors
- Unexpected error occurred: General error troubleshooting
Frequently Asked Questions
What does error 400 mean?
A 400 error means your request has invalid input. Common causes include a malformed URL, unsupported media format, missing required fields, or a value outside the allowed range. Media that is longer than your plan allows is rejected with 402 generation_plan_duration_exceeded, not 400. Check the specific error code in the response body for details on what to fix.
Why is my generation stuck in PENDING?
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, poll its existing ID or contact support. Do not create a replacement just because it is still pending.
How do I retry failed generations?
After a generation ends FAILED or REJECTED, retry with the same key and inputs: the retry starts a new generation, admitted and billed like a first request. For a timeout or unknown submission outcome, keep the original key and inputs; do not start a replacement. See Idempotent Requests.

