video_edit
Change or extend an existing video by applying a text instruction and save the result as a new .mp4 file; provide a previous ID or local clip.
Instructions
Change or extend a video; the result is saved as a new file.
COSTS MONEY: billed like video_generate. Confirm with the user before calling. Give exactly one of previous_id (from video_generate/video_edit) or video_path (a local video of 10 seconds or less).
Args: instruction: e.g. "Make it night", or to extend: "Continue the scene: the car drives off" (adds 3-10 s, up to 40 s in total). previous_id: id returned by an earlier video_generate or video_edit. video_path: Local video (max 10 s) to edit instead. aspect_ratio: "16:9" or "9:16". resolution: "720p" (default), "360p", "1080p" or "4k". file_name: Optional .mp4 file name. wait_seconds: How long to wait before returning an id for video_check.
Returns: The saved .mp4 path and a new id (or an id for video_check).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | No | ||
| resolution | No | 720p | |
| video_path | No | ||
| instruction | Yes | ||
| previous_id | No | ||
| aspect_ratio | No | 16:9 | |
| wait_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |