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), never timers or background shells. 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, state the price in the same message as your ask, wait for a go naming THIS purchase (SPENDING RULES: get_recipe spending-rules). idempotency_key: IDEMPOTENCY (this server's instructions).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source_video": "<source_video>",
"prompt": "<prompt>",
"resolution": "<resolution>"
},
"name": "edit_video"
}
}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 key (IDEMPOTENCY). | |
| reference_images | No | Optional pictures that steer the look (a face, an outfit, a prop). |