RSI Boxes
The RSI Box object
Section titled “The RSI Box object”{ "id": "sbx_…", "name": "train-1", "project": "default", "created_by": "researcher@example.com", "created_with": { "type": "api_key", "id": "key_…", "name": "training", "start": "rsi_AbCdE" }, "can_stop": true, "state": "running", "sku": "gpu.rtxpro5000", "spec": { "vcpus": 8, "memoryMb": 32768, "diskMb": 102400, "gpu": { "sku": "gpu.rtxpro5000", "count": 1 } }, "hardware": { "profile": "hw_3fa91c07", "cpu_model": "threadripper-pro-9975wx", "cpu_sockets": 1, "gpu_model": "rtxpro5000", "memory_channels": 4, "memory_speed_mhz": 6400 }, "network": "gateway", "allowed_hosts": [], "created_at": 1794700000, "started_at": 1794700060, "stopped_at": null}state: Lists (GET /v1/boxes) return the stored statespending,running,stopped, andfailed. Detail (GET /v1/boxes/{id}) and stop (POST /v1/boxes/{id}/stop) responses can also return live compute transition states such asqueued,scheduled,creating,powering_off, orterminating; once ended,terminatedandpowered_offare mapped tostopped, so/v1/boxesnever returnsterminatedorpowered_off. See Lifecycle states.sku: The primary resource usage is reported under — the GPU SKU, orcpufor a CPU-only Box.hardware: The machine the Box was placed on (see Hardware), ornulluntil the Box has been observed on a node.network:"gateway","none", ornullfor Boxes created before network policy was recorded.allowed_hosts: Allowed outbound DNS hostnames for"gateway"networking ([]or["*"]allows public egress;[]whennetworkis"none"), ornullif not recorded.created_by: Creator’s email, ornullif unavailable. For a Box created with an API key, this is the user who issued the key.can_stop: Whether the caller is permitted to stop this Box.created_with: Creation-time snapshot of the credential used (renaming or revoking a key does not change it):
| Value | Meaning |
|---|---|
{ "type": "api_key", "id": "…", "name": "training", "start": "rsi_AbCdE" } |
Key ID, name (may be null), and short prefix |
{ "type": "web_session" } |
Signed-in browser session |
{ "type": "cli_session" } |
CLI session token |
null |
Creation credential was not recorded |
Create
Section titled “Create”POST /v1/boxesAll body fields are optional; see Console HTTP create fields. The CLI and Python SDK use the compute request shape.
Returns 201 with the RSI Box object plus:
| Field | Meaning |
|---|---|
hourly_rate_micro |
Price per hour at creation |
life_seconds |
Effective lifetime limit in seconds, or null for none |
An explicit life above the team’s configured maximum returns 400 life_limit_exceeded. An explicit life above the affordable duration returns 402 insufficient_credits. Both reject creation rather than shortening the requested duration, and include field: "life" and max_life_seconds in the response. If life is omitted, the lower limit is applied automatically.
For a GPU Box requesting N cards on a machine with M total advertised cards, each of vCPUs, memory ceiling (memory_limit_mb when set), and disk must be at most floor(machine advertised capacity × N / M). All GPU models on the machine count toward M, including busy cards. RSIBox restricts placement to machines that satisfy all three limits and any requested hardware constraints. A matching but busy machine can queue the Box; exceeding the ratio on every matching machine returns 400 gpu_resource_ratio_exceeded before reserving or submitting it. CPU-only Boxes are unaffected. Breadboard still applies its host-memory reserves, VM overhead, and current free-capacity checks.
Errors: 400 invalid_request, 402 insufficient_credits, 403 forbidden, 403 organization_suspended, 404 not_found, 409 organization_not_provisioned, 409 gpu_unavailable, 409 hardware_unavailable, 409 cpu_usage_unknown, 409 memory_usage_unknown, 409 accelerator_usage_unknown, 429 sandbox_limit_reached, 429 accelerator_limit_reached, 429 cpu_limit_reached, 429 memory_limit_reached, 502 compute_error, 503 compute_unavailable, 503 node_pool_sync_pending (non-retryable, no Retry-After; an administrator must retry saving the org/project machine pool), 503 pricing_unavailable, 503 service_busy, 503 create_pending, 504 compute_timeout. See Errors.
GET /v1/boxesReturns { "items": [...], "total": 42 }, ordered newest first.
| Query | Default | Meaning |
|---|---|---|
project |
all | Filter to one project by slug |
limit |
100 |
Maximum recent items to return (1 to 200) |
state |
all | Filter by active (pending or running), pending, running, stopped, or failed |
When neither limit nor state is provided, all pending and running Boxes outside the top 100 most recent are also appended to items. total is the total number of Boxes matching the active filters. A Box whose project was archived includes "project_archived": true.
GET /v1/boxes/{id}Returns the RSI Box object plus:
| Field | Meaning |
|---|---|
cost_micro |
Credits billed for this Box so far |
hourly_rate_micro |
Current hourly price, or null if it can no longer be priced |
lifetime |
{ seconds, expires_at_ms }, or null when not recorded. seconds: null means unlimited; a limited Box has expires_at_ms: null until its readiness deadline is observed. The deadline is in Unix milliseconds and is preserved across resume. |
billing_status |
accruing while active, finalizing while final usage is pending, settled when the final cost is available, or incomplete when some usage history is unavailable |
state_reason_code, state_reason |
Public reason for the current state, or null when unknown |
For a Box not yet recorded as ended, the gateway reads its live compute state and syncs hardware, network, allowed_hosts, and the lifetime deadline. Stored lifecycle history supplies a reason for ended Boxes when available; an earlier stop reason is not reused after resume. See Timeline for reason codes. cost_micro is the posted amount, so continue polling while billing_status is finalizing.
Hardware
Section titled “Hardware”To compare runs on identical hardware, read hardware from a running Box and request it on subsequent creates.
| Field | Meaning |
|---|---|
profile |
Stable hash of all fields below; equal machines share a profile |
cpu_model |
Short CPU model name, such as epyc-9555 |
cpu_sockets |
Physical CPU sockets in the machine |
gpu_model |
Catalog GPU name, or null without a GPU |
memory_channels |
Populated memory channels across all sockets |
memory_speed_mhz |
Configured memory speed |
If a machine omits any fact, that field and profile are null. Chosen sizes (vCPUs, memory, GPU count) are not part of hardware.
To pin hardware, pass hardware in a create request using either profile:
{ "vcpus": 8, "memory_mb": 32768, "hardware": { "profile": "hw_3fa91c07" } }or any subset of cpu_model, cpu_sockets, memory_channels, and memory_speed_mhz:
{ "hardware": { "cpu_model": "epyc-9555", "memory_channels": 12 } }Matching is exact with no fallback. Choose the GPU with gpu as usual; because a profile includes its GPU model, send the matching gpu request with it. If no machine available to the project matches, creation returns 409 hardware_unavailable. If matching machines exist but are busy, the Box queues until one is free.
GET /v1/hardwareReturns { "items": [...] } listing each distinct machine shape available to the project, once without a GPU and once per GPU model it carries. Pass ?project=<slug> to query a specific project.
Timeline
Section titled “Timeline”GET /v1/boxes/{id}/eventsReturns the lifecycle history, oldest first:
{ "items": [ { "seq": 1, "at_ms": 1794700000000, "state": "queued", "reason_code": "capacity_unavailable", "reason": "Waiting for capacity: every matching machine is in use" }, { "seq": 3, "at_ms": 1794700042000, "state": "creating", "reason_code": null, "reason": null }, { "seq": 4, "at_ms": 1794700060000, "state": "running", "reason_code": null, "reason": null } ], "truncated": false}An entry is recorded whenever the state or public reason changes; the gap between entries is the time spent in the earlier state. seq increases monotonically and may skip numbers. truncated is true when earlier history has aged out; once the backend drops an ended Box, items is empty and truncated is true.
reason_code |
Meaning |
|---|---|
capacity_unavailable |
Every matching machine is in use; the Box starts when one frees up |
quota_exhausted |
The project’s GPU quota is fully in use |
backend_unavailable |
Compute machines are temporarily unavailable |
unsupported_request |
No machine can run this configuration; the Box fails |
start_failed |
The machine could not start the Box, or a startup stage timed out (reason names the stage when available) |
backend_lost |
The compute service lost contact with the Box |
lifetime_expired |
The Box reached its lifetime limit |
guest_exited |
The guest operating system shut down |
preempted |
The Box was stopped to free capacity for another workload |
cancelled |
The Box was stopped by request |
other |
Reason without a public description; quote the Box ID and X-Request-Id when contacting support |
GPU usage
Section titled “GPU usage”GET /v1/boxes/{id}/gpuReturns the latest reading of each GPU inside a running Box:
{ "observed_at_ms": 1794700120000, "devices": [ { "utilization": 0.37, "memory_used_bytes": 2147483648, "memory_total_bytes": 17179869184, "sampled_at_ms": 1794700110000 } ]}utilization:0to1, ornullif unavailable.devices: one entry per GPU (0-indexed; the console labels device0as GPU 1 · VRAM), or[]for CPU-only and ended Boxes.memory_used_bytes/memory_total_bytes: GPU VRAM in bytes. A missing total does not invalidate a reported used value.- Readings are not cleared when sampling stops — compare
sampled_at_mswithobserved_at_msand treat readings older than a couple of minutes as stale.
CPU, RAM and GPU usage over time
Section titled “CPU, RAM and GPU usage over time”GET /v1/boxes/{id}/usage?since_ms=1794700000000CPU, host cgroup resident memory, and per-GPU readings are sampled roughly once per minute while a Box is active and retained for 30 days:
{ "bucket_ms": 60000, "series": [ { "kind": "cpu", "device": 0, "memory_total_bytes": null, "points": [[1794700080000, 0.25, null], [1794700140000, 0.8, null]], "peak_used_bytes": null, "peak_file_cache_bytes": null, "latest": { "at": 1794700140000, "used_bytes": null, "total_bytes": null, "file_cache_bytes": null } }, { "kind": "gpu", "device": 0, "memory_total_bytes": 17179869184, "points": [[1794700080000, 0.37, 2147483648], [1794700140000, 0.91, 9663676416]], "peak_used_bytes": 9663676416, "peak_file_cache_bytes": null, "latest": { "at": 1794700140000, "used_bytes": 9663676416, "total_bytes": 17179869184, "file_cache_bytes": null } }, { "kind": "memory", "device": 0, "memory_total_bytes": 34359738368, "points": [[1794700080000, 0.18, 6184752906], [1794700140000, 0.24, 8246337208]], "file_cache_points": [[1794700080000, 536870912], [1794700140000, 671088640]], "peak_used_bytes": 8246337208, "peak_file_cache_bytes": 671088640, "latest": { "at": 1794700140000, "used_bytes": 8246337208, "total_bytes": 34359738368, "file_cache_bytes": 671088640 } } ]}since_ms: optional start timestamp in Unix milliseconds; defaults to0(all retained samples).points:[time_ms, utilization, memory_used_bytes], oldest first.kind: "cpu"(device: 0): share of the Box’s vCPUs busy since the previous sample (0to1, so0.25on 4 vCPUs equals one vCPU);nullon the first sample or after a counter reset.memory_used_bytesisnull.kind: "gpu"(device: 0, 1, …): GPU utilization (0to1) and VRAM used in bytes.kind: "memory"(device: 0): host cgroup resident memory in bytes andresident / allocatedratio (can exceed1with host overhead). Includesfile_cache_points([time_ms, file_cache_bytes]) andpeak_points([time_ms, peak_resident_bytes]) for each bucket. Peak values retain the largest sample rather than the bucket average.
- Summary fields (optional, populated over the queried range):
peak_used_bytes,peak_file_cache_bytes, andlatest({ at, used_bytes, total_bytes, file_cache_bytes }). - Each series has at most 240 points, averaged into
bucket_msintervals (multiples of 60,000 ms) timestamped at the mean sample time. Missing minutes produce gaps rather than zeros;seriesis empty when no readings exist in range. - Short-lived Boxes can finish between samples and record no history. The console Activity chart plots CPU, RAM, GPU, and VRAM on the same timeline, preserving missing readings rather than showing zero. RAM shows a fresh current value or a range average, the allocation, and the peak across the selected chart buckets. RAM allocated in Resources displays
spec.memoryMb.
POST /v1/boxes/{id}/stopEnds the Box and returns the RSI Box object. state may briefly read terminating before becoming stopped. Stopping an already-ended Box is a no-op.
Members can stop their own Boxes. Signed-in team owners and admins (console or CLI) can stop any teammate’s Box. An API key can stop only its creator’s Boxes within its scope. Stopping a visible Box without permission returns 403 forbidden.
Resource limits
Section titled “Resource limits”Team limits count all pending and running Boxes across projects: Box count, vCPUs, memory in MiB (using memory_limit_mb when set on the Compute API), and accelerators. Limits are configured by system administrators; an unset limit is unlimited.