PopNowAPI Docs
Main content

ByteDance Lip Sync API reference

Re-voice a clip with a new track, with a fast mode for single faces

Call ByteDance Lip Sync from your own code with one PopNow API key. Below are the exact model IDs to send, every input field the model accepts, what each request costs in USD, and a request you can paste into a terminal.

At a glance

Made by
ByteDance
Output
Video
From
$0.052 USD per second of output
Typical time
about 76 s

Prices are in USD, charged to your PopNow balance. A task reserves the maximum possible charge when accepted and settles actual usage on completion; any remainder is released. Failed tasks are not charged. Call POST /api/v1/jobs/quote for an exact quote before running.

Lip Sync

bytedance/lip-sync/lip-sync

Price

OptionUSD
Default$0.052 per second of output

Parameters

FieldTypeDefaultAllowedWhat it does
video_urlRequiredstring (uri)——Required MOV, MP4, or MKV URL for either mode: 360p–1080p, 24–60 fps, 1–30 Mbps; H.264 recommended. Above 1080p is reduced; below 360p is rejected. No default; audio sets billing.
audio_urlRequiredstring (uri)——Required clean-speech URL: MP3/WAV/AAC/M4A/OGG, up to 10 MB, longer than 1 s. Lite accepts up to 240 s; Basic up to 210 s. No default; its duration rounds up to billed seconds.
generation_modeOptionalstringlitelite, basicChoose lite for a frontal single speaker or basic for complex single-speaker scenes. Default: lite; both modes use the same audio-second rate.
remove_background_noiseOptionalboolean——Boolean for Lite: separate background sound from the driving voice. Default: false; omit for Basic. It does not change the audio-second rate.
scene_detectionOptionalboolean——Boolean for Basic: detect scene boundaries and identify the speaker. Default: false; omit for Lite. The audio-second rate is unchanged.
loop_videoOptionalboolean——Boolean for Lite: repeat video when the recording is longer. Default: true; omit for Basic. Billing continues to count uploaded audio seconds.
loop_reverseOptionalboolean——Boolean for Lite with loop_video enabled: alternate forward and reverse playback. Default: false; omit for Basic. No change to audio-based billing.
video_start_secondsOptionalnumber—0 to 3600Number for Lite: the second in the source video where picture playback begins. Default: 0; omit for Basic. The start position does not change billed audio seconds.

Example request

This request runs as it is; any field you leave out uses its default. Put your key in POPNOW_API_KEY first.

The example uses PopNow sample files in audio_url, video_url. Replace them with your own public HTTPS links, uploads or saved assets.

POST /api/v1/jobs/createTask
curl -X POST "https://api.popnow.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $POPNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "bytedance/lip-sync/lip-sync",
  "input": {
    "video_url": "https://media.popnow.ai/effects/flower-bloom-1abd6efb.mp4",
    "audio_url": "https://media.popnow.ai/shortfilm/voices/Aoede-46e4c427.mp3"
  }
}'

The response carries a taskId straight away. Read the result with GET /api/v1/jobs/recordInfo, or add callBackUrl to be notified.

GET /api/v1/jobs/recordInfo
curl "https://api.popnow.ai/api/v1/jobs/recordInfo?taskId=TASK_ID_FROM_CREATE_TASK" \
  -H "Authorization: Bearer $POPNOW_API_KEY"

Next steps

On this page