p-video-2-pro-lipsync
Dub an existing talking video to new speech using Pruna’s p-video-2-pro-lipsync.
Give it a video of someone talking and an audio file with the new line. It returns an MP4 at 24 fps where the mouth follows that audio. Only the lower face is repainted. The framing, background, body, and everything outside the mouth area stay the original video. The soundtrack you send replaces the original audio, so mix in any music or sound effects first. Videos run up to 60 seconds. The output keeps the source resolution and aspect ratio, up to 1080p. The length is the shorter of the video and the audio.
prunaai/p-video-2-pro-avatar builds a talking video from a still. Use p-video-2-pro-lipsync when you already have footage and need a new line, a fix, or another language on the same take.
How it works
The model takes:
- A
videowith a visible face that sets the person, framing, background, and resolution. - An
audiofile with the new speech that sets what the mouth should say, and helps set the length. - An optional
seedfor reproducible runs, plus a safety setting.
It returns the same scene with the mouth re-synced to your audio.
There is no prompt. One clear face on screen works best. Any language works: the mouth follows the audio you send.
Inputs
video(required): source talking clip with a visible face. Up to 200 MB. Frames larger than 1920 px on the long side are scaled down. The output keeps this resolution and aspect ratio, up to 1080p.audio(required): the new speech, in any language. Up to 64 MB. This replaces the original soundtrack. The output is as long as the shorter of the video and the audio, up to 60 seconds. Audio longer than the video is cut. Inputs under 0.9 seconds are rejected.seed: set a seed to get the same result again.enable_safety_filter: check your inputs against the content policy (default off). When it is off, the model still blocks sexual content involving minors and self-harm.
Tips
- Use a close-up or medium shot with one clear face. Wide full-body shots with a small face can fail with no face found and are not billed.
- Prefer a single speaker without cuts or long head turns inside the clip.
- Match the voice in
audioto the person on screen. The voice in the output is the voice in your audio file. - Trim the longer input if you need an exact length. The shorter of video and audio wins, capped at 60 seconds.
- Mix music or effects into
audiobefore you run: the model does not keep the source soundtrack. - Fix
seedwhen you A/B languages or line variants on the same clip. Change one input at a time. - For a new talking clip from a photo instead of existing footage, use prunaai/p-video-2-pro-avatar.
Pricing
You pay a flat $0.025 per second of output video at every resolution, billed in whole seconds with a minimum of 1 second. Part seconds round up: a 10.2 second video is billed as 11 seconds. A 10 second video is $0.25 and a 60 second video is $1.50. A video in which no face is found fails and is not billed. A 5 second clip takes about 14 seconds end to end. A 15 second clip at 1080p takes about 40 seconds.
Resources
Docs: https://docs.api.pruna.ai/guides/models/p-video-2-pro-lipsync