{"openapi":"3.0.2","info":{"title":"synclabs/sync-3","description":"The request body Comfy Router accepts for the model \"synclabs/sync-3\", and the response body it returns. The INPUT schema is the same schema the server validates a call against before it reaches the provider, so what is published and what is enforced cannot differ. `x-comfy-router-input-modalities` records the media kinds the model is documented to accept; the request schema is shared across sibling models and may admit media kinds this model ignores. The OUTPUT schema describes the provider's native result document exactly as Router returns it: Router does not validate, narrow or re-envelope the response, so the output schema is descriptive rather than enforced, and Comfy owns no output shape of its own.","version":"50849ceb7429"},"paths":{"/v2/models/synclabs/sync-3":{"post":{"operationId":"runRouterModel","summary":"Run synclabs/sync-3 synchronously.","security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"description":"The Sync Labs lipsync generation fields, shared by the v1 `POST /proxy/synclabs/v2/generate` request body and the Comfy Router input schema for `synclabs/sync-3`. See the note above this component for why the two surfaces share properties but not `required`.\n`required` here is the ROUTER-SAFE floor: `model` is absent from it because Router writes the path's model into the body after routervalidate.Guard has already validated the caller's bytes. The v1 wrapper `SyncLabsGenerateRequest` re-adds it.","example":{"input":[{"type":"video","url":"https://example.invalid/synclabs/sync-3/speaker.mp4"},{"type":"audio","url":"https://example.invalid/synclabs/sync-3/voiceover.wav"}],"options":{"sync_mode":"bounce"}},"properties":{"dubParams":{"$ref":"#/components/schemas/SyncLabsDubParams"},"input":{"description":"Input items; exactly one visual input (video or image) and one audio or text input","items":{"$ref":"#/components/schemas/SyncLabsGenerationInput"},"minItems":1,"type":"array"},"model":{"description":"Name of the model to use for generation; only sync-3 is supported. On the Comfy Router route `POST /v2/models/synclabs/{model}` this field is supplied from the path and may be omitted.","nullable":true,"type":"string"},"options":{"$ref":"#/components/schemas/SyncLabsGenerationOptions"},"outputFileName":{"description":"Base filename for the generated output without extension","type":"string"},"projectId":{"description":"Optionally attach this generation to a Sync Labs project","type":"string"},"segments":{"description":"Segment definitions applying different audio inputs to different video segments","items":{"$ref":"#/components/schemas/SyncLabsGenerationSegment"},"type":"array"},"webhookUrl":{"description":"Webhook URL for generation status updates","type":"string"}},"required":["input"],"type":"object"}}}},"responses":{"200":{"description":"OK - the model's native JSON output, returned unchanged; the schema describes the provider's terminal result document as Router returns it.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/SyncLabsGeneration"}],"description":"Comfy Router output schema for `synclabs/sync-3`: the terminal `GET /proxy/synclabs/v2/generate/{id}` document, forwarded unchanged. The operation is SUBMIT-AND-POLL and Router polls on the caller's behalf, so the body a caller receives is the finished generation (`status: COMPLETED`) rather than the handle the submit returns.\nThe lipsynced video is at `outputUrl`, and its length in seconds at `outputDuration` — the field the per-second rate is metered from. A generation that fails carries `status: FAILED` or `status: REJECTED` with `error` and `errorCode` instead, and Router answers those as a failure rather than as a result. So does `status: NO_OP`, a finished generation that lip-synced nothing: its `outputUrl` is the caller's own input video unchanged (plus any generated speech), so Router answers it as a failure and never returns that URL. Until 2026-12-17 Sync answers such an API generation `COMPLETED` instead, with the unchanged input video at `outputUrl`, and Router returns that document as a result and bills it like any other completed generation. Two neighbouring URL fields are NOT the generation: `segmentOutputUrl` is a per-segment render and `synthesizedAudioUrl` is the audio synthesized from a text (TTS) input, so a document carrying either of those and no `outputUrl` is a success with nothing to collect and Router does not return it as one.\nRouter does not re-host these assets onto Comfy storage; `outputUrl` is Sync Labs' own link and expires on their schedule.","example":{"createdAt":"2026-01-01T00:00:00.000Z","id":"9a3d0c1e-0000-4000-8000-000000000000","model":"sync-3","outputDuration":4.25,"outputFileName":"lipsync","outputUrl":"https://example.invalid/synclabs/sync-3/output.mp4","status":"COMPLETED"}}}}}}}}},"components":{"schemas":{"SyncLabsActiveSpeaker":{"description":"Active speaker detection configuration","properties":{"auto_detect":{"description":"Whether to automatically detect and apply generation to the active speaker","type":"boolean"},"bounding_boxes":{"description":"Per-frame array of bounding boxes [x1, y1, x2, y2] for the detected face","items":{"items":{"type":"integer"},"type":"array"},"type":"array"},"bounding_boxes_url":{"description":"URL to a JSON file containing bounding boxes","type":"string"},"coordinates":{"description":"Pixel coordinates [x, y] in the source video frame identified by frame_number","items":{"type":"integer"},"type":"array"},"frame_number":{"description":"Frame index that corresponds to the provided coordinates for manual speaker selection","type":"integer"},"v3":{"description":"Whether to use ASD v3","type":"boolean"}},"type":"object"},"SyncLabsDubParams":{"description":"Dubbing parameters attached to a Sync Labs generate request","properties":{"numSpeakers":{"description":"Number of speakers in the source video; 0 enables auto-detection","type":"integer"},"providerName":{"description":"Provider to use for dubbing (e.g. elevenlabs)","type":"string"},"sourceLang":{"description":"Source language code; defaults to auto","type":"string"},"targetLang":{"description":"Target language code for dubbing","type":"string"}},"required":["providerName","targetLang"],"type":"object"},"SyncLabsGeneration":{"description":"A Sync Labs lipsync generation","properties":{"createdAt":{"description":"The date and time the generation was created","type":"string"},"error":{"description":"The error message if the generation failed","type":"string"},"errorCode":{"description":"Stable, machine-readable error code if the generation failed","type":"string"},"id":{"description":"Unique identifier for the generation","type":"string"},"input":{"description":"The input items used for generation","items":{"$ref":"#/components/schemas/SyncLabsGenerationInput"},"type":"array"},"model":{"description":"The name of the model used for generation","type":"string"},"options":{"$ref":"#/components/schemas/SyncLabsGenerationOptions"},"outputDuration":{"description":"The duration of the output media in seconds","format":"double","type":"number"},"outputFileName":{"description":"The sanitized filename applied to the output media","type":"string"},"outputUrl":{"description":"The URL of the output media","type":"string"},"projectId":{"description":"The id of the project this generation is attached to","type":"string"},"segmentOutputUrl":{"description":"The URL of the segment output media","type":"string"},"segments":{"description":"The segments of the generation","items":{"$ref":"#/components/schemas/SyncLabsGenerationSegment"},"type":"array"},"status":{"description":"The status of the generation (PENDING, PROCESSING, COMPLETED, NO_OP, FAILED, REJECTED). NO_OP is terminal; nothing was lip-synced, `outputUrl` is the input video unchanged (plus any generated speech), Sync does not charge for lip sync, and Comfy does not bill the caller.","type":"string"},"synthesizedAudioUrl":{"description":"The URL of the audio synthesized from a text (TTS) input","type":"string"},"webhookUrl":{"description":"The URL to the webhook endpoint","type":"string"}},"type":"object"},"SyncLabsGenerationInput":{"description":"An input item for a Sync Labs generation. type is one of video, image,\naudio, or text. Video/image/audio inputs are provided by url or\nassetId; text inputs carry a TTS provider configuration.\n","properties":{"assetId":{"description":"ID of an asset from the Sync Labs media library","type":"string"},"provider":{"$ref":"#/components/schemas/SyncLabsTTSProvider"},"refId":{"description":"Reference identifier used to link this input to segment definitions","type":"string"},"segments_frames":{"description":"Deprecated - use the top-level segments array instead","items":{"items":{"type":"integer"},"type":"array"},"type":"array"},"segments_secs":{"description":"Deprecated - use the top-level segments array instead","items":{"items":{"format":"double","type":"number"},"type":"array"},"type":"array"},"type":{"description":"Input type (video, image, audio, or text)","type":"string"},"url":{"description":"URL of the media to be used for generation","type":"string"}},"required":["type"],"type":"object"},"SyncLabsGenerationOptions":{"description":"Additional options available for a Sync Labs generation","properties":{"active_speaker_detection":{"$ref":"#/components/schemas/SyncLabsActiveSpeaker"},"model_mode":{"description":"Edit region for the model (lips, face, head); only works with react-1","type":"string"},"occlusion_detection_enabled":{"description":"Whether to detect occlusion during generation","type":"boolean"},"prompt":{"description":"Emotion prompt; only works with react-1","type":"string"},"sync_mode":{"description":"How to handle duration mismatches between video and audio (bounce, loop, cut_off, silence, remap)","type":"string"},"temperature":{"description":"How expressive lipsync can be, 0 to 1","format":"double","type":"number"}},"type":"object"},"SyncLabsGenerationSegment":{"description":"Defines a video segment with its corresponding audio input","properties":{"audioInput":{"$ref":"#/components/schemas/SyncLabsSegmentAudioInput"},"endTime":{"description":"Segment end time in seconds","format":"double","type":"number"},"optionsOverride":{"$ref":"#/components/schemas/SyncLabsSegmentOptionsOverride"},"startTime":{"description":"Segment start time in seconds","format":"double","type":"number"}},"required":["startTime","endTime","audioInput"],"type":"object"},"SyncLabsSegmentAudioInput":{"description":"Audio input configuration for a specific segment","properties":{"endTime":{"description":"Optional end time in seconds to crop the referenced audio","format":"double","type":"number"},"refId":{"description":"Reference ID of the audio/text-to-speech input to use for this segment","type":"string"},"startTime":{"description":"Optional start time in seconds to crop the referenced audio","format":"double","type":"number"}},"required":["refId"],"type":"object"},"SyncLabsSegmentOptionsOverride":{"description":"Override generation options for a specific segment","properties":{"active_speaker_detection":{"$ref":"#/components/schemas/SyncLabsActiveSpeaker"},"occlusion_detection_enabled":{"description":"Override occlusion detection for this segment","type":"boolean"},"sync_mode":{"description":"Override the sync mode for this segment","type":"string"},"temperature":{"description":"Override temperature (0-1) for this segment","format":"double","type":"number"}},"type":"object"},"SyncLabsTTSProvider":{"description":"Text-to-speech provider configuration for a Sync Labs text input","properties":{"name":{"description":"TTS provider name (e.g. elevenlabs)","type":"string"},"script":{"description":"Script to be used for generation","type":"string"},"similarityBoost":{"description":"How closely the AI should adhere to the original voice","format":"double","type":"number"},"stability":{"description":"Voice stability; lower values introduce broader emotional range","format":"double","type":"number"},"voiceId":{"description":"Sync voice id (cloned voice from the Studio) or ElevenLabs voice ID","type":"string"}},"required":["name","voiceId","script"],"type":"object"}},"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"x-comfy-router-model-id":"synclabs/sync-3","x-comfy-input-schema-authored":true,"x-comfy-output-schema-authored":true,"x-comfy-router-input-modalities":["video","image","audio","text"],"x-comfy-router-output-modalities":["video"]}
