Skip to main content
[Host] Get GPU location metrics

Usage

vastai metrics gpu-locations [OPTIONS]

Options

--verified
string
default:"all"
Filter by verification status Allowed values: true, false, all
--datacenter
string
default:"all"
Filter by datacenter hosting type Allowed values: true, false, all
--rented
string
default:"all"
Filter by rented status Allowed values: true, false, all
--gpu
string
Filter by GPU name (comma-separated list). Underscores are accepted in place of spaces.

Description

Show geographic locations of GPUs on the platform. Filtering is applied client-side — the endpoint returns one shared dataset and the CLI narrows the rows locally. Requires host or admin access.

Examples

vastai metrics gpu-locations
    vastai metrics gpu-locations --verified true --datacenter true
    vastai metrics gpu-locations --gpu "RTX 4090,H100_SXM"
    vastai metrics gpu-locations --rented false --raw

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)