Nexus
All models
ByteDance Video Available

Video to Video Lip Sync

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.

Lip Sync Video to Video

From 400 credits (≈ ₹400.00) per request.

Parameters

ParameterTypeDescription
modeRequired string Service 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.
one of: "lite", "basic"
video_urlRequired string Video 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.
format: uri
audio_urlRequired string Target 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.
format: uri
separate_vocal boolean Enable vocal separation to suppress background noise. Default value: `false`.
default false
open_scenedet boolean Whether to enable scene segmentation and speaker identification. Supported only in Basic mode. Default value: `false`.
default false
align_audio boolean Supported in Lite mode. Whether to loop the video when the audio is longer than the video. Default value: `true`.
default true
align_audio_reverse boolean Supported in Lite mode. Whether to loop the video in reverse (backward). Requires `align_audio` to be set to `true`. Default value: `false`.
default false
templ_start_seconds number Supported in Lite mode. Start time of the template video, in seconds. Default value: `0`.
default 0

What you get back

Files arrive in output.files[] as private links that expire, with their type and size.

Use it from your code

# 1. Create the task
curl https://nexus.promptscenes.in/api/v1/tasks \
  -H "Authorization: Bearer $NEXUS_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "model": "video-to-video-lip-sync",
    "input": {
        "mode": "lite",
        "video_url": "https://example.com/input.png",
        "audio_url": "https://example.com/input.png",
        "separate_vocal": false,
        "open_scenedet": false,
        "align_audio": true,
        "align_audio_reverse": false,
        "templ_start_seconds": 0
    },
    "callback_url": "https://your-app.com/webhooks/nexus"
}'

# 2. Poll for the result
curl https://nexus.promptscenes.in/api/v1/tasks/TASK_ID \
  -H "Authorization: Bearer $NEXUS_API_KEY"
import os, time, uuid, requests

API = "https://nexus.promptscenes.in/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['NEXUS_API_KEY']}"}

task = requests.post(
    f"{API}/tasks",
    headers={**HEADERS, "Idempotency-Key": str(uuid.uuid4())},
    json={
        "model": "video-to-video-lip-sync",
        "input": {
            "mode": "lite",
            "video_url": "https://example.com/input.png",
            "audio_url": "https://example.com/input.png",
            "separate_vocal": False,
            "open_scenedet": False,
            "align_audio": True,
            "align_audio_reverse": False,
            "templ_start_seconds": 0,
        },
        "callback_url": "https://your-app.com/webhooks/nexus",
    },
).json()

while task["status"] not in ("succeeded", "failed", "cancelled"):
    time.sleep(3)
    task = requests.get(f"{API}/tasks/{task['id']}", headers=HEADERS).json()

print(task["status"], task.get("output"))
const API = "https://nexus.promptscenes.in/api/v1";
const headers = {
  Authorization: `Bearer ${process.env.NEXUS_API_KEY}`,
  "Content-Type": "application/json",
};

let task = await fetch(`${API}/tasks`, {
  method: "POST",
  headers: { ...headers, "Idempotency-Key": crypto.randomUUID() },
  body: JSON.stringify({
      "model": "video-to-video-lip-sync",
      "input": {
          "mode": "lite",
          "video_url": "https://example.com/input.png",
          "audio_url": "https://example.com/input.png",
          "separate_vocal": false,
          "open_scenedet": false,
          "align_audio": true,
          "align_audio_reverse": false,
          "templ_start_seconds": 0
      },
      "callback_url": "https://your-app.com/webhooks/nexus"
  }),
}).then((r) => r.json());

while (!["succeeded", "failed", "cancelled"].includes(task.status)) {
  await new Promise((r) => setTimeout(r, 3000));
  task = await fetch(`${API}/tasks/${task.id}`, { headers }).then((r) => r.json());
}
console.log(task.status, task.output);

Request

{
    "model": "video-to-video-lip-sync",
    "input": {
        "mode": "lite",
        "video_url": "https://example.com/input.png",
        "audio_url": "https://example.com/input.png",
        "separate_vocal": false,
        "open_scenedet": false,
        "align_audio": true,
        "align_audio_reverse": false,
        "templ_start_seconds": 0
    }
}

Response

{
    "id": "6f1c…",
    "object": "task",
    "model": "video-to-video-lip-sync",
    "status": "succeeded",
    "output": {
        "files": [
            {
                "url": "https://…signed…",
                "mime": "…",
                "size": 0
            }
        ]
    },
    "estimated_cost": "…",
    "charged": "…"
}