enqueue_generate_scene_video
Render one scene as one video server-side as a background job, from its shots (storyboard images, character references and per-shot prompts). A scene longer than the model's take renders in parts, each continuing from the one before, joined into one clip. This is how every video is made. The scene must already have shots. sceneId is required. Do NOT call this across multiple scenes — issue one call per scene if the user asks for several. Pass modelName to render with a specific full-scene video model; omit it to keep the model the scene was rendered on (or the default for a first render).
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": {
"movieId": "<movieId>",
"sceneId": "<sceneId>"
},
"name": "enqueue_generate_scene_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| movieId | Yes | The movie id (uuid) this call operates on. Get it from create_movie or list_movies. | |
| quoteId | No | The quoteId from the price answer this call confirms. The render starts only while that quote stands: same scene and model, a price no higher, at most 15 minutes old, used once. | |
| sceneId | Yes | The scene id (number) to render as a single video. | |
| keepShots | No | Only when the user said to render the scene's current shots as they are, after this tool answered sceneChanged for the scene (the video will not show that change). It counts only as the answer to that question: sent before it, the question is asked instead. The price then says it renders the old shots. Never set it on your own; otherwise offer enqueue_revise_scene, which makes new shots and then renders the scene. | |
| modelName | No | Optional full-scene video model to render with (registry name), e.g. seedance_2_5_flash_reference_to_video, kling_v4_reference_to_video, kling_v4_720p_reference_to_video, grok_1_5_reference_to_video, wan_3_0_prime_reference_to_video, minimax_h3_max_reference_to_video, minimax_h3_max_1080p_reference_to_video. Omitted: a scene rendered before keeps the model it was made on; a first render or a free preview take uses the account default. | |
| confirmCost | No | Leave unset on the first call: the server answers with the real credit price (continuation parts included), the user's balance and a quoteId instead of starting, and says what to tell the user. Set true ONLY in a later turn, after the user has replied yes to that price, and pass the quoteId with it. | |
| generateAudio | No | Whether to also generate audio for the stitched scene. Defaults to false. | |
| confirmRerender | No | Only when the scene ALREADY has a finished video and its script and shots have not changed since: set true ONLY if the user's latest message explicitly asks for a NEW render of that scene and they know it costs credits again. "Finish", "complete" or "check" scene N never means re-render. Leave unset otherwise; the price answer says when a render would replace a finished video, and agreeing to that price is enough (no second flag). | |
| keepShotsTextVersion | No | With keepShots: the sceneTextVersion of the sceneChanged reply your user answered. keepShots counts only for that text of the scene: if the scene changed again since, you are asked again, with the new version. |