Check a workflow document with the graph rules without saving it
const url = 'http://localhost:8300/v1/studio/workflows/validate';const options = { method: 'POST', headers: { 'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"title":"example","family":"example","env":"example","nodes":{"additionalProperty":{"kind":"example","params":{"additionalProperty":{"take_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}},"in":{"additionalProperty":"example"},"bypass":true,"optional":true,"position":{"x":1,"y":1},"only":{"additionalProperty":["example"]}}},"studio":{"composer":["sample.steps"],"quick":["sample.steps"],"inspector":[{"title":"Quality","items":["sample.steps"],"help":"example","choices":[{"label":"Recipe","options":[{"name":"Two-stage","set":{"upscale.bypass":false,"sample2.bypass":false}},{"name":"One-stage","set":{"upscale.bypass":true,"sample2.bypass":true}}]}]}],"keyframes":{"first":"first.image","last":"last.image"},"labels":{"additionalProperty":"example"},"presets":{"Draft":{"model.variant":"turbo","model.precision":"int8"}},"preset_help":[{"text":"example","when":"example"}],"preset_order":["Fast","Quality","Low memory"]}}'};
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/workflows/validate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "title": "example", "family": "example", "env": "example", "nodes": { "additionalProperty": { "kind": "example", "params": { "additionalProperty": { "take_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } }, "in": { "additionalProperty": "example" }, "bypass": true, "optional": true, "position": { "x": 1, "y": 1 }, "only": { "additionalProperty": [ "example" ] } } }, "studio": { "composer": [ "sample.steps" ], "quick": [ "sample.steps" ], "inspector": [ { "title": "Quality", "items": [ "sample.steps" ], "help": "example", "choices": [ { "label": "Recipe", "options": [ { "name": "Two-stage", "set": { "upscale.bypass": false, "sample2.bypass": false } }, { "name": "One-stage", "set": { "upscale.bypass": true, "sample2.bypass": true } } ] } ] } ], "keyframes": { "first": "first.image", "last": "last.image" }, "labels": { "additionalProperty": "example" }, "presets": { "Draft": { "model.variant": "turbo", "model.precision": "int8" } }, "preset_help": [ { "text": "example", "when": "example" } ], "preset_order": [ "Fast", "Quality", "Low memory" ] } }'Runs every graph rule against the live node palette (GET /v1/studio/nodes) and answers every problem, with can_save and can_run. A body that does not fit WorkflowDoc (the JSON schema: a node id that is not a slug, a missing kind, …) is a plain 422 {detail}; graph problems are never a 422 here. 503 while studio’s registry watches have not delivered yet.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”A workflow as the editor saves or validates it. Node ids are stable slugs: once made they never change. At most 64 nodes and 256 KB (checked as problems, not by the schema). Other top-level keys are ignored by validate (so a WorkflowUpdate body validates as is); WorkflowCreate and WorkflowUpdate are closed.
object
Trimmed; blank = 422
The model family every <family>/… kind of it belongs to
The one runner env that runs every node
object
object
Param → value; left out = the schema default. A workflow holds no take: image params null, rows without Image items
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
Input port, or wired value param → <node id>.<output>; one wire per key (connecting again replaces it)
object
See GraphNode.optional
The card’s top-left in the Graph view, canvas pixels; absent = laid out by the client (elkjs, “Tidy layout”)
object
Enum param → the values this workflow allows (a subset of its enum holding the node’s value); the form offers only those, another value is 422 <node>.<param>: must be one of <values> (LTX dev templates pin model.variant to dev). the workflow holds null): the voice fit reads the narrowed set, a voice outside it is 422 <node>.<param>: this workflow cannot use a designed voice
object
Which params the Studio (Create) shows and where. Present = exactly the placed paths show; every other param keeps its graph value and is edited in Graph view only. Absent = the derived form (every param, as Workflow says). A path is placed at most once over composer, quick and inspector.
object
In the composer box, in order (the prompt, the references)
Chips on the composer, in order: params, and library tiles (elements, look:<group>) that open the visual picker
The inspector’s sections, in order
object
The section’s (i) text in Create; absent = no (i)
Tiles that lead the section, each a named pick among sets of values. A set is checked as a preset (preset_invalid); the tile shows the option whose set holds
object
The tile’s hover text
object
The option’s line under its name in the tile’s menu (LTX’s Recipe: Detail)
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 image params a Timeline New shot binds a first and a last frame into, for a workflow whose frames are image params, not keyframe rows (MiniMax H3 Image to video); Workflow.keyframes takes this shape. Not a placement
object
<node id>.<param>, or <node id>.bypass for a bypassable node (a switch)
A field’s title in the Studio when it should differ from the param’s label
object
Named sets of values over this workflow’s paths (Draft, Final); choosing one sets them in the form
object
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 Preset heading’s (i) text: the first item whose when (the when grammar over the workflow’s paths) holds, or that has none; absent = no (i)
object
Every name of presets once, in the order Create shows them (an object’s key order is not kept); absent = by name. Else 422 studio.preset_order: every preset once
Responses
Section titled “Responses”The problems
object
Sorted by node (whole-workflow ones first), then code, port, param
One broken graph rule; node / port / param say where, for the editor to mark (absent = the whole workflow)
object
May grow in a minor version; an unknown code blocks running
Human text, e.g. sample.cond: expects Conditioning, got Text from prompt.text; not stable
Save: the document cannot be saved (and cannot run); run: it can be saved, not run
The node id (for a Studio path, the path’s node, which may not exist)
The in key: an input port or a wired value param
A param name (for a Studio path or preset, the path’s param; may be bypass)
No problem blocks saving
No problem at all
Example
{ "problems": [ { "code": "too_many_nodes", "blocks": "save" } ]}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"}