Continue a video past its ending
extend_videoGenerates a NEW segment that continues an existing video from its final frame and returns the new job's id immediately; the result is the original clip with the new segment joined on. WHEN: the user asks to extend, continue or lengthen a video, or wants to see what happens next in a clip they have. Only models that can start from an image are accepted (list_models). Say in prompt what happens NEXT: a prompt describing the clip that exists produces a repeat of it. 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: this spends the user's tokens, priced like a normal generation of the new segment: the model, duration and resolution decide it, not the source clip's length. An external url costs one media-ingest slot: quote and create from the SAME url to pay it once. 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": {
"model": "<model>",
"source_video": "<source_video>",
"aspect_ratio": "<aspect_ratio>",
"duration": "<duration>"
},
"name": "extend_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audio | No | Generate audio for the new segment, on the models that support it (`list_models` says whether sound costs extra). IT DEFAULTS TO TRUE: omitted, the segment has sound on those models; set `false` only when the user asked for a silent segment. Only if the user asked; never to save tokens, never carried over. | |
| model | Yes | Model id exactly as `list_models` returns it. Use the one the user asked for; never substitute a cheaper model to save them tokens. | |
| prompt | No | What should happen in the NEW segment. | |
| duration | Yes | Length of the NEW segment in seconds, one of the model's published durations; longer costs more. REQUIRED: if the user gave none, put your pick and its price in the priced ask; never one chosen to save tokens, never carried over. | |
| resolution | No | One of the model's published options; higher costs more. Only if the user asked; never to save tokens, never carried over. | |
| aspect_ratio | Yes | One of the model's published `aspect_ratios`. REQUIRED: the server does not guess it from the source clip and it changes the price on some models. Match the source clip's shape unless the user asked otherwise. | |
| source_video | Yes | URL of the video to continue. 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). |