"Use in…": inputs that put this take into a workflow's image or media input, to pre-fill Create
const url = 'http://localhost:8300/v1/studio/takes/example/use';const options = { method: 'POST', headers: { 'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"workflow_id":"example","param":"encode.refs"}'};
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/takes/example/use \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "workflow_id": "example", "param": "encode.refs" }'An image take: inputs with exactly one key: param set to this take: {take_id} for an image param, a one-item list [{<field>: {take_id}}] (the take as reference 1) for a rows param. workflow’s only media param that accepts it (or param) set to {take_id} (with trim: in 0, out its inputs: offers; a trim part is capped at max_s: out = min(duration, max_s); an Extend whose clip would pass 321 frames gets the largest seconds that fits). The client merges it over the form; nothing is created. 404 for a take that is unknown, another user’s, deleted or a pending upload. 422 when the take does not fit the input (the run texts of Image inputs and Media inputs: take <id> is not an image, take <id> has no size, take <id> is not a video, take <id> has no sound, take <id> is 450 × 256; this input needs sides on a 32 px grid, take <id> has 390 frames; this input takes at most 321; an Extend with no 8-frame step left under 321 frames: take <id> has <n> frames; extending it would pass 321), the workflow is unknown (unknown workflow <id>), it has no such param (workflow <id> takes no image input; a video or audio take: workflow <id> takes no <kind> input), several and no param (workflow <id> has several image inputs; name one in param), or param is not one of them. The client lists the workflows to offer with GET /v1/studio/takes/{take_id}/uses.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Take UUID (malformed = 404)
Request Bodyrequired
Section titled “Request Bodyrequired”object
Which image input (<node id>.<param>); absent = the only one
Responses
Section titled “Responses”The inputs
object
<node id>.<param name> → value; only the params to change
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
Reuse only (not use): how the workflow now compares with the one that made the take (studioReuseTake)
Reuse only: one per made_with.elements entry, same order; absent or empty when the take mentioned none
object
As recorded (the prompt that comes back mentions this one)
Current: same version now; changed: edited since (another version); deleted
Its handle now (differs from handle after a rename: the returned prompt then no longer names it); null when deleted
Reuse only: one per made_with.loras entry, same order; absent or empty without LoRAs
object
Current: the caller can use it now; missing: shared, no live host lists it now; deleted: own, deleted since
Reuse only: the ids of made_with.looks, in order, as recorded (send them back as RunRequest.looks); absent or empty without looks
Reuse only: one per made_with.looks entry, same order; absent or empty without looks
object
A look: one of the caller’s own (a UUID) or a starter look <family>/<pack look id> (stable across hosts)
Current: the same version is there now; changed: another version now (edited since, or a pack that bumped it); deleted: an own look deleted since; missing: a starter look no live host publishes now (it may come back). Running a deleted or missing one is 422 looks[<i>]: unknown look <id>
Example
{ "inputs": { "prompt.text": "a red fox", "echo.steps": 20 }, "workflow_status": "current", "elements_status": [ { "status": "current" } ], "loras_status": [ { "status": "current" } ], "looks": [ "qwen-image/window-light" ], "looks_status": [ { "id": "qwen-image/window-light", "status": "current" } ]}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"}