A clip's take actions: Extend, Retake…, with inputs pre-filled from the clip
const url = 'http://localhost:8300/v1/studio/timelines/example/clips/example/actions';const options = { method: 'GET', headers: {'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8300/v1/studio/timelines/example/clips/example/actions \ --header 'Authorization: Bearer <token>' \ --header 'x-api-key: <x-api-key>'The clip’s take’s offers (…/takes/{take_id}/uses) restricted to templates of the family of the workflow that made the take (an upload, import or export: every family), with start / end (the selection in sequence seconds; absent = the clip’s extent; clamped to the clip) mapped to the take’s own time (t − at + in), snapped to the take’s frames, for every span param and a trim media param’s in / out. ltx-extend only at an end of the take: extend.direction after when the range ends at the take’s end (within one frame), else before when it starts at 0, else not offered. Run one with POST …/shots (slot {clip} = replace; insert: slot {after: <clip>}, an extend before slot {at: <clip's at>}). Empty for an empty slot, an offline clip or a take nothing fits. 404 unknown sequence; 422 unknown clip <id>, start must be before end. family into one media param (not rows) of a workflow whose media is video (Audio to video: ltx-audio-to-video, echo-a2v), with the range = the selection or the clip’s in..out (an audio take snapped to whole ms, a video’s sound to its frames; the offer caps the part at the param’s max_s, 13.375 s) and slot {at: <the clip's at>, length: <out − in>, exact: true}: run it with POST …/shots and that slot. 422 clip <id> is not on V1 is gone (A1 is V1’s own sound, not a track: it has no clips of its own).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Sequence UUID (malformed = 404)
A slot id: V1, or an audio track’s clip
Query Parameters
Section titled “Query Parameters”The selection’s start, sequence seconds
The selection’s end, sequence seconds
Responses
Section titled “Responses”The actions
object
One “Use in…” entry: label it <action> · <title>, or the title when action is absent
object
The template’s action (Animate, Edit, Extend, Retake a section, Audio to video); absent for a user workflow or a template without one
What a workflow’s takes are
The input that holds the take (<node id>.<param>)
As POST …/use answers (a clip action: the clip’s range); merge over the form
object
Null only for a seed (random) or an image, media, span or voice param left empty
An Image value: a take of the caller, by id. The only way a client names an image; never an object key or URL. Studio checks it when it creates the run.
object
A Media value: a video or audio take of the caller, by id. in / out (seconds of the take’s own time; studio snaps them: a video’s frames, audio to the millisecond) only on a param with trim: the part it reads (absent: 0 / the take’s end). Never an object key or URL.
object
A span param’s value: a time range on the workflow’s one video media source, in that take’s own seconds (Retake: the stretch to regenerate)
object
A voice value: a saved voice the caller can use, by id: one of the caller’s own (a UUID) or a starter voice (<family>/<pack voice id>). Never a key, a URL or the voice’s fields; studio resolves it when it creates the run.
object
One item of a rows value: field (the param’s item) → value
object
Null only for a seed (random) or an image, media, span or voice param left empty
An Image value: a take of the caller, by id. The only way a client names an image; never an object key or URL. Studio checks it when it creates the run.
object
A Media value: a video or audio take of the caller, by id. in / out (seconds of the take’s own time; studio snaps them: a video’s frames, audio to the millisecond) only on a param with trim: the part it reads (absent: 0 / the take’s end). Never an object key or URL.
object
A Lora value (a rows item field of ref kind Lora): a LoRA the caller can use, by id; never a path, key or URL. Studio checks it when it creates the run.
object
A voice value: a saved voice the caller can use, by id: one of the caller’s own (a UUID) or a starter voice (<family>/<pack voice id>). Never a key, a URL or the voice’s fields; studio resolves it when it creates the run.
object
object
A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)
object
A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)
The placeholder’s length until the take fills it (the client’s estimate)
The new slot’s id; absent = studio makes one
object
Seconds, snapped by studio onto the frame grid (an audio track’s in/out: the sample grid)
The new slot’s id; absent = studio makes one
(Make shot): the place edit, the slot at exactly frames(at), not the nearest cut
Example
{ "actions": [ { "media": "image", "param": "source.source", "inputs": { "prompt.text": "a red fox", "echo.steps": 20 }, "slot": { "exact": true } } ]}Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
object
Example generated
{ "detail": "example"}Not found
object
Example generated
{ "detail": "example"}Invalid input
object
Example generated
{ "detail": "example"}Retryable
object
Example generated
{ "detail": "example"}