curl --request POST \
--url https://platformapi.comfy.org/builder/v1/builds/{id}/releases \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"targets": [
{}
]
}
'import requests
url = "https://platformapi.comfy.org/builder/v1/builds/{id}/releases"
payload = { "targets": [{}] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({targets: [{}]})
};
fetch('https://platformapi.comfy.org/builder/v1/builds/{id}/releases', 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/builder/v1/builds/{id}/releases",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'targets' => [
[
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platformapi.comfy.org/builder/v1/builds/{id}/releases"
payload := strings.NewReader("{\n \"targets\": [\n {}\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://platformapi.comfy.org/builder/v1/builds/{id}/releases")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"targets\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platformapi.comfy.org/builder/v1/builds/{id}/releases")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"targets\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{
"releaseId": "<string>",
"status": "queued",
"statusUrl": "<string>",
"queuePosition": 123
}{
"error": "<string>",
"invalid": [
{
"field": "<string>",
"reason": "<string>"
}
],
"workflowCoverage": {
"format": "<string>",
"complete": true,
"covered": 123,
"missing": [
{
"packId": "<string>",
"classes": [
"<string>"
],
"name": "<string>",
"repository": "<string>",
"latestVersion": "<string>"
}
],
"unverified": [
{
"classType": "<string>",
"reason": "unknownClass",
"packId": "<string>"
}
]
},
"warnings": [
{
"field": "<string>",
"reason": "<string>"
}
],
"resolved": {}
}{
"error": "<string>",
"reason": "no_credit_balance",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Cut and build a release
Freezes the current definition and starts a build. A retry of the same definition returns the same release (dedupe by manifest_sha256) rather than making a second, and re-drives that release’s builds: a target whose build failed is built again, so a transient failure is recovered by re-cutting. There is no separate build route. The cut checks the definition before it looks for that release, so a retry whose baseComfyVersion is a branch or commit upstream ComfyUI has since dropped answers 400 INVALID_DEFINITION instead; the release it made stays deployable. A new release is also refused with 400 INVALID_DEFINITION, at models[<n>].sha256, when a model’s declared sha256 differs from the one its link’s host states; a host that states none, errs or is out of time never refuses.
The returned status is the release’s status as it stood before the re-drive, so poll statusUrl rather than treating it as final.
curl --request POST \
--url https://platformapi.comfy.org/builder/v1/builds/{id}/releases \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"targets": [
{}
]
}
'import requests
url = "https://platformapi.comfy.org/builder/v1/builds/{id}/releases"
payload = { "targets": [{}] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({targets: [{}]})
};
fetch('https://platformapi.comfy.org/builder/v1/builds/{id}/releases', 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/builder/v1/builds/{id}/releases",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'targets' => [
[
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://platformapi.comfy.org/builder/v1/builds/{id}/releases"
payload := strings.NewReader("{\n \"targets\": [\n {}\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://platformapi.comfy.org/builder/v1/builds/{id}/releases")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"targets\": [\n {}\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platformapi.comfy.org/builder/v1/builds/{id}/releases")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"targets\": [\n {}\n ]\n}"
response = http.request(request)
puts response.read_body{
"releaseId": "<string>",
"status": "queued",
"statusUrl": "<string>",
"queuePosition": 123
}{
"error": "<string>",
"invalid": [
{
"field": "<string>",
"reason": "<string>"
}
],
"workflowCoverage": {
"format": "<string>",
"complete": true,
"covered": 123,
"missing": [
{
"packId": "<string>",
"classes": [
"<string>"
],
"name": "<string>",
"repository": "<string>",
"latestVersion": "<string>"
}
],
"unverified": [
{
"classType": "<string>",
"reason": "unknownClass",
"packId": "<string>"
}
]
},
"warnings": [
{
"field": "<string>",
"reason": "<string>"
}
],
"resolved": {}
}{
"error": "<string>",
"reason": "no_credit_balance",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Autorizaciones
Cuerpo
Respuesta
Accepted; poll statusUrl.
Closed enum for a release's build lifecycle: queued (nothing started), building (a target is in flight), stopping (a target is stopping), stopped (all targets are terminal and some stopped), complete (all targets are terminal and none stopped). It says only whether the build is DONE, not whether it succeeded or is deployable. A complete release may have built all, some, or none of its targets; see artifactCounts and deployable. Adding or retrying a target reopens it to building.
queued, building, complete, stopping, stopped ¿Esta página le ayudó?