/clusters/types
curl --request GET \
--url https://api.shadeform.ai/v1/clusters/types \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.shadeform.ai/v1/clusters/types"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.shadeform.ai/v1/clusters/types', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.shadeform.ai/v1/clusters/types",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.shadeform.ai/v1/clusters/types"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.shadeform.ai/v1/clusters/types")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.shadeform.ai/v1/clusters/types")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"cluster_types": [
{
"cloud": "denvr",
"num_instances": 2,
"availability": {
"region": "houston-usa-1",
"display_name": "US, Houston, TX",
"available": true
},
"cluster_type": {
"cloud": "denvr",
"shade_instance_type": "H100_sxm5x8",
"cloud_instance_type": "H100_80GB_SXM_8x",
"configuration": {
"memory_in_gb": 940,
"storage_in_gb": 20000,
"vcpus": 208,
"num_gpus": 8,
"gpu_type": "H100",
"interconnect": "sxm5",
"nvlink": true,
"os_options": [
"ubuntu22.04_cuda12.4_shade_os",
"ubuntu20.04_cuda12.4_shade_os",
"ubuntu20.04",
"ubuntu22.04"
],
"vram_per_gpu_in_gb": 80,
"gpu_manufacturer": "nvidia"
},
"memory_in_gb": 940,
"storage_in_gb": 20000,
"vcpus": 208,
"num_gpus": 8,
"gpu_type": "H100",
"interconnect": "sxm5",
"nvlink": true,
"hourly_price": 1400,
"boot_time": {
"min_boot_in_sec": 600,
"max_boot_in_sec": 1200
},
"deployment_type": "vm"
}
}
]
}Clusters
/clusters/types
Return all the GPU cluster types with their corresponding availability and specs.
GET
/
clusters
/
types
/clusters/types
curl --request GET \
--url https://api.shadeform.ai/v1/clusters/types \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.shadeform.ai/v1/clusters/types"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.shadeform.ai/v1/clusters/types', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.shadeform.ai/v1/clusters/types",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.shadeform.ai/v1/clusters/types"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.shadeform.ai/v1/clusters/types")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.shadeform.ai/v1/clusters/types")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"cluster_types": [
{
"cloud": "denvr",
"num_instances": 2,
"availability": {
"region": "houston-usa-1",
"display_name": "US, Houston, TX",
"available": true
},
"cluster_type": {
"cloud": "denvr",
"shade_instance_type": "H100_sxm5x8",
"cloud_instance_type": "H100_80GB_SXM_8x",
"configuration": {
"memory_in_gb": 940,
"storage_in_gb": 20000,
"vcpus": 208,
"num_gpus": 8,
"gpu_type": "H100",
"interconnect": "sxm5",
"nvlink": true,
"os_options": [
"ubuntu22.04_cuda12.4_shade_os",
"ubuntu20.04_cuda12.4_shade_os",
"ubuntu20.04",
"ubuntu22.04"
],
"vram_per_gpu_in_gb": 80,
"gpu_manufacturer": "nvidia"
},
"memory_in_gb": 940,
"storage_in_gb": 20000,
"vcpus": 208,
"num_gpus": 8,
"gpu_type": "H100",
"interconnect": "sxm5",
"nvlink": true,
"hourly_price": 1400,
"boot_time": {
"min_boot_in_sec": 600,
"max_boot_in_sec": 1200
},
"deployment_type": "vm"
}
}
]
}Authorizations
Response
200 - application/json
Returns a ClusterTypesResponse object
Show child attributes
Show child attributes
Example:
[
{
"cloud": "denvr",
"num_instances": 2,
"availability": {
"region": "houston-usa-1",
"display_name": "US, Houston, TX",
"available": true
},
"cluster_type": {
"cloud": "denvr",
"shade_instance_type": "H100_sxm5x8",
"cloud_instance_type": "H100_80GB_SXM_8x",
"configuration": {
"memory_in_gb": 940,
"storage_in_gb": 20000,
"vcpus": 208,
"num_gpus": 8,
"gpu_type": "H100",
"interconnect": "sxm5",
"nvlink": true,
"os_options": [
"ubuntu22.04_cuda12.4_shade_os",
"ubuntu20.04_cuda12.4_shade_os",
"ubuntu20.04",
"ubuntu22.04"
],
"vram_per_gpu_in_gb": 80,
"gpu_manufacturer": "nvidia"
},
"memory_in_gb": 940,
"storage_in_gb": 20000,
"vcpus": 208,
"num_gpus": 8,
"gpu_type": "H100",
"interconnect": "sxm5",
"nvlink": true,
"hourly_price": 1400,
"boot_time": {
"min_boot_in_sec": 600,
"max_boot_in_sec": 1200
},
"deployment_type": "vm"
}
}
]
⌘I