Public GPU and storage list prices
curl --request GET \
--url https://platformapi.comfy.org/deploy/v1/rate-cardimport requests
url = "https://platformapi.comfy.org/deploy/v1/rate-card"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://platformapi.comfy.org/deploy/v1/rate-card', 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://platformapi.comfy.org/deploy/v1/rate-card",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://platformapi.comfy.org/deploy/v1/rate-card"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://platformapi.comfy.org/deploy/v1/rate-card")
.asString();require 'uri'
require 'net/http'
url = URI("https://platformapi.comfy.org/deploy/v1/rate-card")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"gpus": [
{
"gpuClass": "<string>",
"label": "<string>",
"vramGb": 123,
"pricePerHourUsd": 123,
"creditsPerHour": 123
}
],
"storage": [
{
"storageType": "<string>",
"label": "<string>",
"pricePerGbMonthUsd": 123,
"creditsPerGbMonth": 123
}
]
}API Reference
Public GPU and storage list prices
Every GPU class the compute catalog still sells at one or more locations, one row each at its list price, in catalog order, plus the storage rates getComputeCatalog serves. A class whose every catalog entry has been closed to new deployments is left off. Needs no authentication, and the answer is the same for every caller: it ignores the caller’s workspace and current stock, so a class can appear here that a given workspace’s getComputeCatalog does not offer right now. A display price, not a billing guarantee, with the same caveat as GpuInfo.pricePerHourUsd.
GET
/
v1
/
rate-card
Public GPU and storage list prices
curl --request GET \
--url https://platformapi.comfy.org/deploy/v1/rate-cardimport requests
url = "https://platformapi.comfy.org/deploy/v1/rate-card"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://platformapi.comfy.org/deploy/v1/rate-card', 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://platformapi.comfy.org/deploy/v1/rate-card",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://platformapi.comfy.org/deploy/v1/rate-card"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://platformapi.comfy.org/deploy/v1/rate-card")
.asString();require 'uri'
require 'net/http'
url = URI("https://platformapi.comfy.org/deploy/v1/rate-card")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"gpus": [
{
"gpuClass": "<string>",
"label": "<string>",
"vramGb": 123,
"pricePerHourUsd": 123,
"creditsPerHour": 123
}
],
"storage": [
{
"storageType": "<string>",
"label": "<string>",
"pricePerGbMonthUsd": 123,
"creditsPerGbMonth": 123
}
]
}¿Esta página le ayudó?