curl --request GET \
--url https://platformapi.comfy.org/deploy/v1/limits \
--header 'Authorization: Bearer <token>'import requests
url = "https://platformapi.comfy.org/deploy/v1/limits"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platformapi.comfy.org/deploy/v1/limits', 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/limits",
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://platformapi.comfy.org/deploy/v1/limits"
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://platformapi.comfy.org/deploy/v1/limits")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://platformapi.comfy.org/deploy/v1/limits")
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{
"used": {
"activeDeployments": 1
},
"maxActiveDeployments": 3,
"maxModelStorageGb": 3999,
"maxConcurrentWorkers": 10
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"reason": "no_credit_balance",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}The deploy ceilings this workspace is held to
The caps the caller’s workspace is actually held to right now, resolved through the same gate a create and a start run, so a number reported here is the number those refuse at. Every cap is raisable per workspace, so a client must read them rather than hold its own copy. Beside them, used carries the active-deployment count those same checks compare against maxActiveDeployments.
A cap that does not apply is absent from the response. For the worker cap, that is the normal answer on a workspace its plan limits do not apply to yet. Such a workspace has no worker cap at all, and its deployment count is held to a higher default number rather than its plan’s. An absent cap is a statement about enforcement as it stands right now, including while a billing check is failing open; a request the client could not complete is not, and a client that got no response shows nothing rather than inferring an absent cap.
A workspace with no credit balance is refused here exactly as a create and a start refuse it, because no count is what stops it and reporting one would name a ceiling that governs nothing.
curl --request GET \
--url https://platformapi.comfy.org/deploy/v1/limits \
--header 'Authorization: Bearer <token>'import requests
url = "https://platformapi.comfy.org/deploy/v1/limits"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platformapi.comfy.org/deploy/v1/limits', 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/limits",
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://platformapi.comfy.org/deploy/v1/limits"
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://platformapi.comfy.org/deploy/v1/limits")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://platformapi.comfy.org/deploy/v1/limits")
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{
"used": {
"activeDeployments": 1
},
"maxActiveDeployments": 3,
"maxModelStorageGb": 3999,
"maxConcurrentWorkers": 10
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"reason": "no_credit_balance",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}レスポンス
OK
The deploy ceilings a workspace is held to. An absent optional field means no ceiling of that kind applies rather than that the value is unknown: a client that could not reach this route knows nothing and shows nothing, while one that read an absent field knows the cap is off.
How many non-terminal deployments the workspace may hold. Always present, because a create is capped on every path. A workspace Comfy gave its own number reports that number on every path; without one, the number is higher on a workspace its plan limits do not apply to yet. A deployment holds one slot however many copies an update leaves it running, so an update of a deployment whose serving copy runs is admitted at the limit, and one of a stopped deployment counts as a start of it. Stopping a deployment frees a slot, as does deleting one -- a stopped deployment keeps its endpoint and its staged models but holds no slot.
3
The largest release a deployment that gets its own network volume accepts, in gigabytes. A create, start, release update or rollback of such a deployment compares a release's own measured model total (plus a 5% margin) against it and refuses before anything is provisioned when it is over. A deployment that runs where its models are not copied onto a volume of its own is judged against a higher limit instead, which this field does not report, so a release over this number may still deploy. It is not the size of a deployment's storage: each volume is sized when the deployment is created to its release's measured models plus that margin and 1 GB, never under the storage provider's 10 GB minimum and never over this number. A release with no measured total, or with some models unmeasured, is not refused here and gets a smaller fixed-size volume, or its measured total plus that margin and 1 GB where that is larger, since a measured total is a floor, not a guarantee.
3999
How many workers a single deployment may commit at once (its computeConfig.max), independent of what the workspace's other deployments commit. A workspace Comfy gave its own number reports that number on every path, and may then go past the 20 workers every other deployment is bounded by. Without one, absent on a workspace its plan limits do not apply to yet, where a create and a start apply no worker cap at all.
10