---
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
- **Release Date**: June 4, 2026
- **Capabilities**: Image to Video, Video to Video, Edit

## 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`

## 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`
- **Default**: `false`

Enable or disable content safety checking. When enabled, defaults to `fast` mode.

#### [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`
- **Default**: `false`

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.

### [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.

### [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`
- **Default**: `false`

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`

Type of the task.

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

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

UUID of the task.

### [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

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

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

**Request**:

```json
{
  "taskType": "videoInference",
  "taskUUID": "654aba74-cc4e-432a-9aa1-eb1905e82c28",
  "model": "prunaai:p-video@replace",
  "positivePrompt": "Replace the ordinary sedan in the source driving footage with the red supercar from the reference image. Keep the original camera movement, road layout, background vehicles, sunlight direction, reflections, shadows, timing, and vehicle motion intact. The result should look like the supercar was actually filmed in the same scene, with consistent scale, wheel rotation, perspective, and natural contact shadows.",
  "resolution": "720p",
  "fps": 24,
  "seed": 60016,
  "settings": {
    "preserveAudio": true,
    "sourceAudioSync": false,
    "turbo": false
  },
  "inputs": {
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/08ea67b9-715d-4f55-98ed-2a9f1d5df85d.jpg"
    ],
    "video": "https://assets.runware.ai/assets/inputs/9f402c3f-66bd-4208-8948-f08d9f6160ae.mp4"
  }
}
```

**Response**:

```json
{
  "taskType": "videoInference",
  "taskUUID": "654aba74-cc4e-432a-9aa1-eb1905e82c28",
  "videoUUID": "c4dadb70-16f5-4bb5-930e-411b9c478566",
  "videoURL": "https://vm.runware.ai/video/os/a05d22/ws/5/vi/c4dadb70-16f5-4bb5-930e-411b9c478566.mp4",
  "seed": 60016,
  "cost": 0.1813
}
```

---

### 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)

**Request**:

```json
{
  "taskType": "videoInference",
  "taskUUID": "942daf0a-25bd-4574-aeae-efdc34bd22cd",
  "model": "prunaai:p-video@replace",
  "positivePrompt": "Replace the on-camera speaker with the reference person, emphasizing vivid cobalt blue hair and a natural presenter look. Preserve the source video's exact speaking rhythm, mouth movement, head turns, hand gestures, camera position, background, lighting direction, and overall timing. Keep the result realistic and seamless, with stable facial identity and clean hair edges throughout the talking clip.",
  "resolution": "720p",
  "fps": 24,
  "seed": 91032,
  "settings": {
    "preserveAudio": true,
    "sourceAudioSync": true,
    "turbo": false
  },
  "inputs": {
    "video": "https://assets.runware.ai/assets/inputs/45324c81-e9b7-451a-87dd-4ca3d0795ee1.mp4",
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/b75d2da6-8b27-4077-b7d6-1b19f0737257.jpg"
    ]
  }
}
```

**Response**:

```json
{
  "taskType": "videoInference",
  "taskUUID": "942daf0a-25bd-4574-aeae-efdc34bd22cd",
  "videoUUID": "b655f85a-73e7-48de-9a2b-e9d1bff7db3d",
  "videoURL": "https://vm.runware.ai/video/os/a07dlim3/ws/5/vi/b655f85a-73e7-48de-9a2b-e9d1bff7db3d.mp4",
  "seed": 91032,
  "cost": 0.1813
}
```

---

### Tailored Blazer Talking Clip (Edit)

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

**Request**:

```json
{
  "taskType": "videoInference",
  "taskUUID": "ea378cf1-64f3-42f4-a50d-255b36ba274e",
  "model": "prunaai:p-video@replace",
  "positivePrompt": "Replace only the speaker's clothing with the cobalt blue blazer and white shirt from the reference image. Preserve the original person talking, lip movement, gestures, camera angle, background, lighting direction, skin tone, facial identity, and timing. Keep the source audio synchronized with the speech and make the new outfit move naturally with the shoulders and torso.",
  "resolution": "720p",
  "fps": 24,
  "seed": 46077,
  "settings": {
    "preserveAudio": true,
    "sourceAudioSync": true,
    "turbo": false
  },
  "inputs": {
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/e8ac94a9-53e5-4780-a18f-0a12d1b36d64.jpg"
    ],
    "video": "https://assets.runware.ai/assets/inputs/3540377f-4a02-44e2-bd2f-adf6d43637a6.mp4"
  }
}
```

**Response**:

```json
{
  "taskType": "videoInference",
  "taskUUID": "ea378cf1-64f3-42f4-a50d-255b36ba274e",
  "videoUUID": "ce85025d-e332-47c5-9950-dc6ed2f4758f",
  "videoURL": "https://vm.runware.ai/video/os/a04d20/ws/5/vi/ce85025d-e332-47c5-9950-dc6ed2f4758f.mp4",
  "seed": 46077,
  "cost": 0.1813
}
```

---

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

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

**Request**:

```json
{
  "taskType": "videoInference",
  "taskUUID": "86ec7c38-6354-4716-bdb1-1595e865d3a1",
  "model": "prunaai:p-video@replace",
  "positivePrompt": "Replace the three on-camera speakers in the source clip with the three 3D avatar characters from the reference images, matched left to right: axolotl avatar, silver robot avatar, plush owl avatar. Preserve the original conversation rhythm, head turns, lip movement, hand gestures, seated positions, desk contact, camera push-in, studio lighting, background, and audio timing. Keep each avatar stable, expressive, and clearly assigned to only one speaker.",
  "resolution": "1080p",
  "fps": 24,
  "seed": 68633,
  "settings": {
    "preserveAudio": true,
    "sourceAudioSync": true,
    "turbo": false
  },
  "inputs": {
    "video": "https://assets.runware.ai/assets/inputs/5d4d4e49-f430-4f38-81de-355491059864.mp4",
    "referenceImages": [
      "https://assets.runware.ai/assets/inputs/c83a12c6-981a-47e0-84fa-e470c3ca77c5.jpg",
      "https://assets.runware.ai/assets/inputs/1294df4a-5c53-4060-9606-e968397305b6.jpg",
      "https://assets.runware.ai/assets/inputs/98f2f36f-f4b9-415e-a97d-dd0151d78fbf.jpg"
    ]
  }
}
```

**Response**:

```json
{
  "taskType": "videoInference",
  "taskUUID": "86ec7c38-6354-4716-bdb1-1595e865d3a1",
  "videoUUID": "1a9616b9-fc82-43f6-aae8-e17ef4f5f6c6",
  "videoURL": "https://vm.runware.ai/video/os/a10dlim3/ws/5/vi/1a9616b9-fc82-43f6-aae8-e17ef4f5f6c6.mp4",
  "seed": 68633,
  "cost": 0.3625
}
```