prunaai/p-video-edit

Edit videos with a text prompt and optional reference images.

5.7K runs

Readme

p-video-edit

Edit an existing video with a text instruction while preserving its motion, camera movement, performance, and timing.

P-Video-Edit is Pruna’s instruction-based video-to-video editing model. Give a source video of up to 15 seconds and describe what you want to change. You can also provide up to four reference images for product, accessory, identity, or style matching.

How it works

The model takes:

  • A source video up to 15 seconds long.
  • A prompt describing the change you want to make.
  • Optionally, up to four reference images for the object, product, accessory, or look you want to match.

It returns an edited video with the same duration as the source. Source audio is preserved by default.

Tips

  • Make one principal change per run. Combining unrelated edits into a single prompt can make the results less reliable.
  • Describe the final result, then explicitly name everything that must stay unchanged.
  • For tighter control, add preservation instructions: Preserve the vehicle geometry, glass, trim, reflections, lighting, and camera movement.
  • Use images when the edit must match a specific product, accessory, identity, or look. Mention the reference directly in the prompt, for example: Replace the roof box with the product shown in the reference image.
  • Turn on draft for faster, lower-cost previews. Once the prompt works, rerun it with draft set to false for the final result.

Example

import replicate

output = replicate.run(
    "prunaai/p-video-edit",
    input={
        "video": "https://example.com/source-video.mp4",
        "prompt": (
            "Change only the SUV body paint to deep metallic red. "
            "Preserve the vehicle geometry, glass, trim, headlights, "
            "tires, reflections, and shadows. Keep the environment, "
            "lighting, timing, and camera movement unchanged."
        ),
        "draft": False,
        "prompt_upsampling": True,
        "save_audio": True,
        "seed": 42,
    },
)

print(output)

Pricing

Pricing is per second of the returned video:

  • Full quality (draft=false): $0.045 per second
  • Draft (draft=true): $0.025 per second

For example, a 10-second output costs $0.45 at full quality or $0.25 in draft mode. Draft mode is a faster, cheaper option for iterating before you switch to full quality.

Model created
Model updated