Retake video section
Re-generate a section of an existing video by replacing either its audio, its video, or both. Select a time range and mode to iterate on part of a generation without starting over — the rest of the video is preserved.
The output video is 1920x1080 or 1080x1920 (see resolution). The input video is center-cropped to that aspect ratio.
Responds immediately with the job id and created_at timestamp. Poll GET /v2/retake/{id} until the status is completed, then download from result.video_url.
Requests that violate the content policy fail the job with content_filtered_error. An account without enough credit fails the same way, with insufficient_funds_error.
Billed per second of the input video. See Pricing.
Authentication
Request
Input video for editing. See Input Formats for supported formats and codecs.
- Maximum resolution: 3840x2160 (4K)
- Minimum frame count: 73 (around 3 seconds at 24fps)
Start time in seconds, defines the section to be edited in the input video. At least 2 seconds of video must remain after it.
The section defined by start_time and duration should be within the duration of the input video.
If the section extends beyond the duration of the video, it will be clamped to the video duration.
Duration in seconds, defines the duration of the section to be edited in the input video. Must be at least 2 seconds. The edited section can be at most 505 frames at the input video’s frame rate (about 21 seconds at 24fps).
The section defined by start_time and duration should be within the duration of the input video.
If the section extends beyond the duration of the video, it will be clamped to the video duration.
Describing what needs to happen in the generated video in a section
defined by start_time and duration.
Can be any of the following:
replace_audio- Replace only the audio trackreplace_video- Replace only the video trackreplace_audio_and_video- Replace both audio and video tracks
The default value is replace_audio_and_video if not specified.
The resolution of the generated video in WIDTHxHEIGHT format. When omitted, the resolution is automatically determined based on the input video orientation — portrait videos produce 1080x1920 output, landscape videos produce 1920x1080 output.