Skip to content

Volcengine video to video lip sync ​

This page is generated from the upstream official OpenAPI documentation. Endpoints, parameters and examples match the official docs; brand and API domain are replaced with ModelFold.

Endpoint ​

POST /jobs/createTask

Full URL: https://ai.modelfold.online/v1/jobs/createTask

Authentication: every request must include the Authorization: Bearer <API_KEY> header.

Create Task ​

Use this endpoint to create a new video-to-video lip sync task. Upload a video and an audio file, and the model will drive the video lip movements to match the target audio.

  • Get Task Details — After submission, use the unified query endpoint to check task progress and retrieve results

TIP

For production use, we recommend providing the callBackUrl parameter so your service can receive completion notifications instead of polling for task status.

File Upload ​

TIP

Need to upload files before calling this endpoint? See File Upload API Quickstart.

Output Specifications ​

The generated video is returned in MP4 format at 25 fps. The final output duration follows the audio duration: if the source video is longer than the audio, it will be trimmed; if the source video is shorter than the audio, it will be looped.

Request Parameters ​

Body (application/json) ​

ParameterTypeRequiredDescription
modelstringYesThe model name used for video lip sync. This field is required.
- This endpoint must use the volcengine/video-to-video-lip-sync model Default:"volcengine/video-to-video-lip-sync"。 Allowed values:volcengine/video-to-video-lip-sync。 示例:volcengine/video-to-video-lip-sync。
inputobjectYesInput parameters for the video-to-video lip sync task.
  input.modestringYesService mode for lip-sync generation.
- lite: For single-person frontal videos. Faster processing.
- basic: For single-person complex scenes. Supports scene segmentation and speaker identification. Allowed values:lite / basic。 示例:lite。
  input.video_urlstringYesVideo URL. Supported resolution: 360p–1080p. Videos above 1080p will be compressed to 1080p, while videos below 360p are not supported. Supported formats: MOV, MP4, HDR, MKV. Recommended codec: H.264. Other formats/codecs may be transcoded. Max file size: 500 MB. Bitrate: 1–30 Mbps. Frame rate: 24–60 fps.
  input.audio_urlstringYesTarget pure vocal audio URL; used to drive video lip movements. Audio duration: over 1 s and up to 240 s in lite mode; over 1 s and up to 210 s in basic mode. Accepted file types: audio/mpeg, audio/wav, audio/x-wav, audio/aac, audio/mp4, audio/ogg. Max file size: 10MB.
  input.separate_vocalbooleanNoEnable vocal separation to suppress background noise. Default value: false. Default:false。 示例:false。
  input.open_scenedetbooleanNoWhether to enable scene segmentation and speaker identification. Supported only in Basic mode. Default value: false. Default:false。 示例:false。
  input.align_audiobooleanNoSupported in Lite mode. Whether to loop the video when the audio is longer than the video. Default value: true. Default:true。 示例:true。
  input.align_audio_reversebooleanNoSupported in Lite mode. Whether to loop the video in reverse (backward). Requires align_audio to be set to true. Default value: false. Default:false。 示例:false。
  input.templ_start_secondsnumberNoSupported in Lite mode. Start time of the template video, in seconds. Default value: 0. Default:0。 示例:0。
callBackUrlstringNoCallback URL. Once the task is fully completed, ModelFold will send the result to the business webhook URL. To verify callbacks, see Webhook Verification Guide.

Request Example ​

bash
curl -X POST "https://ai.modelfold.online/v1/jobs/createTask" \
  -H "Authorization: Bearer $MODELFOLD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "volcengine/video-to-video-lip-sync",
  "input": {
    "mode": "lite",
    "video_url": "https://your-domain.com/video/example.mp4",
    "audio_url": "https://your-domain.com/audio/speech.mp3",
    "separate_vocal": false,
    "open_scenedet": false,
    "align_audio": true,
    "align_audio_reverse": false,
    "templ_start_seconds": 0
  },
  "callBackUrl": "https://your-domain.com/api/callback"
}'
json
{
  "model": "volcengine/video-to-video-lip-sync",
  "input": {
    "mode": "lite",
    "video_url": "https://your-domain.com/video/example.mp4",
    "audio_url": "https://your-domain.com/audio/speech.mp3",
    "separate_vocal": false,
    "open_scenedet": false,
    "align_audio": true,
    "align_audio_reverse": false,
    "templ_start_seconds": 0
  },
  "callBackUrl": "https://your-domain.com/api/callback"
}

