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

New line: a voice run whose take fills a slot on an audio track

POST
/v1/studio/timelines/{timeline_id}/lines
curl --request POST \
--url http://localhost:8300/v1/studio/timelines/example/lines \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "slot": { "clip": "example" }, "run": { "workflow_id": "example", "inputs": { "prompt.text": "a red fox", "echo.steps": 20 }, "looks": [ "qwen-image/window-light" ], "host": "example" } }'

run is checked and created exactly as POST /v1/studio/sessions/{session_id}/runs (same 422 texts, scripts and voices included; same 409 at 100 runs) in the sequence’s session, and its workflow’s media must be audio (422 New line needs a workflow whose media is audio). slot {track, at, length} puts a placeholder {take_id: null, at, hold: length, shot {run_id}} on that audio track at at (the playhead, snapped to a frame); slot {clip} redoes an audio clip (its take is replaced when the run succeeds; “Generate from this clip”). Revision + 1, applied to the current revision. The run’s first take fills it (the fill edit on an audio track: the whole take at the slot’s at, cut at the next clip on the track or the sequence’s end); a failed run keeps the placeholder (status: failed, error), a cancelled one removes it. 409 clip <id> already has a line running (slot {clip}); 422 unknown clip <id>, unknown track A4, clip <id> is not on an audio track, New line needs an audio track (track V1), or a rule (TimelineError: overlap with a clip already there, too_many_clips).

timeline_id
required
string

Sequence UUID (malformed = 404)

Media typeapplication/json

New line (POST …/timelines/{id}/lines)

object
slot
required
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}$/
run
required

The docked voice composer’s run: a voice-over or dialogue template (media audio), prefilled with the sequence’s cast as a script

object
workflow_id
required
string
inputs

Missing = {}

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
looks

The chosen looks, every group together, in the order the composer’s tiles list them (tile order, then pick order); missing = []. Resolved with the mentions

Array<string>
<= 8 items
host

(Create’s Run on): run it on this host only, attempt 2 included; absent = automatic. A host that cannot take it now is a 422 at create

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

The sequence with the placeholder, and the run (queued, or failed at once)

Media typeapplication/json
object
timeline
required
object
id
required
string format: uuid
name
required
string
>= 1 characters <= 80 characters
session_id
required

The session its shots run in (follow it with GET …/sessions/{session_id}/events); null after that session was deleted (the next shot makes a new one)

string | null format: uuid
revision
required

1 on create, +1 on every stored change of the document

integer
>= 1
defaults
required
object
cast
required
Array<string>
looks
required

Look ids, in order; a repeated id counts once (its first place)

Array<string>
<= 8 items
can_undo
required
boolean
can_redo
required
boolean
takes
required

Every take the document names that is not offline

object
key
additional properties

A take the document names (a clip’s or an alternative), signed for the editor and the preview

object
id
required
string format: uuid
kind
required
string
Allowed values: image video audio
source
required

Create: an output of a Create run; upload: a file the user uploaded; pipeline: an output of a batch run; import: an item of the old helmstudio gallery, brought in by helm import (legacy); export: a sequence’s export (export); frame: a video take’s first or last frame (frame_of); tool: made by a plugin tool from takes of yours

string
Allowed values: create upload pipeline import export frame tool
title
required
string
<= 200 characters
url
required

Signed, time-limited link; opaque

string
thumb_url
required

The take’s thumbnail (Take.thumb_url)

string
width
required
integer | null
>= 1
height
required
integer | null
>= 1
video

url / thumb_url of the take stay the MP4 and the poster’s thumbnail; poster_url is the full-size poster.

object
duration_s
required

Frames / fps

number
> 0
fps
required
number
> 0
frames
required
integer
>= 1
has_audio
required

The MP4 has an audio track (LTX: AAC 48 kHz stereo)

boolean
poster_url
required

Signed, time-limited link; opaque

string
audio

Kind audio only: its length, rate and a dialogue’s cues (ticks on the clip)

object
duration_s
required

An upload: as the client declared it

number
> 0 <= 600
sample_rate

Absent for an upload (studio does not decode it)

integer
>= 8000 <= 96000
cues

A dialogue’s take only: one per line, in order; the stage draws them as line markers, the Timeline as ticks on the clip (sequence time = clip at + cue − clip in)

Array<object>
>= 1 items <= 40 items

One dialogue line in its take (defs cue): line from 1, [start_s, end_s) in the take’s own seconds, the speaker’s voice id (a deleted voice’s id stays), the text as spoken

object
line
required
integer
>= 1 <= 40
start_s
required
number
<= 600
end_s
required
number
> 0 <= 600
voice_id
required
string
/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|[a-z0-9][a-z0-9_-]{0,63}/[a-z0-9][a-z0-9-]{0,63})$/
text
required
string
<= 600 characters
seed
required

made_with.seed; null without one

integer | null
workflow_id
required

made_with.workflow_id; null for an upload, import, frame or export (no “from this clip”, no re-render)

string | null
workflow_title
required
string | null
render_s

