All models

P-Video-Replace

pruna/p-video-replace
Pruna Video GenerationCharacter ReplacementIdentity

Pruna's P-Video-Replace takes a source video and one or more identity reference images, then places the referenced person or people into the video while preserving the source motion and audio.

Quick start

# Inspect the price — a plain request returns the 402 challenge:
curl -i https://api.glianalabs.com/v1/infer \
  -H "content-type: application/json" \
  -d '{
    "model": "pruna/p-video-replace",
    "video": <string>
  }'

# Pay + run in one step with the mppx CLI (create a wallet: npx mppx account create):
npx mppx https://api.glianalabs.com/v1/infer \
  -J '{"model": "pruna/p-video-replace", "video": "<string>"}'

Examples

Parameters

Input
disable_safety_checker boolean required

Disable safety checker for generated videos.

ignore_audio boolean required

Ignore source audio during generation.

images array required

Identity reference image(s), 1 to 3, to place into the video. Each entry is an HTTP(S) URL or a data URI.

instruction_prompt string required

Further instruction on how to place people from the reference images into the scene.

resolution string required

Target resolution.

save_audio boolean required

Save the video with audio.

seed integer

Random seed for reproducible generation.

target_fps string required

Target FPS for the working video.

turbo boolean required

Turbo mode: faster generation for slightly lower quality.

video string required

Source RGB video (.mp4) used as the motion and audio source. HTTP(S) URL or data URI. Pass a public URL; to use a local file, upload it (free) via POST /v1/media (≤40MB) and pass the returned url.

Output
video: model output URL