Cancel a queued or running run
const url = 'http://localhost:8300/v1/studio/runs/example/cancel';const options = { method: 'POST', 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 POST \ --url http://localhost:8300/v1/studio/runs/example/cancel \ --header 'Authorization: Bearer <token>' \ --header 'x-api-key: <x-api-key>'A run the dispatcher has not sent yet becomes cancelled at once (the answer shows it) and is never sent. the runner checks it before it starts and at every step, and reports cancelled (outputs and their takes already stored are kept). The answer is then the run as it is now, usually still queued or running; follow the events for cancelled. Calling it again is harmless. 409 when the run already ended.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Run UUID (malformed = 404)
Responses
Section titled “Responses”Cancel requested
object
As requested
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
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
Set when failed
By index; outputs whose take was deleted are left out
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 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
The host attempt 1 was sent to, when that host stopped responding and the run was queued again; absent or null otherwise
Interactive (Create, POST …/runs) is dispatched before batch
1; 2 after its runner was lost once and it was queued again
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
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 runner reported running
The batch it runs a row of (lane batch); absent or null for a Create run
The batch row number; with batch_id
A user workflow: the version it ran (its graph is the run’s snapshot); absent or null for a template
The looks it was asked with (RunRequest.looks; a batch run: its row’s or step’s), as requested; absent or empty = none
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
The last try
Name = the hidden run that names its session (local namer, lane batch); only GET /v1/studio/queue lists one. Absent or null otherwise
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
object
Its resident size: what reloading it costs
Example
{ "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
object
Example generated
{ "detail": "example"}Not found
object
Example generated
{ "detail": "example"}The resource’s state forbids this
object
Example generated
{ "detail": "example"}Retryable
object
Example generated
{ "detail": "example"}