made_with.render_s (the clip inspector’s “⏱ 3:12”; the sequence’s total sums its clips’ takes that have one); absent without one

number
created_at
required
string format: date-time
updated_at
required
string format: date-time
title_source

Who wrote name, as a session’s title

string
Allowed values: default prompt user model
named_by

The model that wrote the name while title_source is model; null otherwise

string | null
<= 60 characters
duration_s
required

frames in seconds

number
frames
required

The sequence’s length: V1’s end (no V1 clip: the last sound’s)

integer
target
required

The sequence’s geometry and rates; the codec is the export’s (H.264 + AAC in MP4)

object
width
required
integer
>= 16 <= 4096 multiple of 2
height
required
integer
>= 16 <= 4096 multiple of 2
fps
required

One of the rate table (exact rates 24000/1001, 30000/1001, 60000/1001 for the NTSC ones)

number
Allowed values: 23.976 24 25 29.97 30 48 50 59.94 60
sample_rate
required
integer
Allowed values: 44100 48000
tracks
required
Array<object>
>= 1 items <= 9 items
object
name

Answers only (ignored in a write): V1, then A2…A9 by position (A1 is V1’s own sound, drawn under it)

string
/^(V1|A[2-9])$/
kind
required
string
Allowed values: video audio
gain_db
number
0 >= -60 <= 12
mute
boolean
clips
required
Array<object>
<= 500 items

A slot: a take, or an empty slot (take_id null, hold): black and silence; on an audio track only a New line’s placeholder

object
id
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}$/
take_id
required
string | null format: uuid
in

A video take: the source time it starts at (default 0)

number
<= 86400
out

A video take: the source time it ends at (default its length)

number
<= 86400
hold

An image take or an empty slot: its length in seconds

number
> 0 <= 3600
at

An audio track: where it starts on the sequence (required there); V1: computed, ignored in a write

number
<= 86400
gain_db
number
0 >= -60 <= 12
mute

V1: the clip’s own sound is off

boolean
transition_in
object
type
required
string
Allowed value: dissolve
frames
required

Centred on the cut: half before it, half after

integer
>= 2 <= 240 multiple of 2
alternatives

The takes made for this slot, oldest first; the current take_id is among them (studio adds it). Replace picks one

Array<string>
<= 32 items unique items
shot
One of:

A generation filling this slot (made by studio only; a write keeps it or drops it): a New shot’s run, or a Re-render batch’s step. In answers it adds status and, failed, error

object
run_id
required
string format: uuid
batch_id
string format: uuid
step

The re-render pipeline’s step for this clip

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

Answers only: the run’s, or the batch step’s (a cancelled or succeeded one is gone from the document)

string
Allowed values: queued running failed
error

Answers only, failed: the run’s error

string | null
number

V1 only: the shot number (“Shot 4”), given by studio when the clip is added (the highest so far + 1) and kept when it moves; a write cannot change a stored clip’s.

integer
>= 1
offline

Answers only, true when the take is deleted or gone: the clip keeps its place and length, plays as offline and blocks an export

boolean
link

An audio-track clip only: the V1 clip it is linked to

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

At most 200 (too_many_markers); absent = none; answers sort them by time, then id, and leave the list out when empty

Array<object>

A named point on the sequence (snapped to frames; drawn on the ruler, a snap target)

object
id
required

Unique among the markers

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

Sequence seconds; with V1 clips never past the end (marker_past_end)

number
<= 86400
name
string
>= 1 characters <= 80 characters
color

A marker’s colour, drawn with the theme’s own shade

string
Allowed values: red orange yellow green blue purple
run
required
object
id
required
string format: uuid
session_id
required
string format: uuid
workflow_id
required
string
inputs
required

As requested

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
status
required
string
Allowed values: queued running succeeded failed cancelled
progress
required
One of:
object
node
required

The node id that is stepping

string
step
required
integer
>= 1
of
required
integer
>= 1
phase

What the node is doing (loading transformer, sampling, decoding)

string
phase_id

The id of one of the node’s NodeSchema phases it is in; only from a node with phases

string
eta_s

Estimated seconds until the run finishes

number
error
required

Set when failed

string | null
outputs
required

By index; outputs whose take was deleted are left out

Array<object>
object
index
required
integer
key
required

Object key, u/<owner_id>/runs/<run_id>//.

string
kind
required

Width and height null)

string
Allowed values: image video audio
url
required

The image, or the MP4 of a video (served with Range)

string
width
required
integer | null
height
required
integer | null
video

Kind video only (absent for an image)

object
duration_s
required

Frames / fps

number
> 0
fps
required
number
> 0
frames
required
integer
>= 1
has_audio
required

The MP4 has an audio track (LTX: AAC 48 kHz stereo)

boolean
poster_url
required

Signed, time-limited link; opaque

string
audio

Kind audio only: its length and sample rate

object
duration_s
required

An upload: as the client declared it

number
> 0 <= 600
sample_rate

Absent for an upload (studio does not decode it)

integer
>= 8000 <= 96000
cues

A dialogue’s take only: one per line, in order; the stage draws them as line markers, the Timeline as ticks on the clip (sequence time = clip at + cue − clip in)

