List grouped instance-SKU availability
curl --request GET \
--url https://api.sfcompute.com/preview/v2/availability \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sfcompute.com/preview/v2/availability"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sfcompute.com/preview/v2/availability', 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.sfcompute.com/preview/v2/availability",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.sfcompute.com/preview/v2/availability"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.sfcompute.com/preview/v2/availability")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sfcompute.com/preview/v2/availability")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"group": [
{
"key": {
"name": "<string>",
"display_name": "<string>",
"description": "<string>",
"stable_at": 1738972800,
"documentation_link": "<string>",
"deprecated_at": 1738972800,
"deprecation_info": "<string>"
},
"value": {
"name": "<string>",
"display_name": "<string>",
"description": "<string>",
"stable_at": 1738972800,
"documentation_link": "<string>",
"deprecated_at": 1738972800,
"deprecation_info": "<string>"
},
"type": "enumeration"
}
],
"allocation_schedule": {
"total": [
{
"start_at": 1738972800,
"node_count": 123,
"end_at": 1738972800
}
],
"by_instance_sku": {}
}
}
]
}{
"error": {
"type": "authentication_error",
"message": "<string>"
}
}{
"error": {
"type": "unprocessable_entity",
"message": "<string>",
"details": [
{
"code": "<string>",
"message": "<string>",
"field": "<string>"
}
]
}
}{
"error": {
"type": "api_error",
"message": "<string>"
}
}Instance SKUs
List grouped instance-SKU availability
⚠️ This endpoint is in public preview.
Aggregate availability across instance SKUs that match requirements, grouped by the given property keys. Each group exposes a summed total schedule plus a per-SKU breakdown.
GET
/
preview
/
v2
/
availability
List grouped instance-SKU availability
curl --request GET \
--url https://api.sfcompute.com/preview/v2/availability \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sfcompute.com/preview/v2/availability"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sfcompute.com/preview/v2/availability', 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.sfcompute.com/preview/v2/availability",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.sfcompute.com/preview/v2/availability"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.sfcompute.com/preview/v2/availability")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sfcompute.com/preview/v2/availability")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"data": [
{
"group": [
{
"key": {
"name": "<string>",
"display_name": "<string>",
"description": "<string>",
"stable_at": 1738972800,
"documentation_link": "<string>",
"deprecated_at": 1738972800,
"deprecation_info": "<string>"
},
"value": {
"name": "<string>",
"display_name": "<string>",
"description": "<string>",
"stable_at": 1738972800,
"documentation_link": "<string>",
"deprecated_at": 1738972800,
"deprecation_info": "<string>"
},
"type": "enumeration"
}
],
"allocation_schedule": {
"total": [
{
"start_at": 1738972800,
"node_count": 123,
"end_at": 1738972800
}
],
"by_instance_sku": {}
}
}
]
}{
"error": {
"type": "authentication_error",
"message": "<string>"
}
}{
"error": {
"type": "unprocessable_entity",
"message": "<string>",
"details": [
{
"code": "<string>",
"message": "<string>",
"field": "<string>"
}
]
}
}{
"error": {
"type": "api_error",
"message": "<string>"
}
}Authorizations
Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.
Query Parameters
Filter SKUs before grouping. Semicolon-separated key:value[,value...] pairs (e.g. accelerator:H100). Use keys and values from /v2/instance_sku_property_catalog.
Property keys to group by. Repeatable: ?group_by=accelerator. Each key must be a public registry key. Empty group_by → a single aggregate group.
Required string length:
1 - 255Pattern:
[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}⌘I