Find and Deploy the Most Affordable GPU
Intro
Prices for VM instances with the same GPU can vary widely between cloud providers. Some of the variance is due to other hardware specs such as memory, storage, vCPU count, network speed, region, and more. However, a lot of the variance is also due to non-technical factors such as cloud provider brand, marketing, and pricing strategy.
Often times, the GPU configuration in an instance is far more important than any other details. In such cases, we provide an API that can help search for the most affordable GPU instance given the GPU type.
Using the Instance Types API
We can find the most affordable GPU instances by applying filtering and sorting query params to the Instance Types API. Without any query parameters, the API returns all of the instance types supported by Shadeform in a random order. By using the following query parameters, we can filter down the results and sort them as needed.
Query Parameter | Description | Example Value |
---|---|---|
cloud | Filter by cloud name | massedcompute |
region | Filter by region | us-central-3 |
num_gpus | Filter by number of GPUs in the instance | 1 |
gpu_type | Filter by GPU type | A100_80G |
available | Filter by availability | true |
sort | Sort by a parameter | price |
Find the Most Affordable A100_80G Instance Available
This is an example API call to find the most affordable A100_80G instance available right now.
From array of results returned, we can see that the A100_80G instance from RunPod is the most affordable instance available right now at $2.03/hr
.
Find the Most Affordable 8xH100 Instance Available
This is an example API call to find the most affordable H100 instance available right now.
From array of results returned, we can see that the 8xH100 instance from Oblivus is the most affordable instance available right now at $32.80/hr
.
Find the Most Affordable 8xH100 Instance Regardless of Availability
To find the most affordable 8xH100 instance regardless of availability, we can use the previous API call and remove the available=true
parameter.
After we remove the available=true
parameter, we now see the top result as Massed Compute’s 8xH100 instance at $23.92/hr
. However, it is not available at the time of this API call.
Find the most Affordable A6000 Instance Available
This is an example API call to find the most affordable A6000 instance available right now.
From array of results returned, we can see that the A6000 instance from RunPod is the most affordable instance available right now at 0.57/hr
.
Launching the Instance
After you have found the most affordable instance, you can launch the instance by using the Create Instance API. In the example below, we will launch the most affordable A6000 GPU based on the data retrieved from the API call in the previous section. We will take the following properties from the previous response:
cloud
shade_instance_type
region
Using the values of these properties, we can create the following Create request: