Pricing
Compare models →Pricing is based on the source video duration and selected resolution.
| Resolution | Price per Second |
|---|---|
| 480p | $0.05 |
| 768p | $0.10 |
| 1080p | $0.12 |
| 2K | $0.14 |
| 4K | $0.18 |
Example Costs
| Configuration | Price |
|---|---|
| 10s at 480p | $0.50 |
| 10s at 768p | $1.00 |
| 10s at 1080p | $1.20 |
| 10s at 2K | $1.40 |
| 10s at 4K | $1.80 |
The number of reference images, prompt, save_audio, and ignore_audio do not add separate charges.
Input schema
| Parameter | Type | Description |
|---|---|---|
videoRequired | string | Source video URL (MP4, MOV or WebM, 1 to 120 seconds, up to 8K, aspect ratio between 1:4 and 4:1). Longer videos are trimmed to 120 seconds. |
imagesRequired | array | One or two reference photo URLs, one per person to replace. Use prompt to specify who replaces whom; without a prompt, two photos are matched from left to right.Items: 1–2JSON schema{
"items": {
"type": "string"
}
} |
prompt | string | Optional instruction, such as who replaces whom when the video has several people.JSON schema{
"x-rows": 3
} |
resolution | string | Output video resolution. 1080p, 2k and 4k are upscaled from 768p.480p768p1080p2k4k"768p" |
save_audio | boolean | Keep the source soundtrack in the output.Default: true |
ignore_audio | boolean | Generate without listening to the source audio; lip movements will not follow it. With save_audio enabled, the soundtrack is still added to the output.Default: false |
seed | integer | Random seed for reproducible results. |
README
Pruna AI P-Video-2 Pro Replace
Pruna AI P-Video-2 Pro Replace replaces one or two people in an existing video using reference photos while preserving the source motion, camera movement, timing, and soundtrack. Lip movements follow the original audio unless ignore_audio is enabled.
Why Choose This?
- Character replacement — Replace one or two people in an existing video using reference photos.
- Performance preserved — Keep the source motion, camera movement, timing, and framing.
- Audio-aware lip movement — Lip movements follow the source audio by default.
- Original soundtrack preserved — Keep the source audio in the final video with
save_audio.
- Up to 120 seconds — Process source videos from
1to120seconds.
- Up to 4K output — Choose
480p,768p,1080p,2k, or4k.
Parameters
| Parameter | Required | Description |
|---|---|---|
| video | Yes | Source video URL. Supports MP4, MOV, and WebM from 1 to 120 seconds, with an aspect ratio between 1:4 and 4:1. Longer videos are limited to the first 120 seconds. |
| images | Yes | 1 or 2 reference image URLs, one for each person to replace. |
| prompt | No | Optional instructions describing who should be replaced, especially when multiple people appear in the video. |
| resolution | No | Output resolution: 480p, 768p, 1080p, 2k, or 4k. Default: 768p. 1080p, 2k, and 4k are upscaled from 768p. |
| save_audio | No | Preserve the source video's soundtrack in the output. Default: true. |
| ignore_audio | No | Ignore the source audio when generating lip movement. Default: false. The soundtrack can still be preserved when save_audio=true. |
| seed | No | Optional random seed for reproducible generation. |
How to Use
- Upload a source video — Provide the video containing the person or people you want to replace.
- Add reference photos — Upload one photo per person to replace.
- Add a prompt optional — Describe who should be replaced when multiple people appear.
- Choose a resolution — Select
480p,768p,1080p,2k, or4k.
- Configure audio optional — Choose whether to preserve or use the source audio during generation.
- Submit — Generate and retrieve the replaced video.
When replacing two people, use prompt to clarify which reference image corresponds to which person. Without a prompt, the reference images are matched from left to right.
Pricing
Pricing is based on the source video duration and selected resolution.
| Resolution | Price per Second |
|---|---|
| 480p | $0.05 |
| 768p | $0.10 |
| 1080p | $0.12 |
| 2K | $0.14 |
| 4K | $0.18 |
Example Costs
| Configuration | Price |
|---|---|
| 10s at 480p | $0.50 |
| 10s at 768p | $1.00 |
| 10s at 1080p | $1.20 |
| 10s at 2K | $1.40 |
| 10s at 4K | $1.80 |
The number of reference images, prompt, save_audio, and ignore_audio do not add separate charges.
Best Use Cases
- Character replacement — Replace actors or people while preserving the original performance.
- Creative recasting — Reuse existing footage with different character appearances.
- Marketing content — Adapt existing video performances with new people.
- Social content — Create alternate character versions of existing clips.
- Multi-person replacement — Replace up to two people within the same source video.
Pro Tips
- Use clear reference photos with the subject's face easily visible.
- Choose source footage where the people being replaced remain clearly visible.
- Use
promptwhen several people appear and the replacement order may be ambiguous.
- Keep
ignore_audio=falsewhen lip movements should follow the source speech.
- Use
save_audio=truewhen the original soundtrack should remain in the final result.
- Use a fixed seed when comparing different settings or reference images.
Notes
videoandimagesare required.
- Supports
1or2reference images.
- Source videos can be up to
120seconds.Longer source videos use only the first120seconds.
- Supported source formats include MP4, MOV, and WebM.
- Source aspect ratio must be between
1:4and4:1.
- When
ignore_audio=false, lip movements follow the source audio.
- When
ignore_audio=true, lip movement is generated without using the source audio.
Related Models
- P-Video Replace — Replace people in existing videos using reference images.
- P-Video Upscale — Increase the resolution of existing videos while preserving their framing and soundtrack.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Pruna P-Video-2-Pro Replace Video Character Swap API example
The catalog lists POST https://api.opensi.com.ai/api/v3/pruna-ai/p-video-2-pro/replace for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"video": "https://static.website-files.org/assets/video-generator/landing/showcase/01-b2f9ad31587b.mp4",
"images": [
"https://d5v2vcqcwe9y5.cloudfront.net/image-to-video/251118/6784e7f4b50aebc7e17fe396/92v6kbln5iw9.jpg"
],
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"resolution": "768p",
"save_audio": true,
"ignore_audio": false,
"seed": 0
}Pruna P-Video-2-Pro Replace Video Character Swap API — Frequently asked questions
What is the P Video 2 Pro Replace API?
P Video 2 Pro Replace is a Pruna Ai model for video editing, exposed as a REST API on OpenSIAI. Pruna AI P-Video-2-Pro Replace swaps the person in a video for the person in one or two reference photos while keeping the motion, camera and soundtrack, with lips following the original audio. Supports 1 to 120 second videos and up to 4K output. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the P Video 2 Pro Replace API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/pruna-ai/p-video-2-pro/replace.
How much does P Video 2 Pro Replace cost per run or per second?
P Video 2 Pro Replace starts at $0.1 per run or per second. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
What inputs does P Video 2 Pro Replace accept?
Key inputs: prompt, images, video, resolution, seed, ignore_audio. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/pruna-ai/p-video-2-pro/replace.
How long does P Video 2 Pro Replace take to generate?
Reported generation time on OpenSIAI is around 175 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. live status is visible in the prediction record.
Can I use P Video 2 Pro Replace outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (Pruna Ai). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.