The runner hosts and their state, redacted
const url = 'http://localhost:8300/v1/studio/hosts';const options = { method: 'GET', headers: {'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Hosts
object
object
The runner’s last refresh
object
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
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
When the runner reports it: its hosts key’s device
object
VRAM (cuda), unified RAM (mps), RAM (cpu)
Cuda: the whole device’s used memory, every process
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
Model components loaded now; no run or owner
object
The load option the model node’s compute set (LTX on MLX: the transformer at float16 is its own entry); absent = float32
When the runner last used it; absent from older runners
With pinned true: in_use = the running run uses it; pin = a pin of the host
Cuda hosts: held in host RAM (CPU offload), counted in host_ram, not in memory; absent = on the device
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)
object
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.
object
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)
Admins only: what the Hosts screen needs beyond the redacted view
object
object
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
: 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)
One resident entry’s identity (registry $defs/pin): what a resident component of GET /v1/studio/hosts shows, with its entry’s env
object
The entry’s compute as GET /v1/studio/hosts shows it; absent = float32
A baked set, in order (lora_id and strength as the admin’s hosts view shows them); absent or empty = the plain component
object
Every fresh hosts key of the host (but a local server’s server env, which holds no weights) reports policy.settings_version = version
object
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
: 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)
object
The run’s owner; the web shows their name from GET /auth/admin/users
Interactive (Create, POST …/runs) is dispatched before batch
From its latest progress event; null before the first
The end of the last run released to the host (any env); null while busy or never
An admin unload waits for this env’s run to end
The runner reports a Hub token file (never the token)
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
object
Example generated
{ "detail": "example"}Retryable
object
Example generated
{ "detail": "example"}