---
title: P-Video-Replace | Runware Docs
url: https://runware.ai/docs/models/prunaai-p-video-replace
description: Character replacement for existing video using a reference image while preserving motion, timing, camera, and scene
---
# P-Video-Replace

P-Video-Replace is a video transformation model that swaps the on-camera character in an existing video with the character from a reference image. It is built to preserve the original motion, timing, camera behavior, lighting, and background while changing who appears in the clip, making it useful for UGC ad variations, content localization, avatar or mascot insertion, and other scalable character-replacement workflows.

- **ID**: `prunaai:p-video@replace`
- **Status**: live
- **Creator**: Pruna AI
- **Release Date**: June 4, 2026
- **Capabilities**: Image to Video, Video to Video, Edit, Checkpoint

## Pricing

Pricing starts at $0.03 per second of output at 720p and $0.06 at 1080p

- **720p . 1s**: `$0.03`
- **1080p . 1s**: `$0.06`

## Compatibility & Validation

When `resolution` is provided, `inputs.referenceImages` or `inputs.video` is required.

## Request Parameters

**API Options**

Platform-level options for task execution and delivery.

### [taskType](https://runware.ai/docs/models/prunaai-p-video-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-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-replace#request-outputtype)

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

Video output type.

**Allowed values**: `URL`

### [outputFormat](https://runware.ai/docs/models/prunaai-p-video-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-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-replace#request-webhookurl)

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

Specifies a webhook URL where JSON responses will be sent 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/platform/webhooks) (platform)

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

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

Determines how the API delivers task results.

**Allowed values**:

- `async` Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse. Required for long-running tasks like video generation.

**Learn more** (1 resource):

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

### [uploadEndpoint](https://runware.ai/docs/models/prunaai-p-video-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-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-replace#request-safety-checkcontent)

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

Enable or disable content safety checking.

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

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

Safety checking mode for video generation.

**Allowed values**:

- `none` Disables checking.
- `fast` Checks key frames.
- `full` Checks all frames.

### [ttl](https://runware.ai/docs/models/prunaai-p-video-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-replace#request-includecost)

- **Type**: `boolean`

Include task cost in the response.

### [numberResults](https://runware.ai/docs/models/prunaai-p-video-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-replace#request-inputs-referenceimages)

- **Path**: `inputs.referenceImages`
- **Type**: `array of strings`
- **Required**: true

List of reference images (UUID, URL, Data URI, or Base64).

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

- **Path**: `inputs.video`
- **Type**: `string`
- **Required**: true

Video input (UUID or URL).

**Core Parameters**

Primary parameters that define the task output.

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

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

Identifier of the model to use for generation.

**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-replace#request-positiveprompt)

- **Type**: `string`
- **Max**: `2048`

Text prompt describing elements to include in the generated output.

**Learn more** (1 resource):

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

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

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

Resolution preset for the output. When used with input media, automatically matches the aspect ratio from the input.

**Allowed values**: `720p` `1080p`

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

- **Type**: `integer`

Frames per second for video generation. Higher values create smoother motion but require more processing time.

**Allowed values**: `24` `48`

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

- **Type**: `integer`
- **Min**: `0`
- **Max**: `2147483647`

Random seed for reproducible generation. When not provided, a random seed is generated in the unsigned 32-bit range.

**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-replace#request-settings-preserveaudio)

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

Preserve the source video audio track in the output.

### [sourceAudioSync](https://runware.ai/docs/models/prunaai-p-video-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.

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

- **Path**: `settings.turbo`
- **Type**: `boolean`

Enable turbo mode for faster generation. May reduce subtle details in complex tasks.

## Response Parameters

### [taskType](https://runware.ai/docs/models/prunaai-p-video-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-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-replace#response-videouuid)

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

UUID of the output video.

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

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

URL of the output video.

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

- **Type**: `string`

Base64-encoded video data.

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

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

Data URI of the output video.

### [seed](https://runware.ai/docs/models/prunaai-p-video-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-replace#response-nsfwcontent)

- **Type**: `boolean`

Flag indicating if NSFW content was detected.

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

- **Type**: `float`

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

## Examples

### Tailored Blazer Talking Clip (Edit)

[Watch video](https://assets.runware.ai/examples/prunaai-p-video-replace/0d5c9ace-a9e0-4302-839d-00520e9d8a85.mp4)

---

### Blue-Haired Talking Presenter Swap (Video to Video)

[Watch video](https://assets.runware.ai/examples/prunaai-p-video-replace/cd2cdaae-82ad-4848-a3bf-76c3616a9d22.mp4)

---

### Commuter Sedan Supercar Swap (Video to Video)

[Watch video](https://assets.runware.ai/examples/prunaai-p-video-replace/96846d4c-d45e-48fe-841a-bb934fd3ec14.mp4)

---

### Three Avatar Conversation Panel (Video to Video)

[Watch video](https://assets.runware.ai/examples/prunaai-p-video-replace/15ee693c-e25a-4df1-955a-cfd9ccc39313.mp4)