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

Save a pipeline, from a whole document or as a copy of one of the caller's pipelines

POST
/v1/studio/pipelines
curl --request POST \
--url http://localhost:8300/v1/studio/pipelines \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "title": "example", "nodes": { "additionalProperty": { "kind": "inputs", "title": "example", "inputs": [ { "name": "example", "type": "Text", "label": "example" } ], "position": { "x": 1, "y": 1 } } }, "edges": [ [ "still", "review" ] ], "remote": { "enabled": false, "providers": [ "example" ], "max_calls": 200, "max_tokens": 400000 } }'

Mirrors POST /v1/studio/workflows. Two forms (PipelineCreate): a whole document (optional based_on), or {based_on, title?} to copy one of the caller’s pipelines (“Duplicate”; title absent = <source title> copy, cut to 80 characters). The new pipeline’s id is a UUID, version 1. Checked with the pipeline rules as the caller: any save-blocking problem is 422 PipelineError with every problem; run-blocking problems are saved and returned in problems. 404 when based_on is unknown or another user’s. 409 when the caller already has 100 pipelines (You have 100 pipelines; delete some first.). 503 while studio’s registry watches have not delivered yet.

Media typeapplication/json
One of:
object
based_on

The pipeline it was made from; must be the caller’s (404)

string format: uuid
title
required

Trimmed; blank = 422

string
>= 1 characters <= 80 characters
nodes
required
object
>= 1 properties
key
additional properties
One of: discriminator: kind
object
kind
required
string
Allowed value: inputs
title

The card’s title; absent = derived by the client

string
>= 1 characters <= 60 characters
inputs
required

The batch’s columns, in order

Array<object>
>= 1 items <= 16 items
object
name
required

Unique in the node; a batch column is <inputs node id>.<name>; a step binds it as $<name>

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

A pipeline input’s type: Text fills a string/text param, Int an int, Float a float, Seed a seed, Image an image param (or a rows param with one Image field, as a one-item list)

string
Allowed values: Text Image Int Float Seed
label

Absent = the name

string
>= 1 characters <= 60 characters
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
edges
required
Array<array>
<= 64 items
remote

Calls that leave the machine. Off by default (absent = off); a remote: model or a network custom node needs enabled and its provider in providers (remote_not_enabled), and the deployment’s remote switch (remote_off). The caps are per batch, over every row and the director’s chat; a call past one fails its row (remote cap reached)

object
enabled
boolean
providers

Remote providers this pipeline may call; missing = []

Array<string>
<= 8 items unique items
max_calls
integer
default: 200 >= 1 <= 10000
max_tokens
integer
default: 400000 >= 1000 <= 10000000

The pipeline, with problems

Media typeapplication/json
object
id
required
string format: uuid
based_on
required

The pipeline it was copied or saved from (it may be gone since); null otherwise

string | null
version
required

1 on create, +1 on every PUT and PATCH

integer
>= 1
created_at
required
string format: date-time
updated_at
required
string format: date-time
workflow_titles
required

Every step’s workflow id → its title now (an unknown one left out), for the cards

object
key
additional properties
string
last_batch
required
One of:
object
id
required
string format: uuid
title
required
string
>= 1 characters <= 200 characters
workflow_id
required
string
workflow_title
required

The title in the batch’s snapshot

string
session_id
required

The session its runs are in; null after that session was deleted

string | null format: uuid
status
required

Queued: stored, the engine has not started it; running; waiting: the engine reports running but every row that has not ended is waiting on a gate (pick to continue); paused (reason says why: by you, three rows in a row failed with one error, or the engine restarted: press Resume); done: every row ended (some may have failed); failed: the engine could not run it at all (reason); stopped: by Stop. events, except queued.

string
Allowed values: queued running waiting paused done failed stopped
control
required

What the owner asked for last (Pause, Resume, Stop); status follows once the engine confirms. While pause or paused, the dispatcher holds the batch’s queued runs

string
Allowed values: run pause stop
reason
required

Why it is paused or failed; null otherwise

string | null
counts
required

Rows by BatchRow.status; queued, running, waiting, succeeded, failed and cancelled add up to total

object
total
required
integer
>= 1 <= 500
queued
required
integer
running
required
integer
waiting

Rows parked on a gate (“waiting for a pick”)

integer
succeeded
required
integer
failed
required
integer
cancelled
required
integer
created_at
required
string format: date-time
started_at
required

The engine first reported running

string | null format: date-time
finished_at
required

Done, failed or stopped

string | null format: date-time
pipeline_id

A batch of a pipeline: the pipeline (it may be deleted since); absent or null for a batch of one workflow, whose workflow_* then describe it. For a pipeline batch workflow_id / workflow_title are its first step’s

