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

Cancel everything the batch has not finished (Cancel remaining)

POST
/v1/studio/batches/{batch_id}/stop
curl --request POST \
--url http://localhost:8300/v1/studio/batches/example/stop \
--header 'Authorization: Bearer <token>' \
--header 'x-api-key: <x-api-key>'

In one transaction: control: stop, every queued run of the batch cancelled at once (never sent), every takes already stored are kept), and Runs pipelines asks for afterwards are created cancelled. that never started cancelled and ends with status: stopped. Finished rows and their takes stay. 409 when status is done, failed or stopped, or control is already stop.

batch_id
required
string

Batch UUID (malformed = 404)

Stop requested

Media typeapplication/json
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

Example

{
"status": "queued",
"control": "run",
"egress": [
{
"where": "server",
"thumbnails": 0
}
],
"director": {
"state": "idle"
}
}

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

Retryable

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}