List Planes
curl --request GET \
--url https://api.peachdeskai.com/api/v1/sa/gpu/planes \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.peachdeskai.com/api/v1/sa/gpu/planes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.peachdeskai.com/api/v1/sa/gpu/planes', 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.peachdeskai.com/api/v1/sa/gpu/planes",
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.peachdeskai.com/api/v1/sa/gpu/planes"
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.peachdeskai.com/api/v1/sa/gpu/planes")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.peachdeskai.com/api/v1/sa/gpu/planes")
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{
"planes": [
{
"key": "<string>",
"name": "<string>",
"type": "<string>",
"gpu_type": "<string>",
"enabled": true,
"status": "<string>",
"est_hourly_cost": 123,
"capacity_per_pod": 123,
"datacenter": "<string>",
"live_url": "<string>",
"est_hourly_cost_source": "registry_estimate",
"error": "<string>",
"desired_count": 1,
"auto_scale": false,
"pods": [],
"canary": {
"version": "<string>",
"percent": 123,
"pods": 123,
"healthy": 123
},
"workers_min": 123,
"workers_max": 123,
"co_hosted_on": "<string>",
"pod_image": "<string>",
"blockers": [],
"bake": {
"status": "<string>",
"image": "<string>",
"built_at": "<string>",
"added": [],
"removed": [],
"changed": [],
"summary": "<string>"
},
"pinned_datacenter": "<string>",
"pinned_gpu_type": "<string>",
"pinned_gpu_forced": false,
"hardware_source": "auto",
"hardware_pinned_at": "2023-11-07T05:31:56Z",
"hardware_drift": "<string>",
"hardware_warning": "<string>",
"direct_url": "<string>",
"direct_url_in_use": false
}
]
}main
List Planes
List the LISTED controllable planes with their live status, refreshing pod/endpoint state from RunPod (best-effort — a RunPod hiccup never drops a card).
listed_planes() rather than all_planes(): a plane may declare itself
hidden (GpuPlane.listed) when it is a capability nobody operates from
this screen. Today that is combined alone — a fourth pod toggle that
SUPERSEDES two of the other three, on a screen whose planes are power
switches. Everything else about it is unchanged; it is still reachable by
key on every other route here, so an operator who wants it can still enable
it (POST /sa/gpu/planes/combined/enable) and every cost and
model-visibility consumer still sees it.
GET
/
api
/
v1
/
sa
/
gpu
/
planes
List Planes
curl --request GET \
--url https://api.peachdeskai.com/api/v1/sa/gpu/planes \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.peachdeskai.com/api/v1/sa/gpu/planes"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.peachdeskai.com/api/v1/sa/gpu/planes', 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.peachdeskai.com/api/v1/sa/gpu/planes",
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.peachdeskai.com/api/v1/sa/gpu/planes"
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.peachdeskai.com/api/v1/sa/gpu/planes")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.peachdeskai.com/api/v1/sa/gpu/planes")
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{
"planes": [
{
"key": "<string>",
"name": "<string>",
"type": "<string>",
"gpu_type": "<string>",
"enabled": true,
"status": "<string>",
"est_hourly_cost": 123,
"capacity_per_pod": 123,
"datacenter": "<string>",
"live_url": "<string>",
"est_hourly_cost_source": "registry_estimate",
"error": "<string>",
"desired_count": 1,
"auto_scale": false,
"pods": [],
"canary": {
"version": "<string>",
"percent": 123,
"pods": 123,
"healthy": 123
},
"workers_min": 123,
"workers_max": 123,
"co_hosted_on": "<string>",
"pod_image": "<string>",
"blockers": [],
"bake": {
"status": "<string>",
"image": "<string>",
"built_at": "<string>",
"added": [],
"removed": [],
"changed": [],
"summary": "<string>"
},
"pinned_datacenter": "<string>",
"pinned_gpu_type": "<string>",
"pinned_gpu_forced": false,
"hardware_source": "auto",
"hardware_pinned_at": "2023-11-07T05:31:56Z",
"hardware_drift": "<string>",
"hardware_warning": "<string>",
"direct_url": "<string>",
"direct_url_in_use": false
}
]
}
