# nodus.spot

> Spot pilot: dedicated interruptible nodes using the platform account and API key.

Source: https://www.nodus-compute.ai/docs/reference/python/nodus-spot/
Build revision: 29387e0df3a6fc82f440ccd498d043cdd43a8cf4

<!-- Generated by scripts/gen-reference.mjs from the SDK docstrings (griffe). Do not edit: run make gen. -->

Spot pilot: dedicated interruptible nodes using the platform account and API key.

## `Spot`

```python
class Spot(transport: Transport) -> None
```

Use `client.spot` to quote, request, inspect and release Spot nodes (pilot).

### `Spot.get`

```python
get(node_id: str) -> Obj
```

Read a node, including its Nodus SSH command, uptime and cost.

### `Spot.list`

```python
list() -> Objs
```

List the current account’s nodes, including terminal states.

### `Spot.prices`

```python
prices() -> Objs
```

Current USD prices per complete node-hour; quotes do not reserve capacity.

### `Spot.release`

```python
release(node_id: str) -> Obj | None
```

Stop compute billing and delete the temporary disk; accepted transfer charges may be corrected later.

### `Spot.request`

```python
request(gpu: str, max_price: float | None = None, wait: bool = True, poll: float = 30, *, timeout: float = 900, ssh_public_keys: Sequence[str] | None = None, regions: Sequence[str] | None = None, providers: Sequence[str] | None = None, idempotency_key: str | None = None, workspace_id: str | None = None, workspace_slot: str | None = None, placement: str | None = None, local_wait_s: int | None = None, transfer_billing: str | None = None) -> Obj
```

Request one node, optionally waiting for SSH readiness (15-minute timeout by default).

`max_price` is USD per complete node-hour. Before acceptance, capacity waits keep one key. An ambiguous initial POST stops for inspection; only accepted-node reads retry connection failures. Unstarted capacity failures retry with a fresh key only after confirmed cleanup; other ended nodes stop waiting. A supplied key identifies the first attempt. Save accepted node IDs to inspect across process restarts. Timeout/cancellation never deletes a node or launches a replacement. `wait=False` performs one POST and returns its provisioning state or raises the API error. `workspace_id` mounts retained regional storage at `/workspace`. Placement defaults to `local_first` with a 300-second local wait; `local_only` and `cheapest` are alternatives. A newly created regional slot starts empty. Releasing a node retains its Workspace files. `transfer_billing="actual_cost_plus_markup_v1"` explicitly accepts separate lifetime transfer charges for a container that becomes ready. Read the quote’s `transfer_billing_disclosure` and `transfer_markup_percent` first. The hourly ceiling does not cap transfer charges. Omission keeps transfer billing off; waiting and retries preserve the supplied choice.

### `Spot.usage`

```python
usage(*, from_: str | None = None, to: str | None = None) -> Objs
```

Per-node price intervals and charges; bounds are RFC 3339 timestamps.
