Get available subgraph blueprints
curl --request GET \
--url https://cloud.comfy.org/api/global_subgraphsimport requests
url = "https://cloud.comfy.org/api/global_subgraphs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://cloud.comfy.org/api/global_subgraphs', 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://cloud.comfy.org/api/global_subgraphs",
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://cloud.comfy.org/api/global_subgraphs"
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://cloud.comfy.org/api/global_subgraphs")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.comfy.org/api/global_subgraphs")
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{}{
"code": "<string>",
"message": "<string>"
}workflow
Get available subgraph blueprints
Returns a list of globally available subgraph blueprints. These are pre-built workflow components that can be used as nodes. The data field contains a promise that resolves to the full subgraph JSON.
GET
/
api
/
global_subgraphs
Get available subgraph blueprints
curl --request GET \
--url https://cloud.comfy.org/api/global_subgraphsimport requests
url = "https://cloud.comfy.org/api/global_subgraphs"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://cloud.comfy.org/api/global_subgraphs', 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://cloud.comfy.org/api/global_subgraphs",
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://cloud.comfy.org/api/global_subgraphs"
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://cloud.comfy.org/api/global_subgraphs")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.comfy.org/api/global_subgraphs")
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{}{
"code": "<string>",
"message": "<string>"
}响应
Success - Map of subgraph IDs to their metadata
Metadata for a global subgraph blueprint (without full data)
Show child attributes
Show child attributes
⌘I