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

The GPU-time estimate of a pick (per block, per lane, the total), the run order and the ask rule

POST
/v1/studio/magic/boards/{board_id}/plan
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.

board_id
required
string

A Magic board’s UUID (another user’s or malformed = 404)

Media typeapplication/json

Which blocks: blocks (in this order), or a lane’s, or (stale) every block that is not done; exactly one.

object
blocks
Array<string>
>= 1 items <= 200 items unique items
lane

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>

string
/^[A-Za-z0-9_-]{1,40}$/
stale
boolean

OK

Media typeapplication/json
object
blocks
required
Array<object>
object
block
required

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>

string
/^[A-Za-z0-9_-]{1,40}$/
seconds
required

The estimate in GPU seconds (every run of its count); null: unknown

number | null
source
required

Yours: your recent runs of that workflow on that host; pack: the pack’s declared rate

string
Allowed values: yours pack unknown
host
required

The host it would run on

string | null
peak_gb
required
number | null
reason
required

Why it cannot run (then nothing else is planned for it)

string | null
lanes
required
Array<object>
object
lane
required

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>

string
/^[A-Za-z0-9_-]{1,40}$/
seconds
required
number | null
blocks
required
integer
seconds
required

The whole pick; null when a block’s is unknown

number | null
order
required

The run order: storyboard frames first, then lane by lane, each in time

Array<string>
ask
required

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

boolean
ask_text
required

The ask card’s line: 3 shots, about 6 min

string
limit_minutes
required
number

Example

{
"blocks": [
{
"source": "yours"
}
]
}

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

Invalid input

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Retryable

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}