Rewrite what is in a video, keeping its motion
edit_videoThe SAME clip with the prompt's changes applied; camera, timing and motion stay. Returns the new job's id. WHEN: restyle or recast footage ('make it snow', 'put them in suits'). Read get_recipe restyle first. THE CARD: this call already opened the aicut card: do not call show_generation for this job. WAIT: wait_for_generation (this id, media), again at once while terminal: false, then one short line; no get_* polling, timers, background shells or narrating the wait. No card? Give the user the url. COST: the server-measured clip length times a per-second rate by resolution. SPENDS TOKENS: price with estimate_only: true, ask in the SAME message as the price, and wait for a go that names THIS purchase (SPENDING RULES, this server's instructions). IDEMPOTENCY: a reused idempotency_key REPLAYS the first job whatever the settings: never reuse one for a new generation (this server's instructions).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | What each thing in frame becomes; the motion is kept. | |
| duration | No | Seconds; only with `reference_images`. Only if the user asked; never to save tokens, never carried over. | |
| resolution | Yes | REQUIRED: use `720p` unless the user asked for `1080p`, and name the choice in the priced ask; never carried over from an earlier request. | |
| aspect_ratio | No | Only with `reference_images`. Only if the user asked; never to save tokens, never carried over. | |
| source_video | Yes | The clip, 3 to 10 seconds. A URL from this account's generations or uploads, or a public https URL (imported first); another account's is refused. | |
| estimate_only | No | Price only; creates nothing. | |
| idempotency_key | No | Retry-safety key (IDEMPOTENCY). | |
| reference_images | No | Optional pictures that steer the look (a face, an outfit, a prop). |