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

The planned peak of a run before it is sent (the Generate button's "≈ 40 s · 21 GB")

POST
/v1/studio/runs/plan
curl --request POST \
--url http://localhost:8300/v1/studio/runs/plan \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "workflow_id": "example", "inputs": { "prompt.text": "a red fox", "echo.steps": 20 }, "looks": [ "qwen-image/window-light" ], "host": "example" }'

Resolves the body as POST /v1/studio/sessions/{session_id}/runs would (the same 422 texts, the same caller’s elements, looks, LoRAs and takes), stores nothing and sends nothing, and answers the host the run would be and workflow plus its LoRA files. both are null when no host is eligible (reason says why, as the run would fail). From reason is then the text POST …/runs answers with its 422.

Media typeapplication/json
object
workflow_id
required
string
inputs

Missing = {}

object
key
additional properties
Any of:

Null only for a seed (random) or an image, media, span or voice param left empty

string | number | boolean | null
looks

The chosen looks, every group together, in the order the composer’s tiles list them (tile order, then pick order); missing = []. Resolved with the mentions

Array<string>
<= 8 items
host

(Create’s Run on): run it on this host only, attempt 2 included; absent = automatic. A host that cannot take it now is a 422 at create

string
/^[a-z0-9]{1,32}$/

OK

Media typeapplication/json
object
host
required

The host the run would be eligible on, the first by name; null = none

string | null
peak_gb
required

Its planned peak there in GB

number | null
reason
required

Why no host is eligible (the text the run would fail with, no live host for env mlx); null when one is

string | null

Example generated

{
"host": "example",
"peak_gb": 1,
"reason": "example"
}

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

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