메인 콘텐츠로 건너뛰기
GET
/
api
/
view
파일 보기
curl --request GET \
  --url https://cloud.comfy.org/api/view \
  --header 'X-API-Key: <api-key>'
import requests

url = "https://cloud.comfy.org/api/view"

headers = {"X-API-Key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};

fetch('https://cloud.comfy.org/api/view', 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/view",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);

$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/view"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("X-API-Key", "<api-key>")

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/view")
.header("X-API-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://cloud.comfy.org/api/view")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
"<string>"
{
"code": "<string>",
"message": "<string>"
}
{
"code": "<string>",
"message": "<string>"
}
{
"code": "<string>",
"message": "<string>"
}

인증

X-API-Key
string
header
필수

API 키 인증. 계정 설정에서 API 키를 생성하세요. https://platform.comfy.org/profile/api-keys 에서 생성할 수 있습니다. X-API-Key 헤더에 키를 전달하세요.

쿼리 매개변수

filename
string
필수

볼 파일의 이름

예시:

"ComfyUI_00004_.png"

subfolder
string

파일이 위치한 하위 폴더 경로. 참고: ComfyUI API 호환성을 위해 허용되지만 클라우드에서는 무시됩니다. 클라우드는 콘텐츠 주소 저장소를 사용하며 에셋은 해시로만 저장됩니다. 하위 폴더는 클라이언트 측 UI 메타데이터이며 저장소 조회에 사용되지 않습니다.

예시:

"tests/foo/bar"

type
string

파일 유형 (예: 출력, 입력, 임시). 참고: 클라우드에서는 outputtemp 파일이 동일한 버킷에 저장됩니다. 유형 파라미터는 호환성을 위해 사용되지만 저장 위치는 해시에 의해 결정됩니다.

예시:

"output"

fullpath
string

파일의 전체 경로 (임시 파일에 사용됨)

format
string

파일 형식

frame_rate
integer

비디오 파일의 프레임 속도

workflow
string

워크플로 식별자

timestamp
integer

타임스탬프 파라미터

예시:

"1234567890"

channel
string

PNG 이미지에서 추출할 이미지 채널.

  • 'rgb': RGB 채널만 반환 (알파는 완전 불투명으로 설정)
  • 'a' 또는 'alpha': 알파 채널을 회색조 이미지로 반환
  • 지정하지 않으면 리다이렉트를 통해 원본 이미지를 변경하지 않고 반환
예시:

"rgb"

응답

성공 - 파일 콘텐츠 반환됨 (채널 파라미터가 있는 경우 사용)

추출된 채널이 포함된 처리된 PNG 이미지