transform_video
Transform a source video by animating a subject from a reference image or replacing characters with identity references. Preserves motion, timing, and scene structure.
Instructions
Transform a source video using reference images (video-to-video).
Two models are available:
p-video-animate: animate a single subject reference image using the motion from the source video (provide exactly 1 reference).
p-video-replace: replace the character(s) in the source video using 1-3 identity reference images.
Motion, timing, camera movement, and scene structure are preserved.
Args: video: Source video URL or local file path (.mp4) references: Reference images (URLs or local file paths). Exactly 1 for p-video-animate, 1-3 for p-video-replace. model: Model to use (p-video-animate or p-video-replace) resolution: Output resolution (720p or 1080p) target_fps: Working FPS (original, 24, or 48) instruction_prompt: Optional guidance on how to apply the transform turbo: Faster generation for slightly lower quality save_audio: Save the output video with audio ignore_audio: Ignore source audio during generation seed: Random seed for reproducible generation
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| model | No | p-video-animate | |
| turbo | No | ||
| video | Yes | ||
| references | Yes | ||
| resolution | No | 720p | |
| save_audio | No | ||
| target_fps | No | original | |
| ignore_audio | No | ||
| instruction_prompt | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |