Session events after a cursor — JSON polling, or server-sent events with `Accept text/event-stream`
const url = 'http://localhost:8300/v1/studio/sessions/example/events?since=0';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/sessions/example/events?since=0' \ --header 'Authorization: Bearer <token>' \ --header 'x-api-key: <x-api-key>'The session, oldest first, each numbered by a per-session seq. JSON: the events with seq > since (at most 500) and last_seq. SSE: replays seq > since (or Last-Event-ID, which wins), then streams new ones; id: = seq, event: = the event’s type, data: = the SessionEvent JSON; : keep-alive comments every 15 s. The stream does not end by itself. An output event whose output is gone (its take deleted, or the attempt that made it retried) is left out, so seqs may skip; last_seq still moves past it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Session UUID (malformed = 404)
Query Parameters
Section titled “Query Parameters”Cursor — the last seq the client has
Header Parameters
Section titled “Header Parameters”SSE resume: the last id: received (an integer)
Responses
Section titled “Responses”Events
object
object
Per-session cursor
object
Values the runner chose (a random seed, an auto length), sent with succeeded
object
<node>.<param> → the value the runner chose for a param set to "auto" (duration.frames: the predicted length); absent when none
object
<node>.<output> → a Text output the runner made that the user did not write (an enhancer’s prompt); absent when none
object
The attempt this status belongs to; a queued with attempt 2 means the run is retried after its runner was lost; absent = 1
object
object
The node id that is stepping
What the node is doing (loading transformer, sampling, decoding)
The id of one of the node’s NodeSchema phases it is in; only from a node with phases
Estimated seconds until the run finishes
object
object
Object key, u/<owner_id>/runs/<run_id>/
Width and height null)
The image, or the MP4 of a video (served with Range)
Kind video only (absent for an image)
object
Frames / fps
The MP4 has an audio track (LTX: AAC 48 kHz stereo)
Signed, time-limited link; opaque
Kind audio only: its length and sample rate
object
An upload: as the client declared it
Absent for an upload (studio does not decode it)
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)
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
The seed it was made with; absent when the workflow has none
The take this output became (every output is a take)
Its take’s thumb_url (Take.thumb_url); absent without a take (or once it is deleted): use url
The namer gave the session its title; run_id is the run whose prompt it was named from
object
object
Who wrote the title: default (“Untitled”), prompt (Generate’s slice of the prompt, from_prompt), user (typed or renamed), model (the namer). The namer replaces only default and prompt, once per session
Next since (unchanged when the page is empty)
Example
{ "events": [ { "type": "status", "data": { "status": "queued", "resolved": { "params": { "duration.frames": 89 }, "texts": { "enhance.text": "A ginger cat asleep on a green velvet sofa, soft window light" } } } } ]}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"}