cut clips
Cut many moments out of one recording at once: each span becomes its own clip, a timeline of its own inside the project, shaped, punched in on the words, cropped to the subject and captioned in one look. timeline_id is the project: any timeline of the workspace, usually one made for the set with manage_timelines create; clips of a project carry parent_id. In and out points move up to 1.2 seconds onto the nearest word edge when the recording has stored words (transcribe_media with ref reads them; without them spans are cut as given). Each clip that lands is returned with its timeline_id, name and landed span; a span the project already holds comes back in skipped, and one that could not be cut in failed. The first cut puts the set on the workspace feed. For one clip, edit_timeline addClip with source. Free, except captioning a recording without stored words and reading a subject for the crop: cloud processing.
Authorizations
An API key (es_live_…) from Settings, under API keys, or an OAuth access token.
Headers
Retry a paid dispatch safely: the same key returns the job already dispatched instead of charging again.
The workspace this one call acts in, when it is not the key's own.
Body
The project the clips land in: any timeline, empty or not, or a clip already in it. The recording itself is ref.
The recording being cut, as a library ref.
The moments, in the order they should be numbered. Up to 50 a call.
1 - 50 elementsThe shape every clip is cut at, 9:16 for shorts. Absent leaves each clip at the project's.
16:9, 9:16, 21:9, 9:21, 1:1, 4:3, 3:4, 3:2, 2:3, 5:4, 4:5 Caption every clip in this look: a template saved for the workspace, or a built-in one: Subtitles, Kinetic, One word, Karaoke, Broadcast, Boxed, Story, Social, Hook. Absent leaves the clips uncaptioned.
How every hook in the set looks; absent, a white box with dark bold type near the top for three seconds: font_family, font_size (px at the clip's resolution), font_weight (100 to 900), color, background_color (null for none), background_opacity, background_padding, background_radius, position (top-left to bottom-right), offset_y, text_transform (none|uppercase|lowercase|capitalize), animation (none|fade|slide|pop), stroke_color, stroke_width, seconds (0.5 to 15).
The words this set is about, lit and marked.
Bleep swearing: the sound covered where it is said and the word starred in the captions. true takes the usual list.
Punch in on the words, as auto_zoom does. Absent leaves the framing still.
light, medium, strong Move each clip's crop to follow the subject, for a cut whose shape differs from the recording's. speaker follows whoever is talking where two people share the frame (needs speakers on the recording).
For a stream or tutorial with a face-cam: the camera in one band and the screen in the other, each cropped to its region, on tall and square clips. Regions come off a frame (inspect_media). Replaces reframe and zoom.
Cut a span the project already holds a clip of. Off, such a span is skipped and the clip it already is named in skipped, so a retried call cannot double the set.
Optional: one sentence shown to the user beside this action.
600
