edit_video
Edit a video (a VerseIn media URL) from a text instruction, optionally guided by reference images or videos (VerseIn media URLs). Spends the user's coins: the price depends on the length; calls above the confirmation threshold return needs_confirmation with a confirmation_token; ask the user, then call again with it. Returns a task id; follow it with get_tasks. Never use it to swap faces or to put a real person's face or identity onto someone else; such requests are refused. Generating through an AI assistant is charged in VerseIn coins. Unlimited-plan allowances do not apply here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | video edit model key; omit for the default. An invalid key is answered with the valid ones | |
| prompt | No | the edit to make (some models require it) | |
| video_url | Yes | the video to edit — a VerseIn media URL | |
| request_id | No | your id for this call; retrying with the same id never charges twice. Use a new id to intentionally repeat identical settings | |
| resolution | No | output resolution (the model decides which values are allowed) | |
| aspect_ratio | No | output aspect ratio (the model decides which values are allowed) | |
| generate_audio | No | generate sound, for models that support audio (default on for those models) | |
| max_total_coins | No | the most this edit may charge: send the exact most the user agreed to (the max_coins of estimate_cost, or total_cost_coins when equal). If the job could now cost more, nothing is submitted and needs_confirmation returns the new price | |
| confirmation_token | No | the confirmation_token a needs_confirmation answer returned, passed back once the user agreed to that price | |
| reference_image_urls | No | reference images — VerseIn media URLs | |
| reference_video_urls | No | additional reference videos — VerseIn media URLs |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | present only when the call failed | |
| tasks | No | ||
| failed | No | ||
| balance | No | balance after submitting | |
| declined | No | true when the user declined the confirmation form; nothing was submitted or charged | |
| next_action | No | ||
| total_cost_coins | Yes |