실행 기록 가져오기 (v2)
curl --request GET \
--url https://cloud.comfy.org/api/history_v2 \
--header 'X-API-Key: <api-key>'import requests
url = "https://cloud.comfy.org/api/history_v2"
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/history_v2', 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/history_v2",
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/history_v2"
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/history_v2")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.comfy.org/api/history_v2")
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{
"history": [
{
"prompt_id": "<string>",
"create_time": 123,
"workflow_id": "<string>",
"prompt": {
"priority": 123,
"prompt_id": "<string>",
"extra_data": {}
},
"outputs": {},
"status": {},
"meta": {}
}
]
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}job
실행 기록 가져오기 (v2)
deprecated
지원 중단됨. 대신 /api/jobs를 사용하세요. 이 엔드포인트는 ComfyUI 호환성을 위해 유지되며, 향후 릴리스에서 제거될 예정입니다. 제거 날짜는 정해지지 않았습니다.
인증된 사용자의 실행 기록을 페이지네이션 지원과 함께 가져옵니다. 필터링된 프롬프트 데이터(extra_pnginfo에서 워크플로 제거됨)를 포함한 경량 히스토리 형식을 반환합니다.
GET
/
api
/
history_v2
실행 기록 가져오기 (v2)
curl --request GET \
--url https://cloud.comfy.org/api/history_v2 \
--header 'X-API-Key: <api-key>'import requests
url = "https://cloud.comfy.org/api/history_v2"
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/history_v2', 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/history_v2",
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/history_v2"
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/history_v2")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://cloud.comfy.org/api/history_v2")
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{
"history": [
{
"prompt_id": "<string>",
"create_time": 123,
"workflow_id": "<string>",
"prompt": {
"priority": 123,
"prompt_id": "<string>",
"extra_data": {}
},
"outputs": {},
"status": {},
"meta": {}
}
]
}{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}인증
API 키 인증. 계정 설정에서 API 키를 생성하세요. https://platform.comfy.org/profile/api-keys 에서 생성할 수 있습니다. X-API-Key 헤더에 키를 전달하세요.
응답
성공: 실행 기록이 조회되었습니다.
히스토리 배열이 포함된 실행 히스토리 응답. 히스토리 항목 배열을 포함하는 "history" 키가 있는 객체를 반환합니다. 각 항목에는 실행 데이터와 함께 prompt_id 속성이 포함됩니다.
생성 시간 순으로 정렬된 히스토리 항목 배열 (최신순)
Show child attributes
Show child attributes
⌘I