The GPU-time estimate of a pick (per block, per lane, the total), the run order and the ask rule
const url = 'http://localhost:8300/v1/studio/magic/boards/example/plan';const options = { method: 'POST', headers: { 'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"blocks":["example"],"lane":"example","stale":true}'};
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/magic/boards/example/plan \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "blocks": [ "example" ], "lane": "example", "stale": true }'Nothing is stored. Each block: your recent render times of its workflow on the host it would run on (the median of the last 5, scaled by length and size), else the pack’s declared rate, else unknown; ask is the Assistant’s ask rule.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”A Magic board’s UUID (another user’s or malformed = 404)
Request Bodyrequired
Section titled “Request Bodyrequired”Which blocks: blocks (in this order), or a lane’s, or (stale) every block that is not done; exactly one.
object
A lane’s, block’s, transition’s or asset’s id, unique on the board (lanes, blocks and transitions share one namespace); studio makes b<n>, l<n>, t<n>
Responses
Section titled “Responses”OK
object
object
A lane’s, block’s, transition’s or asset’s id, unique on the board (lanes, blocks and transitions share one namespace); studio makes b<n>, l<n>, t<n>
The estimate in GPU seconds (every run of its count); null: unknown
Yours: your recent runs of that workflow on that host; pack: the pack’s declared rate
The host it would run on
Why it cannot run (then nothing else is planned for it)
object
A lane’s, block’s, transition’s or asset’s id, unique on the board (lanes, blocks and transitions share one namespace); studio makes b<n>, l<n>, t<n>
The whole pick; null when a block’s is unknown
The run order: storyboard frames first, then lane by lane, each in time
The ask rule: true when a run (not a board frame) has no estimate or the total of those runs is above ask_above_gpu_minutes
The ask card’s line: 3 shots, about 6 min
Example
{ "blocks": [ { "source": "yours" } ]}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"}Invalid input
object
Example generated
{ "detail": "example"}Retryable
object
Example generated
{ "detail": "example"}