nodus.spot
View MarkdownSpot pilot: dedicated interruptible nodes using the platform account and API key.
class Spot(transport: Transport) -> NoneUse client.spot to quote, request, inspect and release Spot nodes (pilot).
Spot.get
Section titled “Spot.get”get(node_id: str) -> ObjRead a node, including its Nodus SSH command, uptime and cost.
Spot.list
Section titled “Spot.list”list() -> ObjsList the current account’s nodes, including terminal states.
Spot.prices
Section titled “Spot.prices”prices() -> ObjsCurrent USD prices per complete node-hour; quotes do not reserve capacity.
Spot.release
Section titled “Spot.release”release(node_id: str) -> Obj | NoneStop compute billing and delete the temporary disk; accepted transfer charges may be corrected later.
Spot.request
Section titled “Spot.request”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) -> ObjRequest 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
Section titled “Spot.usage”usage(*, from_: str | None = None, to: str | None = None) -> ObjsPer-node price intervals and charges; bounds are RFC 3339 timestamps.