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

"Use in…": inputs that put this take into a workflow's image or media input, to pre-fill Create

POST
/v1/studio/takes/{take_id}/use
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.

take_id
required
string

Take UUID (malformed = 404)

Media typeapplication/json
object
workflow_id
required
string
param

Which image input (<node id>.<param>); absent = the only one

string
/^[a-z][a-z0-9_]*\.[a-z][a-z0-9_]*$/

The inputs

Media typeapplication/json
object
workflow_id
required
string
inputs
required

<node id>.<param name> → value; only the params to change

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
workflow_status

Reuse only (not use): how the workflow now compares with the one that made the take (studioReuseTake)

string
Allowed values: current changed deleted
elements_status

Reuse only: one per made_with.elements entry, same order; absent or empty when the take mentioned none

Array<object>
object
id
required
string format: uuid
handle
required

As recorded (the prompt that comes back mentions this one)

string
status
required

Current: same version now; changed: edited since (another version); deleted

string
Allowed values: current changed deleted
current_handle
required

Its handle now (differs from handle after a rename: the returned prompt then no longer names it); null when deleted

string | null
loras_status

Reuse only: one per made_with.loras entry, same order; absent or empty without LoRAs

Array<object>
object
id
required
string
status
required

Current: the caller can use it now; missing: shared, no live host lists it now; deleted: own, deleted since

string
Allowed values: current missing deleted
looks

Reuse only: the ids of made_with.looks, in order, as recorded (send them back as RunRequest.looks); absent or empty without looks

Array<string>
<= 8 items
looks_status

Reuse only: one per made_with.looks entry, same order; absent or empty without looks

Array<object>
object
id
required

A look: one of the caller’s own (a UUID) or a starter look <family>/<pack look id> (stable across hosts)

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})$/
status
required

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>

string
Allowed values: current changed deleted missing

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

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Not found

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