Cancel everything the batch has not finished (Cancel remaining)
const url = 'http://localhost:8300/v1/studio/batches/example/stop';const options = { method: 'POST', headers: {'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>'}};
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/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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Batch UUID (malformed = 404)
Responses
Section titled “Responses”Stop requested
object
The title in the batch’s snapshot
The session its runs are in; null after that session was deleted
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.
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
Why it is paused or failed; null otherwise
Rows by BatchRow.status; queued, running, waiting, succeeded, failed and cancelled add up to total
object
Rows parked on a gate (“waiting for a pick”)
The engine first reported running
Done, failed or stopped
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
With pipeline_id: the title in the batch’s snapshot
With pipeline_id: the version it was submitted with
With pipeline_id: the collection its output node names (the first output, by node id)
A pipeline batch: its worst case per row at Submit
object
Generation runs: Σ over steps of seeds × branches × visits (branches: a fanned-out step’s list max, else 1)
Judge, write and decide visits (each one ask run, at most 2 tries; a re-ask after a failed check is a second run)
Agent visits × max_tool_calls
Requests to remote providers (a re-ask included), per row; the director’s chat is per batch (egress)
Their token bound per row
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
When an agent declares rows.add: the most rows agents may add to a batch (100), each with the per-row worst case
A pipeline batch: judge, write and decide node id → the ask workflow it runs (resolved at Submit, in the snapshot)
object
Made by “Run again” of this batch
A pipeline batch: what leaves the machine, as at Submit
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
Server: a local server (its calls are queue items); remote: a remote provider; network: a custom node that calls the network
The worst case per row (a re-ask included)
object
A pipeline batch: local servers’ reserved memory
A local server the pipeline uses, and the memory the host reserves for it (always, while the provider is enabled)
object
object
The director agent node
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)
object
Requests sent (re-asks included; network retries not)
Tokens the providers reported
Transport failures (retried); counted apart from answers and verdicts
A sequence’s Re-render (pipeline_id null, pipeline_title “Re-render · pipeline_version = the revision); absent or null otherwise
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
object
Example generated
{ "detail": "example"}Not found
object
Example generated
{ "detail": "example"}The resource’s state forbids this
object
Example generated
{ "detail": "example"}Retryable
object
Example generated
{ "detail": "example"}