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

Re-render the sequence or a selection with a preset: one pipeline batch, a step per clip

POST
/v1/studio/timelines/{timeline_id}/rerender
curl --request POST \
--url http://localhost:8300/v1/studio/timelines/example/rerender \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "revision": 1, "clips": [ "example" ], "preset": "example" }'

409 stale revision, a selected clip with a shot running, or the batch limit (You have 5 unfinished batches; …). 422 clip <id> is an empty slot, Shot <n> is offline, clip <id>: its take was not made by a workflow, clip <id>: workflow <wid> has no preset <p>, clip <id>: workflow <wid> no longer exists, at most 22 clips per re-render, clips <a> and <b> start from each other, unknown clip <id>. and a V1 clip made from such a clip’s take (Make shot) re-renders after it, on its new take.

timeline_id
required
string

Sequence UUID (malformed = 404)

Media typeapplication/json
object
revision
required
integer
>= 1
clips

V1 clips to re-render; absent = every V1 clip with a take

Array<string>
>= 1 items <= 22 items unique items
preset

A preset every selected clip’s workflow has in studio.presets (for example final); applied over the clip’s own settings; absent = the clip’s own settings and seed

string
>= 1 characters <= 40 characters

Example generated

{
"revision": 1,
"clips": [
"example"
],
"preset": "example"
}

The sequence with every selected clip’s shot, and the batch

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
batch
required
object
id
required
string format: uuid
title
required
string
>= 1 characters <= 200 characters
workflow_id
required
string
workflow_title
required

The title in the batch’s snapshot

string
session_id
required

The session its runs are in; null after that session was deleted

string | null format: uuid
status
required

Queued: stored, the engine has not started it; running; waiting: the engine reports running but every row that has not ended is waiting on a gate (pick to continue); paused (reason says why: by you, three rows in a row failed with one error, or the engine restarted: press Resume); done: every row ended (some may have failed); failed: the engine could not run it at all (reason); stopped: by Stop. events, except queued.

string
Allowed values: queued running waiting paused done failed stopped
control
required

What the owner asked for last (Pause, Resume, Stop); status follows once the engine confirms. While pause or paused, the dispatcher holds the batch’s queued runs

string
Allowed values: run pause stop
reason
required

Why it is paused or failed; null otherwise

string | null
counts
required

Rows by BatchRow.status; queued, running, waiting, succeeded, failed and cancelled add up to total

object
total
required
integer
>= 1 <= 500
queued
required
integer
running
required
integer
waiting

Rows parked on a gate (“waiting for a pick”)

integer
succeeded
required
integer
failed
required
integer
cancelled
required
integer
created_at
required
string format: date-time
started_at
required

The engine first reported running

string | null format: date-time
finished_at
required

Done, failed or stopped

string | null format: date-time
pipeline_id

A batch of a pipeline: the pipeline (it may be deleted since); absent or null for a batch of one workflow, whose workflow_* then describe it. For a pipeline batch workflow_id / workflow_title are its first step’s

string | null format: uuid
pipeline_title

With pipeline_id: the title in the batch’s snapshot

string | null
pipeline_version

With pipeline_id: the version it was submitted with

integer | null
>= 1
collection

With pipeline_id: the collection its output node names (the first output, by node id)

string | null
bounds

A pipeline batch: its worst case per row at Submit

object
runs
required

Generation runs: Σ over steps of seeds × branches × visits (branches: a fanned-out step’s list max, else 1)

integer
<= 64
llm_calls
required

Judge, write and decide visits (each one ask run, at most 2 tries; a re-ask after a failed check is a second run)

integer
<= 32
tool_calls

Agent visits × max_tool_calls

integer
remote_calls

Requests to remote providers (a re-ask included), per row; the director’s chat is per batch (egress)

integer
remote_tokens

Their token bound per row

integer
chat

With a director only, whatever its model source: its chat’s worst case per batch (not per row): calls max_wakes × max_turns × 2 (a re-ask included; local models: queue items), tokens max_wakes × max_tokens, tool_calls max_wakes × max_tool_calls

object
calls
required
integer
tokens
required
integer
tool_calls
required
integer
added_rows

When an agent declares rows.add: the most rows agents may add to a batch (100), each with the per-row worst case

integer
>= 1 <= 100
models

A pipeline batch: judge, write and decide node id → the ask workflow it runs (resolved at Submit, in the snapshot)

object
key
additional properties
string
memory
One of:
object
examples
required
integer
notes
required
integer
taken_at
required
string format: date-time
again_of

Made by “Run again” of this batch

string | null format: uuid
same_decisions
boolean
egress

A pipeline batch: what leaves the machine, as at Submit

Array<object>

One node whose calls leave this process for a model server: exactly what is sent (Submit shows it). fields: the parts of the prompt, by name: instruction, question, routes, each from source, items, tool:<tool> (tool results go back to the model), chat (the director’s chat), input:<field> (a custom node’s)

object
node
required
string
where
required

Server: a local server (its calls are queue items); remote: a remote provider; network: a custom node that calls the network

string
Allowed values: server remote network
provider
required
string | null
model
required
string | null
fields
required
Array<string>
<= 32 items
thumbnails
required
integer
0
per_row
required

The worst case per row (a re-ask included)

object
calls
required
integer
tokens
required
integer
chat
required
One of:
object
calls
required
integer
tokens
required
integer
reserved

A pipeline batch: local servers’ reserved memory

Array<object>

A local server the pipeline uses, and the memory the host reserves for it (always, while the provider is enabled)

object
provider
required
string
host
required
string
memory_gb
required
number
>= 0.5
director
One of:
object
node
required

The director agent node

string
state
required

Idle: asleep until a message or a row ends; waiting: its turn’s call is queued or held (Pause); thinking: a call or its tools run; off: the batch ended or max_wakes reached (POST …/chat is 409)

string
Allowed values: idle waiting thinking off
wakes
required
integer
max_wakes
required
integer
>= 1 <= 500
remote
One of:
object
calls
required

Requests sent (re-asks included; network retries not)

integer
tokens
required

Tokens the providers reported

integer
network_failures
required

Transport failures (retried); counted apart from answers and verdicts

integer
max_calls
required
integer
>= 1
max_tokens
required
integer
>= 1
timeline_id

A sequence’s Re-render (pipeline_id null, pipeline_title “Re-render · ”, pipeline_version = the revision); absent or null otherwise

string | null format: uuid

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"
}
]
},
"batch": {
"status": "queued",
"control": "run",
"egress": [
{
"where": "server",
"thumbnails": 0
}
],
"director": {
"state": "idle"
}
}
}

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

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