Edit video
edit_videoModify an existing clip with a text prompt, or transfer motion from a reference video onto a subject image. Returns the edited video URL.
Instructions
Edit an existing video from a prompt, or transfer motion onto a subject image. Pass the source in video_url and the change in prompt. Defaults to Google Gemini Omni video edit; switch with model ('kling-edit', 'wan-edit', or 'motion-control' for Kling motion transfer with a subject image in image_urls). This is for changing an existing clip — to make a new video from scratch use generate_video, to extend one use extend_video, to upscale use upscale_media. Returns the video URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Optional seed for reproducible output. Same seed + same input gives the same result on supported models. | |
| wait | No | Default true: wait for the job and return the finished result. Set false to get the task_id back immediately and poll with get_task — use for long jobs (high-quality video, full songs) or when the connection might time out. | |
| model | No | Edit model, alias or full id. Aliases: 'video-edit' (default, Gemini Omni), 'kling-edit', 'wan-edit', 'motion-control' (Kling motion transfer). See list_models (category video, the *-edit / motion-control ids). | |
| prompt | Yes | What to change — the edit instruction (e.g. 'make it snow', 'turn day into night', 'apply this motion to the subject'). | |
| video_url | Yes | The source video to edit (or the reference/control video for motion transfer). Must be a public https URL — never a local path, never inline base64. For a local file, upload it first with a direct PUT to files.unifically.com/upload and pass the returned file_url. | |
| image_urls | No | Optional reference/subject images (each a public https URL) — used by motion-control (the subject to animate) and omni edit models. The max count is per-model. | |
| aspect_ratio | No | Optional output aspect ratio, if the model supports it. | |
| callback_url | No | Optional webhook URL. When set, the tool returns immediately with the task_id and UnificAlly POSTs the result to this URL when the task finishes. Webhook body: { task_id, status: 'completed'|'failed', data: { video_url | image_url | audio_url | ... }, error_message? } — note the media arrives under 'data', not 'output'. Use for long jobs instead of waiting. | |
| confirm_cost | No | Only relevant if the operator enabled a spend guard. When a call exceeds the configured confirm threshold it returns a quote; retry with confirm_cost: true to proceed. Safe to ignore otherwise. | |
| provider_options | No | Escape hatch for model-specific fields not exposed as named parameters (e.g. Kling multi_shots, Flux steps). Merged into the API 'input' payload. Rejected: fields the tool already manages (prompt, media URLs, task_id, ...) and reserved routing/billing/auth keys (model, callback_url, dry_run, api_key, authorization) — switch models with the 'model' parameter, not here. See https://docs.unifically.com for per-model fields. |