Array<object>
>= 1 items <= 40 items

One dialogue line in its take (defs cue): line from 1, [start_s, end_s) in the take’s own seconds, the speaker’s voice id (a deleted voice’s id stays), the text as spoken

object
line
required
integer
>= 1 <= 40
start_s
required
number
<= 600
end_s
required
number
> 0 <= 600
voice_id
required
string
/^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|[a-z0-9][a-z0-9_-]{0,63}/[a-z0-9][a-z0-9-]{0,63})$/
text
required
string
<= 600 characters
seed

The seed it was made with; absent when the workflow has none

integer
take_id

The take this output became (every output is a take)

string format: uuid
thumb_url

Its take’s thumb_url (Take.thumb_url); absent without a take (or once it is deleted): use url

string
host
required

The host it was sent to (its current attempt’s); while queued, the host it is lined up for (the one the dispatcher would choose now, may change); null when none was eligible

string | null
lost_host

The host attempt 1 was sent to, when that host stopped responding and the run was queued again; absent or null otherwise

string | null
lane
required

Interactive (Create, POST …/runs) is dispatched before batch

string
Allowed values: interactive batch
attempt
required

1; 2 after its runner was lost once and it was queued again

integer
>= 1 <= 2
position

Only while queued: 1 + the number of queued runs (anyone’s) the dispatcher would release on host before it, recomputed on every read; absent otherwise

integer
>= 1
resolved

Values the runner chose (a random seed, an auto length), sent with succeeded

object
seed
integer
params

<node>.<param> → the value the runner chose for a param set to "auto" (duration.frames: the predicted length); absent when none

object
key
additional properties
integer
>= 1
texts

<node>.<output> → a Text output the runner made that the user did not write (an enhancer’s prompt); absent when none

object
<= 4 properties
key
additional properties
string
>= 1 characters <= 16384 characters
created_at
required
string format: date-time
started_at
required

The runner reported running

string | null format: date-time
finished_at
required
string | null format: date-time
batch_id

The batch it runs a row of (lane batch); absent or null for a Create run

string | null format: uuid
batch_row

The batch row number; with batch_id

integer | null
>= 1
workflow_version

A user workflow: the version it ran (its graph is the run’s snapshot); absent or null for a template

integer | null
>= 1
looks

The looks it was asked with (RunRequest.looks; a batch run: its row’s or step’s), as requested; absent or empty = none

Array<string>
<= 8 items
answer

A run of a text (ask) workflow (lane batch: a judge, write or decide call): its answer, stored on the run, never a take (outputs stays empty). Sent once it succeeded, and when it failed on the schema

object
text
required

The last try

string
<= 32768 characters
tokens_in
required
integer
tokens_out
required
integer
seconds
required
number
purpose

Name = the hidden run that names its session (local namer, lane batch); only GET /v1/studio/queue lists one. Absent or null otherwise

string | null
Allowed values: name
unloads_pinned

Only while queued (computed on every read, like position): the pinned components the host memory admission would unload, as its last-resort victims, if the run were admitted on host now; they are loaded again, and pinned again, when next used. Absent when none

Array<object>
>= 1 items
object
env
required
string
component
required
string
model
required
string
variant
required
string
precision
required
string
gb
required

Its resident size: what reloading it costs

number

Example

{
"timeline": {
"target": {
"fps": 23.976,
"sample_rate": 44100
},
"tracks": [
{
"kind": "video",
"gain_db": 0,
"mute": false,
"clips": [
{
"gain_db": 0,
"mute": false,
"transition_in": {
"type": "dissolve"
},
"shot": {
"status": "queued"
}
}
]
}
],
"markers": [
{
"color": "red"
}
]
},
"run": {
"inputs": {
"prompt.text": "a red fox",
"echo.steps": 20
},
"status": "queued",
"outputs": [
{
"kind": "image",
"url": "/files/u/7d1e.../runs/3c9a.../0.png?exp=1767225600&sig=ab12",
"video": {
"duration_s": 2.0416666666666665,
"fps": 24,
"frames": 49,
"poster_url": "/files/u/7d1e.../runs/3c9a.../0.png?exp=1767225600&sig=ab12"
},
"thumb_url": "/files/u/7d1e.../runs/3c9a.../0.png?exp=1767225600&sig=ab12"
}
],
"lane": "interactive",
"resolved": {
"params": {
"duration.frames": 89
},
"texts": {
"enhance.text": "A ginger cat asleep on a green velvet sofa, soft window light"
}
},
"looks": [
"qwen-image/window-light"
],
"purpose": "name"
}
}

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"
}

The resource’s state forbids this

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

The body does not fit the schema ({detail} only), or the document breaks a timeline rule (problems: every problem)

Media typeapplication/json
object
detail
required

timeline has <n> problems: <first message>, or why the body does not fit

string
problems
Array<object>
object
code
required
string
track
required
string | null
clip
required
One of:

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

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

Example

{
"problems": [
{
"code": "dissolve_handles",
"track": "V1"
}
]
}

Retryable

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}