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

The runner hosts and their state, redacted

GET
/v1/studio/hosts
curl --request GET \
--url http://localhost:8300/v1/studio/hosts \
--header 'Authorization: Bearer <token>' \
--header 'x-api-key: <x-api-key>'

offline when the key is older than 30 s. A host running anyone’s run is busy; which run and whose is never shown. envs share and what they hold together (the memory chip shows it for the host the run will use), and each resident component its last_used. cached_gb and each resident component’s pinned_why; for an admin (and only then) every entry adds admin (the host’s settings, the env’s policy in effect, the current run, idle since, unload pending, the Hub token’s presence), and a baked entry shows another user’s LoRA with its lora_id and strength (name still null) so it can be named for Unload and Pin.

Hosts

Media typeapplication/json
object
hosts
required
Array<object>
object
host
required
string
env
required
string
state
required
string
Allowed values: idle busy offline
updated_at
required

The runner’s last refresh

string format: date-time
memory
object
budget_gb
required
number
used_gb
required
number
host_memory

The same on every entry of one host. budget_gb = the smallest memory.budget_gb among the host’s keys (fresh or offline) that report one; used_gb = the sum over those keys of the larger of Σ gb of its resident components and its measured memory.used_gb (what the dispatcher’s admission counts), both rounded to 0.1. Absent when no key of the host reports memory

object
budget_gb
required
number
used_gb
required
number
kind

What the numbers measure, from the host’s keys’ device.kind: unified (mps: Apple silicon’s shared memory), vram (cuda: the GPU’s memory), ram (cpu). absent from older runners = unified

string
Allowed values: unified vram ram
device

When the runner reports it: its hosts key’s device

object
kind
required
string
Allowed values: cuda mps cpu
name
required
string
memory_total_gb
required

VRAM (cuda), unified RAM (mps), RAM (cpu)

number
memory_used_gb

Cuda: the whole device’s used memory, every process

number
capability
string
driver
string
runtime
string
host_ram

Cuda hosts only: the host-RAM limit (RAM − RUNNER_RAM_RESERVE_GB) and the process’s resident set; load staging and CPU-side components count here, not in memory / host_memory

object
budget_gb
required
number
used_gb
required
number
resident

Model components loaded now; no run or owner

Array<object>
object
component
required
string
model
required
string
variant
required
string
precision
required
string
Allowed values: bf16 fp16 int8 int4 fp8 fp32
compute

The load option the model node’s compute set (LTX on MLX: the transformer at float16 is its own entry); absent = float32

string
Allowed values: float32 float16
gb
required
number
pinned
required
boolean
last_used

When the runner last used it; absent from older runners

string format: date-time
pinned_why

With pinned true: in_use = the running run uses it; pin = a pin of the host

string
Allowed values: in_use pin
device

Cuda hosts: held in host RAM (CPU offload), counted in host_ram, not in memory; absent = on the device

string
Allowed values: cpu
loras

A component with LoRAs baked in is its own entry: those LoRAs in order; absent or empty = the plain component. Another user’s own LoRA shows only its size (lora_id, name, strength null)

Array<object>
object
lora_id
required
string | null
name
required
string | null
strength
required
number | null
bytes
required
integer
>= 1
cached_gb

What the env holds beyond its resident components (cached handles: cached node results, the device cache, the runtime): max(0, memory.used_gb − Σ gb), rounded to 0.1; absent without memory.

number
machine
object
os
required
string
Allowed values: macos linux
accel
required
string
Allowed values: metal cuda cpu
packaging
required
string
Allowed values: native container
ram_gb
required
number
gpu_limit_gb

The macOS GPU memory limit (sysctl iogpu.wired_limit_mb) when one is set; null when unset, on other hosts and from older runners (absent)

number | null
admin

Admins only: what the Hosts screen needs beyond the redacted view

object
settings
required
One of:
object
host
required
string
version
required
integer
>= 1
after_run
required

What stays loaded once a run ends: unload = nothing; keep_warm = everything until memory is needed or the idle timeout passes (the default); keep_pinned = only the pins

string
Allowed values: unload keep_warm keep_pinned
idle_unload_min
required
integer
<= 1440
reserve_gb
required
number
reserve_mode
required

: auto = the macOS GPU limit when set (at most RAM − 4 GB), else device memory − RUNNER_RESERVE_GB; custom = device memory − reserve_gb (the default). Absent = custom (a PUT: unchanged)

string
Allowed values: auto custom
pins
required
Array<object>

One resident entry’s identity (registry $defs/pin): what a resident component of GET /v1/studio/hosts shows, with its entry’s env

object
env
required
string
/^[a-z0-9]{1,32}$/
component
required
string
/^[a-z][a-z0-9_]{0,63}$/
model
required
string
/^[a-z0-9][a-z0-9_.-]{0,63}$/
variant
required
string
/^[a-z0-9][a-z0-9_-]{0,63}$/
precision
required
string
Allowed values: bf16 fp16 int8 int4 fp8 fp32
compute

The entry’s compute as GET /v1/studio/hosts shows it; absent = float32

string
Allowed values: float32 float16
loras

A baked set, in order (lora_id and strength as the admin’s hosts view shows them); absent or empty = the plain component

Array<object>
<= 32 items
object
lora_id
required
string
/^([0-9a-f]{64}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$/
strength
required
number
applied
required

Every fresh hosts key of the host (but a local server’s server env, which holds no weights) reports policy.settings_version = version

boolean
updated_at
required
string format: date-time
policy
required
One of:
object
after_run
required

What stays loaded once a run ends: unload = nothing; keep_warm = everything until memory is needed or the idle timeout passes (the default); keep_pinned = only the pins

string
Allowed values: unload keep_warm keep_pinned
idle_unload_min
required
integer
reserve_gb
required
number
reserve_mode

: auto = the macOS GPU limit when set (at most RAM − 4 GB), else device memory − RUNNER_RESERVE_GB; custom = device memory − reserve_gb (the default). Absent = custom (a PUT: unchanged)

string
Allowed values: auto custom
settings_version
required
integer | null
>= 1
run
required
One of:
object
run_id
required
string format: uuid
owner_id
required

The run’s owner; the web shows their name from GET /auth/admin/users

string format: uuid
lane
required

Interactive (Create, POST …/runs) is dispatched before batch

string
Allowed values: interactive batch
node
required

From its latest progress event; null before the first

string | null
step
required
integer | null
>= 1
of
required
integer | null
>= 1
phase
required
string | null
eta_s
required
number | null
idle_since
required

The end of the last run released to the host (any env); null while busy or never

string | null format: date-time
unload_pending
required

An admin unload waits for this env’s run to end

boolean
hub_token
required

The runner reports a Hub token file (never the token)

boolean

Example

{
"hosts": [
{
"state": "idle",
"host_memory": {
"kind": "unified"
},
"device": {
"kind": "cuda",
"name": "NVIDIA L4",
"capability": "8.9",
"driver": "580.95.05",
"runtime": "torch 2.15.0 · CUDA 13.2"
},
"resident": [
{
"precision": "bf16",
"compute": "float32",
"pinned_why": "in_use",
"device": "cpu"
}
],
"machine": {
"os": "macos",
"accel": "metal",
"packaging": "native"
},
"admin": {
"settings": {
"after_run": "unload",
"reserve_mode": "auto",
"pins": [
{
"precision": "bf16",
"compute": "float32"
}
]
},
"policy": {
"after_run": "unload",
"reserve_mode": "auto"
},
"run": {
"lane": "interactive"
}
}
}
]
}

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

Retryable

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}