Response ​

200 — Request successful ​

json
{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "task_volcengine-video-to-video-lip-sync_1234567890"
  }
}

Callback ​

videoTaskCompleted ​

Callback URL: {request.body#/callBackUrl} (the callBackUrl in the request body).

The system sends this callback when the volcengine/video-to-video-lip-sync task succeeds or fails.

Callback body parameters

参数类型必填说明
codeinteger是Unified callback code: 200 for success, 501 for failure. Allowed values:200 / 501。 示例:200。
msgstring是Unified callback message. Allowed values:Playground task completed successfully. / Playground task failed.。 示例:Playground task completed successfully.。
dataobject是—
  data.taskIdstring是The unique task identifier.
  data.modelstring是The model used for the task. Allowed values:volcengine/video-to-video-lip-sync。 示例:volcengine/video-to-video-lip-sync。
  data.statestring是Terminal task state. Allowed values:success / fail。 示例:success。
  data.paramstring是JSON string containing the submitted task parameters.
  data.resultJsonstring否JSON string containing resultUrls, firstFrameUrl, lastFrameUrl, or resultObject when successful. Present only when state is success.
  data.failCodestring否Failure code, a numeric string such as "400" or "500". Present only when state is fail.
  data.failMsgstring否Failure reason. Present only when state is fail.
  data.costTimeinteger否Processing time in seconds. Present on both success and failure callbacks.
  data.completeTimeinteger否Task completion timestamp.
  data.createTimeinteger否Task creation timestamp.
  data.updateTimeinteger否Use completeTime as the completion time; updateTime may equal createTime.
  data.creditsConsumednumber否Credits consumed by the task; 0 for failed tasks.

Task completed successfully

json
{
  "code": 200,
  "msg": "Playground task completed successfully.",
  "data": {
    "taskId": "task_example_video_webhook_001",
    "model": "volcengine/video-to-video-lip-sync",
    "state": "success",
    "param": "{\"input\":\"{\\\"mode\\\":\\\"lite\\\",\\\"video_url\\\":\\\"https://example.com/input-video.mp4\\\",\\\"audio_url\\\":\\\"https://example.com/input-audio.mp3\\\",\\\"separate_vocal\\\":false,\\\"open_scenedet\\\":false,\\\"align_audio\\\":true,\\\"align_audio_reverse\\\":false,\\\"templ_start_seconds\\\":0}\",\"callBackUrl\":\"https://example.com/callback\",\"model\":\"volcengine/video-to-video-lip-sync\"}",
    "resultJson": "{\"resultUrls\":[\"https://example.com/generated-video.mp4\"]}",
    "costTime": 12,
    "completeTime": 1234567890,
    "createTime": 1234560000,
    "updateTime": 1234567890,
    "creditsConsumed": 1.23
  }
}

Task failed

json
{
  "code": 501,
  "msg": "Playground task failed.",
  "data": {
    "taskId": "task_example_video_webhook_001",
    "model": "volcengine/video-to-video-lip-sync",
    "state": "fail",
    "param": "{\"input\":\"{\\\"mode\\\":\\\"lite\\\",\\\"video_url\\\":\\\"https://example.com/input-video.mp4\\\",\\\"audio_url\\\":\\\"https://example.com/input-audio.mp3\\\",\\\"separate_vocal\\\":false,\\\"open_scenedet\\\":false,\\\"align_audio\\\":true,\\\"align_audio_reverse\\\":false,\\\"templ_start_seconds\\\":0}\",\"callBackUrl\":\"https://example.com/callback\",\"model\":\"volcengine/video-to-video-lip-sync\"}",
    "failCode": "400",
    "failMsg": "<error detail>",
    "costTime": 12,
    "creditsConsumed": 0
  }
}

ModelFold — one API for all the best AI models.