MODEL IDprunaai:p-video@replace
live

P-Video-Replace

Pruna AI
by Pruna AI

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.

P-Video-Replace
Video to Video

Three Avatar Conversation Panel

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@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'
    ]
  }
})
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@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"
                ]
            }
        })


asyncio.run(main())
curl https://api.runware.ai/v1 \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "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"
        ]
      }
    }
  ]'
runware run 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 \
  settings.sourceAudioSync=true \
  settings.turbo=false \
  inputs.video=https://assets.runware.ai/assets/inputs/5d4d4e49-f430-4f38-81de-355491059864.mp4 \
  inputs.referenceImages.0=https://assets.runware.ai/assets/inputs/c83a12c6-981a-47e0-84fa-e470c3ca77c5.jpg \
  inputs.referenceImages.1=https://assets.runware.ai/assets/inputs/1294df4a-5c53-4060-9606-e968397305b6.jpg \
  inputs.referenceImages.2=https://assets.runware.ai/assets/inputs/98f2f36f-f4b9-415e-a97d-dd0151d78fbf.jpg
{
  "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
{
  "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
}
Video to Video

Commuter Sedan Supercar Swap

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@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'
  }
})
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@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"
            }
        })


asyncio.run(main())
curl https://api.runware.ai/v1 \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "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"
      }
    }
  ]'
runware run 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 \
  settings.sourceAudioSync=false \
  settings.turbo=false \
  inputs.referenceImages.0=https://assets.runware.ai/assets/inputs/08ea67b9-715d-4f55-98ed-2a9f1d5df85d.jpg \
  inputs.video=https://assets.runware.ai/assets/inputs/9f402c3f-66bd-4208-8948-f08d9f6160ae.mp4
{
  "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
{
  "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
}
Edit

Tailored Blazer Talking Clip

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@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'
  }
})
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@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"
            }
        })


asyncio.run(main())
curl https://api.runware.ai/v1 \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "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"
      }
    }
  ]'
runware run 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 \
  settings.sourceAudioSync=true \
  settings.turbo=false \
  inputs.referenceImages.0=https://assets.runware.ai/assets/inputs/e8ac94a9-53e5-4780-a18f-0a12d1b36d64.jpg \
  inputs.video=https://assets.runware.ai/assets/inputs/3540377f-4a02-44e2-bd2f-adf6d43637a6.mp4
{
  "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
{
  "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
}
Video to Video

Blue-Haired Talking Presenter Swap

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@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'
    ]
  }
})
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@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"
                ]
            }
        })


asyncio.run(main())
curl https://api.runware.ai/v1 \
  -H "Authorization: Bearer $RUNWARE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
    {
      "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"
        ]
      }
    }
  ]'
runware run 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 \
  settings.sourceAudioSync=true \
  settings.turbo=false \
  inputs.video=https://assets.runware.ai/assets/inputs/45324c81-e9b7-451a-87dd-4ca3d0795ee1.mp4 \
  inputs.referenceImages.0=https://assets.runware.ai/assets/inputs/b75d2da6-8b27-4077-b7d6-1b19f0737257.jpg
{
  "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
{
  "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
}