Answer a gate for one parked row (pick 1..keep of its candidates, or reject them all)
const url = 'http://localhost:8300/v1/studio/batches/example/rows/example/pick';const options = { method: 'POST', headers: { 'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"gate":"example","take_ids":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"note":"example"}'};
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/rows/example/pick \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "gate": "example", "take_ids": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "note": "example" }'In one transaction: records the pick on the row’s gate cell (picked / rejected), sets the row running pipelines resumes the row’s thread with it. Rows can be picked in any order. The same pick again for the same gate visit answers 202 with the row and sends nothing. 409 when the row is not parked on gate (row <n> is not waiting at <gate>), a different pick for that visit was already sent, or the batch is stopped/failed or its control is stop. 422 when take_ids are not among the candidates, repeat one, or are more than the gate’s keep (pick 1 to <keep> of the candidates). Studio derives agreed (the picked set equals the judge’s suggestion; reject all with an empty suggestion: true), pipelines stores a pick with a note as a judge example in the pipeline’s memory. note on a gate pick is 422 (a note is kept for judge picks only).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Batch UUID (malformed = 404)
Row number, from 1 (unknown or malformed = 404)
Request Bodyrequired
Section titled “Request Bodyrequired”object
A judge pick only: why (kept as a judge example in the pipeline’s memory: how the judge learns your taste)
object
A judge pick only: why (kept as a judge example in the pipeline’s memory: how the judge learns your taste)
Responses
Section titled “Responses”The row, moving on
object
1; +1 on every Retry
What the row runs with: the base inputs, then its own values, then its seed (a pipeline batch: <inputs node>.<input> keys)
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
A batch of one workflow: the row’s looks (its cell, else BatchCreate.looks); absent or empty = none
Queued until its run starts (also while the run waits in the queue or is held), running while it runs, waiting while parked on a gate, then the row’s end
The current attempt’s run (a pipeline row: its latest run); null before it has one
The current attempt’s takes (deleted ones left out); a pipeline row: the takes its output received, once it succeeded
Set when failed
Its run reported running
Pipeline batches: the node the row is at now (parked on, or running); null when ended or not started
object
The gate node id
; absent = gate
A judge: its pick, pre-selected ([] when no take passed)
Which visit of the gate (1 + times its loop went round)
Pick 1 to keep of the candidates
The takes to pick from (the gate’s step’s latest takes)
Pipeline batches: the run table’s cells, one per node the row reached, in the order first reached; absent for a batch of one workflow
object
The pipeline node id
One per visit (loop attempts stacked), oldest first
object
A step attempt: its runs’ state (queued while none of them has started); a gate attempt: waiting, picked or rejected; an output: succeeded. write, decide: queued / running, then succeeded or failed; memory: succeeded
A step: its runs, by seed index
A step: its takes; a gate: the picked ones; an output: what it received
A gate: the takes it offered
A step: the seed of each run, by seed index
A step: the runs’ time on their hosts, summed (started to finished); null until one finished
A judge attempt (the run table’s judged cell: “picked 1 of 4”, the first failed criterion; the attempts side by side with each take’s reason)
object
The best take’s first false must; null when it passed
Suggest: the user’s pick equalled the suggestion; null before a pick and in Auto
object
Every criterion’s answer, musts then nices
A decide: the route taken
object
A fanned-out step: one attempt per (visit, branch); branch = the item index
An agent attempt (4 turns · 6 tools · 14 shots)
object
Its list’s length (0 without one)
A judge with a branch or a decide: its capped loop for the cell’s “retried
object
The node the cap sends the row to
Example
{ "inputs": { "prompt.text": "a red fox", "echo.steps": 20 }, "looks": [ "qwen-image/window-light" ], "status": "queued", "thumb_url": "/files/u/7d1e.../runs/3c9a.../0.png?exp=1767225600&sig=ab12", "parked": { "kind": "gate" }, "cells": [ { "kind": "step", "attempts": [ { "status": "queued", "thumb_url": "/files/u/7d1e.../runs/3c9a.../0.png?exp=1767225600&sig=ab12", "judged": { "verdict": "pass" } } ] } ]}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"}Invalid input
object
Example generated
{ "detail": "example"}Retryable
object
Example generated
{ "detail": "example"}