v3
latestOpenAPI 3.1.02026-07-313340106.6 KBGenerate
post/v2/generate
Request body
Example request
{
"model": "lipsync-1.9.0-beta",
"input": [
{
"type": "video",
"url": "https://assets.sync.so/videos/samples/influencer.mp4"
},
{
"type": "audio",
"url": "https://assets.sync.so/audios/samples/re-record.mp3"
}
],
"options": {
"prompt": "add a red hat to the speaker",
"prompt_image_uris": [
"https://example.com/appearance-preview.png"
],
"i2v_prompt": "make the subject smile and look at the camera",
"model_mode": "face",
"temperature": 0.5,
"sync_mode": "bounce",
"blending_mode": "default",
"active_speaker_detection": {
"auto_detect": true,
"use_v2": true,
"v3": true,
"frame_number": 123,
"coordinates": [
10,
20
],
"face_image": "data:image/webp;base64,..."
},
"face_boxes_url": "https://example.com/face-boxes.json",
"occlusion_detection_enabled": true,
"output_bucket_name": "my-bucket",
"active_speaker": true,
"pads": [
0,
5,
0,
0
],
"speedup": 1,
"output_format": "mp4",
"fps": 25,
"output_resolution": [
1280,
720
]
},
"projectId": "550e8400-e29b-41d4-a716-446655440000",
"webhookUrl": "https://your-server.com/webhook",
"outputFileName": "generated_video.mp4",
"dubParams": {
"providerName": "elevenlabs",
"targetLang": "es",
"sourceLang": "en",
"numSpeakers": 1
}
}Response
Job created successfully
Example response
{
"errorCode": "generation_input_video_inaccessible"
}