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

Check a workflow document with the graph rules without saving it

POST
/v1/studio/workflows/validate
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.

Media typeapplication/json

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
title
required

Trimmed; blank = 422

string
>= 1 characters <= 80 characters
family
required

The model family every <family>/… kind of it belongs to

string
/^[a-z0-9][a-z0-9_-]{0,63}$/
env
required

The one runner env that runs every node

string
/^[a-z0-9]{1,32}$/
nodes
required
object
>= 1 properties
key
additional properties
object
kind
required
string
/^[a-z][a-z0-9_-]{0,63}(/[a-z][a-z0-9_-]{0,63})?$/
params

Param → value; left out = the schema default. A workflow holds no take: image params null, rows without Image items

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
in

Input port, or wired value param → <node id>.<output>; one wire per key (connecting again replaces it)

object
key
additional properties
string
/^[a-z][a-z0-9_]{0,63}\.[a-z][a-z0-9_]{0,63}$/
bypass
boolean
optional

See GraphNode.optional

boolean
position

The card’s top-left in the Graph view, canvas pixels; absent = laid out by the client (elkjs, “Tidy layout”)

object
x
required
number
>= -1000000 <= 1000000
y
required
number
>= -1000000 <= 1000000
only

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
key
additional properties
Array<string>
>= 1 items unique items
studio

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
composer

In the composer box, in order (the prompt, the references)

Array<string>
<= 8 items
quick

Chips on the composer, in order: params, and library tiles (elements, look:<group>) that open the visual picker

Array
<= 12 items
inspector

The inspector’s sections, in order

Array<object>
<= 12 items
object
title
required
string
>= 1 characters <= 40 characters
items
required
Array<string>
<= 32 items
help

The section’s (i) text in Create; absent = no (i)

string
>= 1 characters <= 300 characters
choices

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

Array<object>
<= 4 items
object
label
required
string
>= 1 characters <= 40 characters
help

The tile’s hover text

string
>= 1 characters <= 300 characters
options
required
Array<object>
>= 2 items <= 8 items
object
name
required
string
>= 1 characters <= 40 characters
help

The option’s line under its name in the tile’s menu (LTX’s Recipe: Detail)

string
>= 1 characters <= 300 characters
set
required
object
>= 1 properties <= 32 properties
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
keyframes

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
first
required

<node id>.<param>, or <node id>.bypass for a bypassable node (a switch)

string
/^[a-z][a-z0-9_]{0,63}\.[a-z][a-z0-9_]{0,63}$/
last
string | null
/^[a-z][a-z0-9_]{0,63}\.[a-z][a-z0-9_]{0,63}$/
labels

A field’s title in the Studio when it should differ from the param’s label

object
<= 64 properties
key
additional properties
string
>= 1 characters <= 60 characters
presets

Named sets of values over this workflow’s paths (Draft, Final); choosing one sets them in the form

object
<= 8 properties
key
additional properties
object
>= 1 properties <= 32 properties
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
preset_help

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)

Array<object>
<= 4 items
object
text
required
string
>= 1 characters <= 300 characters
when
string
>= 1 characters <= 200 characters
preset_order

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

Array<string>
<= 8 items unique items

The problems

Media typeapplication/json
object
problems
required

Sorted by node (whole-workflow ones first), then code, port, param

Array<object>

One broken graph rule; node / port / param say where, for the editor to mark (absent = the whole workflow)

object
code
required

May grow in a minor version; an unknown code blocks running

string
Allowed values: too_many_nodes too_large too_many_outputs too_many_seeds wrong_family unknown_kind env_mismatch unknown_param param_invalid unknown_input unknown_source type_mismatch not_bypassable required_input cycle no_output studio_unknown_path studio_duplicate preset_invalid lora_duplicate lora_unknown lora_family not_optional
message
required

Human text, e.g. sample.cond: expects Conditioning, got Text from prompt.text; not stable

string
>= 1 characters
blocks
required

Save: the document cannot be saved (and cannot run); run: it can be saved, not run

string
Allowed values: save run
node

The node id (for a Studio path, the path’s node, which may not exist)

string
port

The in key: an input port or a wired value param

string
param

A param name (for a Studio path or preset, the path’s param; may be bypass)

string
can_save
required

No problem blocks saving

boolean
can_run
required

No problem at all

boolean

Example

{
"problems": [
{
"code": "too_many_nodes",
"blocks": "save"
}
]
}

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

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