Skip to main content
Launch the best matching instance based on GPU/image criteria. Searches for available offers and creates an instance from the top result.

Signature

Parameters

str
required
Name of the GPU model (replace spaces with underscores, e.g. “RTX_4090”).
str
required
Number of GPUs required (choices: 1, 2, 4, 8, 12, 14).
str
required
Docker image name to use for the instance.
str
Geographical region filter for the instance location.
float
default:"16.0"
Disk space to allocate in GB.
int
default:"3"
Maximum number of offers to consider when selecting the best match.
str
default:"\"score-\""
Sort order for offers; append ’-’ to sort descending (e.g. “score-”).
str
Docker login credentials for private registry authentication.
str
Label to attach to the instance.
str
Filename of an onstart script to run on instance start.
str
Shell command to run on instance start.
str
Override the Docker image entrypoint.
bool
default:"False"
Enable SSH access to the instance.
bool
default:"False"
Enable Jupyter notebook server.
bool
default:"False"
Enable direct (peer-to-peer) connections.
str
Directory to serve Jupyter from.
bool
default:"False"
Enable JupyterLab instead of classic Jupyter.
bool
default:"False"
Set system language encoding to UTF-8.
bool
default:"False"
Set Python I/O encoding to UTF-8.
str
Extra Docker run arguments passed verbatim.
str
Environment variables to set (formatted as Docker -e flags).
list
Additional positional arguments.
bool
default:"False"
Skip sanity checks when creating from an existing instance.
bool
default:"False"
Return an error if scheduling fails rather than creating a stopped instance.
str
Hash of an instance template to use for configuration.
bool
default:"False"
Print verbose explanations of API calls made.
bool
default:"False"
Return raw JSON responses.

Returns

str, Result from the API call.

Example