string | null format: uuid
pipeline_title

With pipeline_id: the title in the batch’s snapshot

string | null
pipeline_version

With pipeline_id: the version it was submitted with

integer | null
>= 1
collection

With pipeline_id: the collection its output node names (the first output, by node id)

string | null
bounds

A pipeline batch: its worst case per row at Submit

object
runs
required

Generation runs: Σ over steps of seeds × branches × visits (branches: a fanned-out step’s list max, else 1)

integer
<= 64
llm_calls
required

Judge, write and decide visits (each one ask run, at most 2 tries; a re-ask after a failed check is a second run)

integer
<= 32
tool_calls

Agent visits × max_tool_calls

integer
remote_calls

Requests to remote providers (a re-ask included), per row; the director’s chat is per batch (egress)

integer
remote_tokens

Their token bound per row

integer
chat

With a director only, whatever its model source: its chat’s worst case per batch (not per row): calls max_wakes × max_turns × 2 (a re-ask included; local models: queue items), tokens max_wakes × max_tokens, tool_calls max_wakes × max_tool_calls

object
calls
required
integer
tokens
required
integer
tool_calls
required
integer
added_rows

When an agent declares rows.add: the most rows agents may add to a batch (100), each with the per-row worst case

integer
>= 1 <= 100
models

A pipeline batch: judge, write and decide node id → the ask workflow it runs (resolved at Submit, in the snapshot)

object
key
additional properties
string
memory
One of:
object
examples
required
integer
notes
required
integer
taken_at
required
string format: date-time
again_of

Made by “Run again” of this batch

string | null format: uuid
same_decisions
boolean
egress

A pipeline batch: what leaves the machine, as at Submit

Array<object>

One node whose calls leave this process for a model server: exactly what is sent (Submit shows it). fields: the parts of the prompt, by name: instruction, question, routes, each from source, items, tool:<tool> (tool results go back to the model), chat (the director’s chat), input:<field> (a custom node’s)

object
node
required
string
where
required

Server: a local server (its calls are queue items); remote: a remote provider; network: a custom node that calls the network

string
Allowed values: server remote network
provider
required
string | null
model
required
string | null
fields
required
Array<string>
<= 32 items
thumbnails
required
integer
0
per_row
required

The worst case per row (a re-ask included)

object
calls
required
integer
tokens
required
integer
chat
required
One of:
object
calls
required
integer
tokens
required
integer
reserved

A pipeline batch: local servers’ reserved memory

Array<object>

A local server the pipeline uses, and the memory the host reserves for it (always, while the provider is enabled)

object
provider
required
string
host
required
string
memory_gb
required
number
>= 0.5
director
One of:
object
node
required

The director agent node

string
state
required

Idle: asleep until a message or a row ends; waiting: its turn’s call is queued or held (Pause); thinking: a call or its tools run; off: the batch ended or max_wakes reached (POST …/chat is 409)

string
Allowed values: idle waiting thinking off
wakes
required
integer
max_wakes
required
integer
>= 1 <= 500
remote
One of:
object
calls
required

Requests sent (re-asks included; network retries not)

integer
tokens
required

Tokens the providers reported

integer
network_failures
required

Transport failures (retried); counted apart from answers and verdicts

integer
max_calls
required
integer
>= 1
max_tokens
required
integer
>= 1
timeline_id

A sequence’s Re-render (pipeline_id null, pipeline_title “Re-render · ”, pipeline_version = the revision); absent or null otherwise

string | null format: uuid
problems

Only from GET /v1/studio/pipelines/{pipeline_id}, POST and PUT; empty = it can run

Array<object>

One broken pipeline rule, the same shape as Problem: node the pipeline node, port a bind key (<node>.<param> of the step’s workflow) or from for an output, param an input name or a step input key

object
code
required

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

string
Allowed values: too_many_nodes too_large inputs_node duplicate_input unknown_node edge_invalid branch_not_gate uncapped_cycle too_many_runs unreachable dead_end no_output gate_takes gate_keep bind_source unknown_workflow workflow_cannot_run unknown_preset step_input_invalid bind_unknown bind_type unbound_input step_seeds unknown_look look_fit too_many_calls judge_criteria decide_routes write_target unknown_model agent_tools director_count fanout_source fanout_takes model_media remote_not_enabled remote_off unknown_custom custom_input
message
required

Human text; not stable

string
>= 1 characters
blocks
required
string
Allowed values: save run
node
string
port
string
param
string
bounds

With problems when nothing blocks saving

object
runs
required

Generation runs: Σ over steps of seeds × branches × visits (branches: a fanned-out step’s list max, else 1)

