Regenerate Scene
regenerate_sceneRe-render some scenes of a FINISHED video and re-stitch it. Spends credits only for the re-rendered clip seconds of those scenes (~1 per second; key frames, voice and stitching are free; refunded in full if it fails; estimate_cost gives the maximum). Use the regenerate_mode that edit_scene returned: - 'narration': applies narration / visual_description edits -- re-writes those scenes' prompts, then new voice, key frames and clips. - 'images': new key frames, then new clips (after keyframe='variant'). - 'clips': new clips from the current prompts, start frames and durations (after a positive_prompt, keyframe='upload' or duration_seconds edit); also a plain re-roll. Refuses 'images'/'clips' for a scene whose narration/visual edit is not applied yet. After set_scene_audio use 'narration'. If the user still dislikes the voice after a narration fix, suggest their own recording (get_audio_upload_page, then set_scene_audio) rather than more re-rolls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | The regenerate_mode edit_scene returned (see below). | |
| job_id | Yes | The video's job_id (from create_video, create_from_template or list_videos). | |
| scene_ids | Yes | scene_id of each scene to re-render (from get_video). | |
| idempotency_key | No | A unique string for this request (e.g. a UUID). Reuse it when retrying: a repeat within 24h returns the first result instead of starting (and charging for) a second render. |