P-Video-2-Pro-Lipsync

P-Video-2-Pro-Lipsync is Pruna AI's lip-sync model that takes a video of someone talking and a new audio track, and returns the same video with the mouth re-synced to the new words. Only the lower face is redrawn, so the speaker, framing, camera and background stay as shot, and the output keeps the source resolution and aspect ratio up to 1080p, as long as the shorter input up to 60 seconds. It follows speech in any language, for dubbing talking-head videos, ads and courses, or changing a line without a reshoot.

Complete technical specification for integration
Ready-to-use code snippets for common workflows
Step-by-step tutorials for advanced use cases
← All GuidesPreparing source video
How to choose the video for Pruna P-Video-2-Pro-Lipsync: the shape and size the output keeps, the 1080p cap and 24 fps delivery, and the framing the model needs.
Introduction
The video you send sets the shot in P-Video-2-Pro-Lipsync. The output keeps its framing, its aspect ratio and its resolution up to 1080p, and the model redraws the mouth to the new speech:
- Source video
A sneaker reseller, a man in his early twenties with short twists, in a plain unprinted gray hoodie, sits in his bright stockroom holding a plain all-white knit running shoe with a solid mint-green sole up beside his face and says to the camera, "Okay, these just dropped, and the colorway is even better in person." Square social video framing, close-up from the chest up, locked-off camera, shelves of plain brown shoe boxes softly out of focus behind him, soft even light. Photoreal creator commerce clip, no text, no logos. Audio: his excited clear voice close to the microphone, no music.
- New audio0:00
These restocked in every size this morning, and they ship today.
This guide covers what the output keeps from the video, and the framing that gives the model a face to work with.
Shape and size
The output keeps the aspect ratio of the source, with nothing to set. A vertical creator clip comes back vertical, at the size it was sent:
A travel creator, a woman in her thirties with shoulder-length curly black hair, in a white linen shirt, stands on a hotel balcony with the sea behind her and says to the camera, "This is the view from our room, and breakfast is served right out here." Vertical phone framing, chest-up, handheld with very slight movement, bright morning light. Photoreal hotel social video, no text, no logos. Audio: her cheerful clear voice close to the microphone, light sea breeze, no music.
The handheld drift and the sea behind her come from the source. Only her mouth follows the new line, so crop and frame the video before the request, since the model keeps whatever it is given.
Resolution and frame rate
A source above 1080p is scaled down to 1920 px on its long side, and every output is delivered at 24 fps, whatever the frame rate of the source. The dealership clip below was sent at 4K and 30 fps:
- 4K source
- New audio0:00
Test drives are open all weekend, with no appointment needed.
import { createClient } from '@runware/sdk'
const client = await createClient({ apiKey: process.env.RUNWARE_API_KEY })
await client.connect()
const [result] = await client.run({
model: 'prunaai:p-video@2-pro-lipsync',
inputs: {
video: 'https://assets.runware.ai/guides/prunaai-p-video-2-pro-lipsync/source-video/source-showroom-4k.mp4',
audio: 'https://assets.runware.ai/guides/prunaai-p-video-2-pro-lipsync/source-video/speech-showroom.mp3'
},
deliveryMethod: 'async'
})import asyncio
import os
from runware import Runware
async def main():
async with Runware(api_key=os.environ["RUNWARE_API_KEY"]) as client:
results = await client.run({
"model": "prunaai:p-video@2-pro-lipsync",
"inputs": {
"video": "https://assets.runware.ai/guides/prunaai-p-video-2-pro-lipsync/source-video/source-showroom-4k.mp4",
"audio": "https://assets.runware.ai/guides/prunaai-p-video-2-pro-lipsync/source-video/speech-showroom.mp3"
},
"deliveryMethod": "async"
})
asyncio.run(main())curl https://api.runware.ai/v1 \
-H "Authorization: Bearer $RUNWARE_API_KEY" \
-H "Content-Type: application/json" \
-d '[
{
"taskType": "videoInference",
"taskUUID": "069e729c-6659-439f-bdcd-05c4cb98db63",
"model": "prunaai:p-video@2-pro-lipsync",
"inputs": {
"video": "https://assets.runware.ai/guides/prunaai-p-video-2-pro-lipsync/source-video/source-showroom-4k.mp4",
"audio": "https://assets.runware.ai/guides/prunaai-p-video-2-pro-lipsync/source-video/speech-showroom.mp3"
},
"deliveryMethod": "async"
}
]'runware run prunaai:p-video@2-pro-lipsync \
inputs.video=https://assets.runware.ai/guides/prunaai-p-video-2-pro-lipsync/source-video/source-showroom-4k.mp4 \
inputs.audio=https://assets.runware.ai/guides/prunaai-p-video-2-pro-lipsync/source-video/speech-showroom.mp3 \
deliveryMethod=async{
"taskType": "videoInference",
"taskUUID": "069e729c-6659-439f-bdcd-05c4cb98db63",
"model": "prunaai:p-video@2-pro-lipsync",
"inputs": {
"video": "https://assets.runware.ai/guides/prunaai-p-video-2-pro-lipsync/source-video/source-showroom-4k.mp4",
"audio": "https://assets.runware.ai/guides/prunaai-p-video-2-pro-lipsync/source-video/speech-showroom.mp3"
},
"deliveryMethod": "async"
}Response
[
{
"taskType": "videoInference",
"taskUUID": "069e729c-6659-439f-bdcd-05c4cb98db63",
"videoUUID": "f11f63c5-5d16-46e1-a2db-ec5ab39aaf5b",
"videoURL": "https://vm.runware.ai/video/os/a14d18/ws/2/vi/f11f63c5-5d16-46e1-a2db-ec5ab39aaf5b.mp4"
}
]The three clips in this guide came back at these sizes:
| Source | Output |
|---|---|
| 768 × 768, square | 768 × 768 |
| 768 × 1344, vertical | 768 × 1344 |
| 3808 × 2176 at 30 fps, landscape | 1920 × 1098 at 24 fps |
A video must be at most 100 MiB, so a long 4K export can be rejected for its size where a 1080p export of the same take fits, and both come back at the same 1920 px.
Framing
The model needs a face it can find: one person speaking, with the face clearly visible, from a close-up to a medium shot. The reseller and the salesman are both framed from the chest up, facing the lens.
It is built for one visible speaker per clip. Cut a scene with two people talking into shots that each show one speaker, and send each shot with its own line.
A video with no face the model can find fails, and the failed task is not billed. A wide shot where the speaker is small in the frame can fail the same way.
Tips
-
Frame the shot before the request. The output keeps the source's crop, aspect ratio and camera, so fix those in the edit first.
-
Export at 1080p or below. A larger source comes back at 1920 px on the long side, and the file has to stay under 100 MiB.
-
Keep one face in frame. Close-ups and medium shots of one speaker facing the camera give the model a face to follow.
-
Trim the source to the spoken part. The output stops with the shorter of the two inputs, and Preparing the audio covers how that length is set.