integer
<= 64
llm_calls
required

Judge, write and decide visits (each one ask run, at most 2 tries; a re-ask after a failed check is a second run)

integer
<= 32
tool_calls

Agent visits × max_tool_calls

integer
remote_calls

Requests to remote providers (a re-ask included), per row; the director’s chat is per batch (egress)

integer
remote_tokens

Their token bound per row

integer
chat

With a director only, whatever its model source: its chat’s worst case per batch (not per row): calls max_wakes × max_turns × 2 (a re-ask included; local models: queue items), tokens max_wakes × max_tokens, tool_calls max_wakes × max_tool_calls

object
calls
required
integer
tokens
required
integer
tool_calls
required
integer
added_rows

When an agent declares rows.add: the most rows agents may add to a batch (100), each with the per-row worst case

integer
>= 1 <= 100
egress

With bounds

Array<object>

One node whose calls leave this process for a model server: exactly what is sent (Submit shows it). fields: the parts of the prompt, by name: instruction, question, routes, each from source, items, tool:<tool> (tool results go back to the model), chat (the director’s chat), input:<field> (a custom node’s)

object
node
required
string
where
required

Server: a local server (its calls are queue items); remote: a remote provider; network: a custom node that calls the network

string
Allowed values: server remote network
provider
required
string | null
model
required
string | null
fields
required
Array<string>
<= 32 items
thumbnails
required
integer
0
per_row
required

The worst case per row (a re-ask included)

object
calls
required
integer
tokens
required
integer
chat
required
One of:
object
calls
required
integer
tokens
required
integer
reserved

With bounds

Array<object>

A local server the pipeline uses, and the memory the host reserves for it (always, while the provider is enabled)

object
provider
required
string
host
required
string
memory_gb
required
number
>= 0.5
title
required

Trimmed; blank = 422

string
>= 1 characters <= 80 characters
nodes
required
object
>= 1 properties
key
additional properties
One of: discriminator: kind
object
kind
required
string
Allowed value: inputs
title

The card’s title; absent = derived by the client

string
>= 1 characters <= 60 characters
inputs
required

The batch’s columns, in order

Array<object>
>= 1 items <= 16 items
object
name
required

Unique in the node; a batch column is <inputs node id>.<name>; a step binds it as $<name>

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

A pipeline input’s type: Text fills a string/text param, Int an int, Float a float, Seed a seed, Image an image param (or a rows param with one Image field, as a one-item list)

string
Allowed values: Text Image Int Float Seed
label

Absent = the name

string
>= 1 characters <= 60 characters
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
edges
required
Array<array>
<= 64 items
remote

Calls that leave the machine. Off by default (absent = off); a remote: model or a network custom node needs enabled and its provider in providers (remote_not_enabled), and the deployment’s remote switch (remote_off). The caps are per batch, over every row and the director’s chat; a call past one fails its row (remote cap reached)

object
enabled
boolean
providers

Remote providers this pipeline may call; missing = []

Array<string>
<= 8 items unique items
max_calls
integer
default: 200 >= 1 <= 10000
max_tokens
integer
default: 400000 >= 1000 <= 10000000

Example

{
"nodes": {
"additionalProperty": {
"kind": "inputs",
"inputs": [
{
"type": "Text"
}
]
}
},
"edges": [
[
"still",
"review"
]
],
"remote": {
"enabled": false,
"max_calls": 200,
"max_tokens": 400000
}
}

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

The resource’s state forbids this

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

The body does not fit the schema ({detail} only), or the pipeline has problems that block saving (problems: every problem)

Media typeapplication/json
object
detail
required

pipeline has <n> problems: <first message> for pipeline problems

string
problems

Every problem; absent for a schema error

Array<object>

One broken pipeline rule, the same shape as Problem: node the pipeline node, port a bind key (<node>.<param> of the step’s workflow) or from for an output, param an input name or a step input key

object
code
required

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

string
Allowed values: too_many_nodes too_large inputs_node duplicate_input unknown_node edge_invalid branch_not_gate uncapped_cycle too_many_runs unreachable dead_end no_output gate_takes gate_keep bind_source unknown_workflow workflow_cannot_run unknown_preset step_input_invalid bind_unknown bind_type unbound_input step_seeds unknown_look look_fit too_many_calls judge_criteria decide_routes write_target unknown_model agent_tools director_count fanout_source fanout_takes model_media remote_not_enabled remote_off unknown_custom custom_input
message
required

Human text; not stable

string
>= 1 characters
blocks
required
string
Allowed values: save run
node
string
port
string
param
string

Example

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

Retryable

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}