---
title: P-Video-2-Pro-Replace | Runware Docs
url: https://runware.ai/docs/models/prunaai-p-video-2-pro-replace
description: Replace one or two people in an existing video from a photo, keeping motion, camera, and lip sync
---
# P-Video-2-Pro-Replace

![P-Video-2-Pro-Replace](https://assets.runware.ai/covers/prunaai-p-video-2-pro-replace.jpg)

P-Video-2-Pro-Replace is Pruna AI's character replacement model that puts the person from one or two photos into an existing video. It keeps the original camera, background, timing, and motion, carries over the source soundtrack with lips that follow it, and replaces two people at once with a prompt that says who replaces whom. It takes source clips from 1 second to 2 minutes and outputs from 480p up to 4K, for UGC ad variations, localized spokesperson videos, and recasting existing footage.

- **Status**: live
- **ID**: `prunaai:p-video@2-pro-replace`
- Try in Playground
- **Creator**: Pruna AI
- **Release Date**: November 5, 2026
- **Capabilities**: Image to Video, Video to Video, Edit, Checkpoint, Audio

## Pricing

$0.025 $0.05 from, per second · ~1m 52s per request

**Rates** (per second)

- 480p: `$0.025 $0.05`
- 768p: `$0.05 $0.10`
- 1080p: `$0.06 $0.12`
- 2K: `$0.07 $0.14`
- 4K: `$0.09 $0.18`

**4 example generations**

- [two-person-replacement](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace/examples#example-museum-training-cast-continuity-fix): `$0.35` (~1m 28s)
- [two-person-replacement](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace/examples#example-period-wharf-crew-cleanup): `$0.35` (~1m 42s)
- [video-edit](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace/examples#example-community-observatory-logo-bumper) · 1080p: `$0.42` (~2m 1s)
- [video-edit](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace/examples#example-mushroom-farm-sensor-explainer) · 1080p: `$0.42` (~2m 28s)

times vary, measured end to end · [How pricing works](https://runware.ai/docs/models-api/pricing)

## Request Parameters

**API Options**

Platform-level options for task execution and delivery.

### [taskType](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#request-tasktype)

- **Type**: `string`
- **Required**: true
- **Value**: `videoInference`

Identifier for the type of task being performed.

### [taskUUID](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#request-taskuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.

### [outputType](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#request-outputtype)

- **Type**: `string`
- **Default**: `URL`

Video output type.

**Allowed values**: `URL`

### [outputFormat](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#request-outputformat)

- **Type**: `string`
- **Default**: `MP4`

Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.

- \`MP4\`: Widely supported video container (H.264), recommended for general use.
- \`WEBM\`: Optimized for web delivery.
- \`MOV\`: QuickTime format, common in professional workflows (Apple ecosystem).

**Allowed values**: `MP4` `WEBM` `MOV`

### [outputQuality](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#request-outputquality)

- **Type**: `integer`
- **Min**: `20`
- **Max**: `99`
- **Default**: `95`

Compression quality of the output. Higher values preserve quality but increase file size.

### [webhookURL](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#request-webhookurl)

- **Type**: `string`
- **Format**: `uri`

Webhook URL that receives JSON responses via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.

**Learn more** (1 resource):

- [Webhooks](https://runware.ai/docs/models-api/webhooks) (platform)

### [deliveryMethod](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#request-deliverymethod)

- **Type**: `string`
- **Default**: `async`

Determines how the API delivers task results.

**Allowed values**:

- `sync` Returns results directly in the API response. Over HTTP, a task still running after 120 seconds continues as an async task and comes back with status 'processing'. Poll for its results using getResponse.
- `async` Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse.

**Learn more** (1 resource):

- [Task Polling](https://runware.ai/docs/models-api/task-polling) (platform)

### [uploadEndpoint](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#request-uploadendpoint)

- **Type**: `string`
- **Format**: `uri`

Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.

**Common use cases:**

- **Cloud storage**: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.
- **CDN integration**: Upload to content delivery networks for immediate distribution.

```text
// S3 presigned URL for secure upload
https://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600

// Google Cloud Storage presigned URL
https://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789

// Custom storage endpoint
https://storage.example.com/uploads/generated-image.jpg
```

The content data will be sent as the request body to the specified URL when generation is complete.

### [safety](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#request-safety)

- **Path**: `safety.checkContent`
- **Type**: `object (2 properties)`

Content safety checking configuration for video generation.

#### [checkContent](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#request-safety-checkcontent)

- **Path**: `safety.checkContent`
- **Type**: `boolean`

Enable or disable content safety checking. Increases total generation time.

#### [mode](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#request-safety-mode)

- **Path**: `safety.mode`
- **Type**: `string`
- **Default**: `fast`

Safety checking mode for video generation.

**Allowed values**:

- `fast` Checks key frames.
- `full` Checks all frames.

### [ttl](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#request-ttl)

- **Type**: `integer`
- **Min**: `60`

Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.

### [includeCost](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#request-includecost)

- **Type**: `boolean`

Include task cost in the response.

### [numberResults](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#request-numberresults)

- **Type**: `integer`
- **Min**: `1`
- **Max**: `4`
- **Default**: `1`

Number of results to generate. Each result uses a different seed, producing variations of the same parameters.

**Inputs**

Input resources for the task (images, audio, etc). These must be nested inside the \`inputs\` object.

### [referenceImages](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#request-inputs-referenceimages)

- **Path**: `inputs.referenceImages`
- **Type**: `array of strings`
- **Required**: true
- **Min items**: `1`
- **Max items**: `2`

List of reference images (UUID, URL, Data URI, or Base64). One image per person to replace, matched to the people in the video from left to right unless `positivePrompt` says otherwise.

### [video](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#request-inputs-video)

- **Path**: `inputs.video`
- **Type**: `string`
- **Required**: true
- **Duration**: `1s to 120s`
- **Aspect ratio**: `1:4 to 4:1`
- **Area**: `up to 33.18 MP`

Video input (UUID or URL). The output keeps the source length and aspect ratio, at 24 fps.

**Core Parameters**

Primary parameters that define the task output.

### [model](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#request-model)

- **Type**: `string`
- **Required**: true
- **Value**: `prunaai:p-video@2-pro-replace`

Send `auto` instead of an AIR identifier to have the model router choose the model for this task. The rest of the request is unchanged, every value you send is kept, and only the parameters you leave out are filled in. See [Model Router](https://runware.ai/docs/models-api/model-router).

**Learn more** (3 resources):

- [Text To Image: Model Selection](https://runware.ai/docs/learn/text-to-image#model-selection) (learn)
- [Image Inpainting: Model Specialized Inpainting Models](https://runware.ai/docs/learn/image-inpainting#model-specialized-inpainting-models) (learn)
- [Image Outpainting: Other Critical Parameters](https://runware.ai/docs/learn/image-outpainting#other-critical-parameters) (learn)

### [positivePrompt](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#request-positiveprompt)

- **Type**: `string`
- **Min**: `1`
- **Max**: `4000`

Instruction for who replaces whom, or how to place the new person.

**Learn more** (1 resource):

- [Prompts](https://runware.ai/docs/learn/prompts) (learn)

### [resolution](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#request-resolution)

- **Type**: `string`
- **Default**: `768p`

Resolution preset for the output. When used with input media, automatically matches the aspect ratio from the input. Resolutions above `768p` are generated at 768p and upscaled.

**Allowed values**: `480p` `768p` `1080p` `2k` `4k`

**Settings**

Technical parameters to fine-tune the inference process. These must be nested inside the \`settings\` object.

### [preserveAudio](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#request-settings-preserveaudio)

- **Path**: `settings.preserveAudio`
- **Type**: `boolean`
- **Default**: `true`

Preserve the source video audio track in the output.

### [safetyFilter](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#request-settings-safetyfilter)

- **Path**: `settings.safetyFilter`
- **Type**: `boolean`
- **Default**: `true`

Content safety filtering.

### [sourceAudioSync](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#request-settings-sourceaudiosync)

- **Path**: `settings.sourceAudioSync`
- **Type**: `boolean`
- **Default**: `true`

Drive lip and motion sync from the source video audio. Independent of `preserveAudio`, which controls audio in the final output.

## Response Parameters

### [taskType](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#response-tasktype)

- **Type**: `string`
- **Required**: true
- **Value**: `videoInference`

Identifier for the type of task this response belongs to.

### [taskUUID](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#response-taskuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID v4 identifier echoed from the original request, used to match async responses to their tasks.

### [videoUUID](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#response-videouuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID of the output video.

### [videoURL](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#response-videourl)

- **Type**: `string`
- **Format**: `uri`

URL of the output video.

### [videoBase64Data](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#response-videobase64data)

- **Type**: `string`

Base64-encoded video data.

### [videoDataURI](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#response-videodatauri)

- **Type**: `string`
- **Format**: `uri`

Data URI of the output video.

### [seed](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#response-seed)

- **Type**: `integer`

The seed used for generation. If none was provided, shows the randomly generated seed.

### [NSFWContent](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#response-nsfwcontent)

- **Type**: `boolean`

Flag indicating if NSFW content was detected.

### [cost](https://runware.ai/docs/models/prunaai-p-video-2-pro-replace#response-cost)

- **Type**: `float`

Task cost in USD. Present when `includeCost` is set to `true` in the request.

## Examples

### video-edit (video-edit)

[Watch video](https://assets.runware.ai/examples/prunaai-p-video-2-pro-replace/8e0bd137-f8fb-4f3f-b43d-8f2ffa5e29f0.mp4)

```json
{
  "taskType": "videoInference",
  "taskUUID": "aaf64b15-01a7-4c96-970d-e3346886d517",
  "model": "prunaai:p-video@2-pro-replace",
  "positivePrompt": "Replace the sole male presenter in the source video with the woman from the reference photo. Preserve her facial identity, skin tone, short natural hair, and age consistently. Keep the source presenter's exact centered framing, body pose, head movement, warm expression, eye contact, gestures, timing, and lip movements synchronized to the original spoken line. Preserve the cobalt crewneck wardrobe, camera, lighting, navy background, acid-yellow orbital animation, stars, circular aperture symbol, NIGHTGLASS wordmark, graphic timing, and all other elements unchanged.",
  "resolution": "1080p",
  "inputs": {
    "video": "https://assets.runware.ai/assets/inputs/b6680187-da2c-4a1e-9975-e03246a68b71.mp4",
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/07bad793-8fd2-4149-b03b-ec17fa462df7.jpg"
    ]
  }
}
```

---

### video-edit (video-edit)

[Watch video](https://assets.runware.ai/examples/prunaai-p-video-2-pro-replace/1e0e8047-891b-456b-87fd-cba1b3bd5e21.mp4)

```json
{
  "taskType": "videoInference",
  "taskUUID": "39ecddba-24cf-4953-b6a3-1eb57c57eca7",
  "model": "prunaai:p-video@2-pro-replace",
  "positivePrompt": "Replace the single presenter in the source video with the woman from the reference photo. Preserve the original presenter’s exact framing, body position, cream coveralls, hand placement on the sensor probe, gestures, calm expert expression, eye line, and synchronized lip movement throughout. Keep the mushroom growing room, product, lighting, camera, timing, and all other visual details unchanged. The replacement should look photorealistic and naturally integrated in every frame.",
  "resolution": "1080p",
  "inputs": {
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/0b41e4db-e9d1-4edc-bd96-2745d40b6c29.jpg"
    ],
    "video": "https://assets.runware.ai/assets/inputs/038459ec-3b64-48e4-b500-e60709d30775.mp4"
  }
}
```

---

### two-person-replacement (two-person-replacement)

[Watch video](https://assets.runware.ai/examples/prunaai-p-video-2-pro-replace/09533c6e-e651-47ab-8a9f-c7327ca87c27.mp4)

```json
{
  "taskType": "videoInference",
  "taskUUID": "16389062-7f59-42d4-ac71-1bfc2691ea55",
  "model": "prunaai:p-video@2-pro-replace",
  "positivePrompt": "Continuity repair for a delivered museum training film. The first reference photo replaces the woman standing on the left in the source video. The second reference photo replaces the man standing on the right. Keep those assignments and left-right positions unchanged for the entire shot. Preserve the source camera, framing, laboratory background, conservation table, ceremonial robe, lighting, wardrobe, gloves, body motion, gestures, timing, and natural interaction. Preserve the original dialogue and room tone, with each replacement accurately lip-synced to the corresponding source speaker. Maintain stable, photorealistic identities across every frame, including during small head turns and conversation. This is an invisible cast-continuity fix, not a restaging or stylistic transformation.",
  "inputs": {
    "video": "https://assets.runware.ai/assets/inputs/35711cc0-5a18-4db8-b29c-385736e090c4.mp4",
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/0912159e-3a6b-40a5-a33a-b62c96b2d68c.jpg",
      "https://assets.runware.ai/assets/inputs/5c1975e7-e226-43fa-886a-afd215d36535.jpg"
    ]
  }
}
```

---

### two-person-replacement (two-person-replacement)

[Watch video](https://assets.runware.ai/examples/prunaai-p-video-2-pro-replace/231cc83d-4e11-4f07-9795-2d4551aad7aa.mp4)

```json
{
  "taskType": "videoInference",
  "taskUUID": "4883d146-c228-47cf-9d35-d1b9357f5a25",
  "model": "prunaai:p-video@2-pro-replace",
  "positivePrompt": "Clean up the period wharf footage by replacing both visible modern crew stand-ins. The woman from the first reference photo replaces the person on the left. The man from the second reference photo replaces the person on the right. Preserve their fixed left-right positions, original body motion, eyelines, conversational timing, facial performance, and lip synchronization. Carry the historically appropriate clothing and identities from the reference photos naturally into the shot. Keep the locked camera, damp wooden wharf, mooring ropes, fog, lantern light, wet surfaces, muted slate-blue and amber palette, and all background details unchanged. Remove all visual traces of the modern headsets, utility belts, and contemporary crew clothing through the replacements. Maintain realistic skin texture, period-film naturalism, consistent dawn lighting, clean temporal continuity, and the original soundtrack.",
  "inputs": {
    "video": "https://assets.runware.ai/assets/inputs/6808457c-a3b0-4ad8-ac79-b3278120b19a.mp4",
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/99ebaed0-18dc-4fea-ade5-dd295bb27107.jpg",
      "https://assets.runware.ai/assets/inputs/584390b4-547d-46a9-bb52-613380b14265.jpg"
    ]
  }
}
```