Skip to main content
Search for volume offers using custom query

Usage

vastai search volumes [--help] [--api-key API_KEY] [--raw] <query>

Arguments

query
string
required
Query to search for. default: ‘external=false verified=true disk_space>=1’, pass -n to ignore default

Options

-n
boolean
Disable default query (alias: --no-default)
--limit
integer
--storage
number
default:"1.0"
Amount of storage to use for pricing, in GiB. default=1.0GiB
-o
string
default:"score-"
Comma-separated list of fields to sort on. postfix field with - to sort desc. ex: -o ‘disk_space,inet_up-’. default=‘score-’ (alias: --order)

Description

Query syntax
query      = comparison comparison...
comparison = field op value
field      = <name of a field>
op         = one of: <, <=, ==, !=, >=, >, in, notin
value      = <bool, int, float, string> | 'any' | [value0, value1, ...]
bool       = True | False
  • Wrap > and < in quotes on the command line
  • For string values (e.g. gpu_name), replace spaces with underscores: RTX_3090 not RTX 3090

Examples

# search for volumes with greater than 50GB of available storage and greater than 500 Mb/s upload and download speed
vastai search volumes "disk_space>50 inet_up>500 inet_down>500"

Available Fields

FieldTypeDescription
cpu_archstringhost machine cpu architecture (e.g. amd64, arm64)
cuda_versfloatmachine max supported cuda version (based on driver version)
datacenterboolshow only datacenter offers
disk_bwfloatdisk read bandwidth, in MB/s
disk_spacefloatdisk storage space, in GB
driver_versionstringmachine’s nvidia/amd driver version as 3 digit string ex. “535.86.05”
durationfloatmax rental duration in days
geolocationstringTwo letter country code. Works with operators =, !=, in, notin (e.g. geolocation not in [‘XV’,‘XZ’])
gpu_archstringhost machine gpu architecture (e.g. nvidia, amd)
gpu_namestringGPU model name (no quotes, replace spaces with underscores, ie: RTX_3090 rather than ‘RTX 3090’)
has_avxboolCPU supports AVX instruction set
idintvolume offer unique ID
inet_downfloatinternet download speed in Mb/s
inet_upfloatinternet upload speed in Mb/s
machine_idintmachine id of volume offer
pci_genfloatPCIE generation
pcie_bwfloatPCIE bandwidth (CPU to GPU)
reliabilityfloatmachine reliability score (see FAQ for explanation)
storage_costfloatstorage cost in $/GB/month
static_ipboolis the IP addr static/stable
total_flopsfloattotal TFLOPs from all GPUs
ubuntu_versionstringhost machine ubuntu OS version
verifiedboolis the machine verified

Global Options

The following options are available for all commands:
OptionDescription
--url URLServer REST API URL
--retry NRetry limit
--rawOutput machine-readable JSON
--explainVerbose explanation of API calls
--api-key KEYAPI key (defaults to ~/.config/vastai/vast_api_key)