Skip to main content
Lists a machine for rent with optional pricing and configuration parameters.
This is a host method, used for managing machines you are renting out on Vast.ai.
SLA listing parameters are not in the published Python SDK yet — prefer console Set Pricing → SLA, or REST; see SLA Offers. Volume/duration listing options are CLI-only today.

Signature

Parameters

int
required
Machine ID to list.
Optional[float]
GPU rental price in $/hour for active instances.
Optional[float]
Storage price in $/GB/month for inactive instances.
Optional[float]
Upload bandwidth price in $/GB.
Optional[float]
Download bandwidth price in $/GB.
Optional[float]
Max long-term prepay discount rate fraction (default 0.4).
Optional[int]
Minimum GPUs that must be rented together (GPU slicing).
Optional[str]
Offer expiration (Unix timestamp or MM/DD/YYYY).

Returns

str, Result from the API call.

Example