Skip to content
Alphahelmstudio is early software: things will change, and some will break.What's newReport an issue

A clip's take actions: Extend, Retake…, with inputs pre-filled from the clip

GET
/v1/studio/timelines/{timeline_id}/clips/{clip_id}/actions
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).

timeline_id
required
string

Sequence UUID (malformed = 404)

clip_id
required
string

A slot id: V1, or an audio track’s clip

start
number

The selection’s start, sequence seconds

end
number
> 0

The selection’s end, sequence seconds

The actions

Media typeapplication/json
object
actions
required
Array<object>
<= 100 items

One “Use in…” entry: label it <action> · <title>, or the title when action is absent

object
workflow_id
required
string
title
required
string
action

The template’s action (Animate, Edit, Extend, Retake a section, Audio to video); absent for a user workflow or a template without one

string
family
required
string
media
required

What a workflow’s takes are

string
Allowed values: image video audio
param
required

The input that holds the take (<node id>.<param>)

string
inputs
required

As POST …/use answers (a clip action: the clip’s range); merge over the form

object
key
additional properties
Any of:

Null only for a seed (random) or an image, media, span or voice param left empty

string | number | boolean | null
slot
One of:
object
clip
required

A slot’s id, stable across edits and revisions; the editor makes new ones (unique in the document)

string
/^[a-z0-9]{1,16}$/

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

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Not found

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Invalid input

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Retryable

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}