The planned peak of a run before it is sent (the Generate button's "≈ 40 s · 21 GB")
const url = 'http://localhost:8300/v1/studio/runs/plan';const options = { method: 'POST', headers: { 'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"workflow_id":"example","inputs":{"prompt.text":"a red fox","echo.steps":20},"looks":["qwen-image/window-light"],"host":"example"}'};
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/plan \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "workflow_id": "example", "inputs": { "prompt.text": "a red fox", "echo.steps": 20 }, "looks": [ "qwen-image/window-light" ], "host": "example" }'Resolves the body as POST /v1/studio/sessions/{session_id}/runs would (the same 422 texts, the same caller’s elements, looks, LoRAs and takes), stores nothing and sends nothing, and answers the host the run would be and workflow plus its LoRA files. both are null when no host is eligible (reason says why, as the run would fail). From reason is then the text POST …/runs answers with its 422.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Missing = {}
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
The chosen looks, every group together, in the order the composer’s tiles list them (tile order, then pick order); missing = []. Resolved with the mentions
(Create’s Run on): run it on this host only, attempt 2 included; absent = automatic. A host that cannot take it now is a 422 at create
Responses
Section titled “Responses”OK
object
The host the run would be eligible on, the first by name; null = none
Its planned peak there in GB
Why no host is eligible (the text the run would fail with, no live host for env mlx); null when one is
Example generated
{ "host": "example", "peak_gb": 1, "reason": "example"}Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
object
Example generated
{ "detail": "example"}Invalid input
object
Example generated
{ "detail": "example"}Retryable
object
Example generated
{ "detail": "example"}