Create a motion-control clip
create_motion_clipAnimate a character look or your own photo by copying the motion of a driver video to generate a short clip. Upload the driver, poll the video status, then download the result.
Instructions
Animate a character look (or your own photo) by copying the motion of a driver video. Same as clipugc videos motion. Two engines: kling (default, 3 credits per second of driver video, reads the prompt) or wan (2 credits per second, keeps the look's own background, ignores the prompt, resolution 480p, 580p or 720p). Rounded up, capped at 30 seconds (confirm with get_credits). The driver must be mp4/mov, at most 50 MB and 30 seconds; it is uploaded first. Provide exactly one of image or photo. Returns the clip id and status. Generation runs in the background. Poll get_video with {"id": , "kind": "clip"} every 5 to 10 seconds until status is "completed" or "failed", then call download_video.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | Id of a generated character look (same as --image). | |
| photo | No | Local path to your own photo, png/jpg/jpeg/webp; uploaded first (same as --photo). | |
| driver | Yes | Local path of the driver video, mp4/mov, max 50 MB and 30s (same as --driver). | |
| engine | No | kling (default) or wan, the cheaper engine (same as --engine). | |
| prompt | No | What the character does, max 1500 chars (same as --prompt). | |
| keep_sound | No | Keep the driver video's original sound (same as --keep-sound). | |
| resolution | No | wan only: 480p, 580p or 720p, default 720p (same as --resolution). |