Apifox原件地址:地址
GET 获取历史任务数据
GET /history
获取所有历史任务数据
返回示例
{
"8278b4e6-656a-4dbd-8ec9-4a0784babac7": {
"prompt": [
0,
"8278b4e6-656a-4dbd-8ec9-4a0784babac7",
{
"3": {
"inputs": {
"seed": 156680208700286,
"steps": 20,
"cfg": 8,
"sampler_name": "euler",
"scheduler": "normal",
"denoise": 1,
"model": [
"4",
0
],
"positive": [
"6",
0
],
"negative": [
"7",
0
],
"latent_image": [
"5",
0
]
},
"class_type": "KSampler",
"_meta": {
"title": "K采样器"
}
},
"4": {
"inputs": {
"ckpt_name": "juggernautXL_v9Rundiffusionphoto2.safetensors"
},
"class_type": "CheckpointLoaderSimple",
"_meta": {
"title": "Checkpoint加载器(简易)"
}
},
"5": {
"inputs": {
"width": 512,
"height": 512,
"batch_size": 1
},
"class_type": "EmptyLatentImage",
"_meta": {
"title": "空Latent"
}
},
"6": {
"inputs": {
"text": "beautiful scenery nature glass bottle landscape, , purple galaxy bottle,",
"clip": [
"4",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP文本编码器"
}
},
"7": {
"inputs": {
"text": "text, watermark",
"clip": [
"4",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP文本编码器"
}
},
"8": {
"inputs": {
"samples": [
"3",
0
],
"vae": [
"4",
2
]
},
"class_type": "VAEDecode",
"_meta": {
"title": "VAE解码"
}
},
"9": {
"inputs": {
"filename_prefix": "ComfyUI",
"images": [
"8",
0
]
},
"class_type": "SaveImage",
"_meta": {
"title": "保存图像"
}
}
},
{
"extra_pnginfo": {
"workflow": {
"last_node_id": 9,
"last_link_id": 9,
"nodes": [
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
413,
389
],
"size": {
"0": 425.27801513671875,
"1": 180.6060791015625
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 5,
"label": "CLIP"
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": "[Object]",
"slot_index": 0,
"label": "条件"
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"text, watermark"
]
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
415,
186
],
"size": {
"0": 422.84503173828125,
"1": 164.31304931640625
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 3,
"label": "CLIP"
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": "[Object]",
"slot_index": 0,
"label": "条件"
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"beautiful scenery nature glass bottle landscape, , purple galaxy bottle,"
]
},
{
"id": 5,
"type": "EmptyLatentImage",
"pos": [
473,
609
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": "[Object]",
"slot_index": 0,
"label": "Latent"
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
512,
512,
1
]
},
{
"id": 3,
"type": "KSampler",
"pos": [
863,
186
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 1,
"label": "模型"
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 4,
"label": "正面条件"
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 6,
"label": "负面条件"
},
{
"name": "latent_image",
"type": "LATENT",
"link": 2,
"label": "Latent"
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": "[Object]",
"slot_index": 0,
"label": "Latent"
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
156680208700286,
"randomize",
20,
8,
"euler",
"normal",
1
]
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
1209,
188
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 7,
"label": "Latent"
},
{
"name": "vae",
"type": "VAE",
"link": 8,
"label": "VAE"
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": "[Object]",
"slot_index": 0,
"label": "图像"
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 9,
"type": "SaveImage",
"pos": [
1451,
189
],
"size": {
"0": 210,
"1": 58
},
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 9,
"label": "图像"
}
],
"properties": {},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 4,
"type": "CheckpointLoaderSimple",
"pos": [
26,
474
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": "[Object]",
"slot_index": 0,
"label": "模型"
},
{
"name": "CLIP",
"type": "CLIP",
"links": "[Object]",
"slot_index": 1,
"label": "CLIP"
},
{
"name": "VAE",
"type": "VAE",
"links": "[Object]",
"slot_index": 2,
"label": "VAE"
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"juggernautXL_v9Rundiffusionphoto2.safetensors"
]
}
],
"links": [
[
1,
4,
0,
3,
0,
"MODEL"
],
[
2,
5,
0,
3,
3,
"LATENT"
],
[
3,
4,
1,
6,
0,
"CLIP"
],
[
4,
6,
0,
3,
1,
"CONDITIONING"
],
[
5,
4,
1,
7,
0,
"CLIP"
],
[
6,
7,
0,
3,
2,
"CONDITIONING"
],
[
7,
3,
0,
8,
0,
"LATENT"
],
[
8,
4,
2,
8,
1,
"VAE"
],
[
9,
8,
0,
9,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1.3310000000000004,
"offset": [
148.65111914906248,
-147.5722921301243
]
}
},
"version": 0.4,
"widget_idx_map": {
"3": {
"seed": 0,
"sampler_name": 4,
"scheduler": 5
}
}
}
},
"client_id": "a18ca951a80a405f843c501d53a6d4a6"
},
[
"9"
]
],
"outputs": {
"9": {
"images": [
{
"filename": "ComfyUI_00065_.png",
"subfolder": "",
"type": "output"
}
]
}
},
"status": {
"status_str": "success",
"completed": true,
"messages": [
[
"execution_start",
{
"prompt_id": "8278b4e6-656a-4dbd-8ec9-4a0784babac7",
"timestamp": 1723822366782
}
],
[
"execution_cached",
{
"nodes": [],
"prompt_id": "8278b4e6-656a-4dbd-8ec9-4a0784babac7",
"timestamp": 1723822366782
}
],
[
"execution_success",
{
"prompt_id": "8278b4e6-656a-4dbd-8ec9-4a0784babac7",
"timestamp": 1723822403336
}
]
]
}
},
"77b4eab0-421f-4ba6-9b87-81f56b08bfd7": {
"prompt": [
1,
"77b4eab0-421f-4ba6-9b87-81f56b08bfd7",
{
"3": {
"inputs": {
"seed": 539462851147340,
"steps": 20,
"cfg": 8,
"sampler_name": "euler",
"scheduler": "normal",
"denoise": 1,
"model": [
"4",
0
],
"positive": [
"6",
0
],
"negative": [
"7",
0
],
"latent_image": [
"5",
0
]
},
"class_type": "KSampler",
"_meta": {
"title": "K采样器"
}
},
"4": {
"inputs": {
"ckpt_name": "juggernautXL_v9Rundiffusionphoto2.safetensors"
},
"class_type": "CheckpointLoaderSimple",
"_meta": {
"title": "Checkpoint加载器(简易)"
}
},
"5": {
"inputs": {
"width": 512,
"height": 512,
"batch_size": 1
},
"class_type": "EmptyLatentImage",
"_meta": {
"title": "空Latent"
}
},
"6": {
"inputs": {
"text": "a beautiful girl",
"clip": [
"4",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP文本编码器"
}
},
"7": {
"inputs": {
"text": "text, watermark",
"clip": [
"4",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP文本编码器"
}
},
"8": {
"inputs": {
"samples": [
"3",
0
],
"vae": [
"4",
2
]
},
"class_type": "VAEDecode",
"_meta": {
"title": "VAE解码"
}
},
"9": {
"inputs": {
"filename_prefix": "ComfyUI",
"images": [
"8",
0
]
},
"class_type": "SaveImage",
"_meta": {
"title": "保存图像"
}
}
},
{
"extra_pnginfo": {
"workflow": {
"last_node_id": 9,
"last_link_id": 9,
"nodes": [
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
413,
389
],
"size": {
"0": 425.27801513671875,
"1": 180.6060791015625
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 5,
"label": "CLIP"
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": "[Object]",
"slot_index": 0,
"label": "条件"
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"text, watermark"
]
},
{
"id": 5,
"type": "EmptyLatentImage",
"pos": [
473,
609
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": "[Object]",
"slot_index": 0,
"label": "Latent"
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
512,
512,
1
]
},
{
"id": 3,
"type": "KSampler",
"pos": [
863,
186
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 1,
"label": "模型"
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 4,
"label": "正面条件"
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 6,
"label": "负面条件"
},
{
"name": "latent_image",
"type": "LATENT",
"link": 2,
"label": "Latent"
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": "[Object]",
"slot_index": 0,
"label": "Latent"
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
539462851147340,
"randomize",
20,
8,
"euler",
"normal",
1
]
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
1209,
188
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 7,
"label": "Latent"
},
{
"name": "vae",
"type": "VAE",
"link": 8,
"label": "VAE"
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": "[Object]",
"slot_index": 0,
"label": "图像"
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 9,
"type": "SaveImage",
"pos": [
1451,
189
],
"size": [
210,
270
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 9,
"label": "图像"
}
],
"properties": {},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 4,
"type": "CheckpointLoaderSimple",
"pos": [
26,
474
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": "[Object]",
"slot_index": 0,
"label": "模型"
},
{
"name": "CLIP",
"type": "CLIP",
"links": "[Object]",
"slot_index": 1,
"label": "CLIP"
},
{
"name": "VAE",
"type": "VAE",
"links": "[Object]",
"slot_index": 2,
"label": "VAE"
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"juggernautXL_v9Rundiffusionphoto2.safetensors"
]
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
415,
186
],
"size": {
"0": 422.84503173828125,
"1": 164.31304931640625
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 3,
"label": "CLIP"
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": "[Object]",
"slot_index": 0,
"label": "条件"
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"a beautiful girl"
]
}
],
"links": [
[
1,
4,
0,
3,
0,
"MODEL"
],
[
2,
5,
0,
3,
3,
"LATENT"
],
[
3,
4,
1,
6,
0,
"CLIP"
],
[
4,
6,
0,
3,
1,
"CONDITIONING"
],
[
5,
4,
1,
7,
0,
"CLIP"
],
[
6,
7,
0,
3,
2,
"CONDITIONING"
],
[
7,
3,
0,
8,
0,
"LATENT"
],
[
8,
4,
2,
8,
1,
"VAE"
],
[
9,
8,
0,
9,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.9090909090909091,
"offset": [
262.80178794029734,
81.67976865703953
]
}
},
"version": 0.4,
"widget_idx_map": {
"3": {
"seed": 0,
"sampler_name": 4,
"scheduler": 5
}
}
}
},
"client_id": "a18ca951a80a405f843c501d53a6d4a6"
},
[
"9"
]
],
"outputs": {
"9": {
"images": [
{
"filename": "ComfyUI_00066_.png",
"subfolder": "",
"type": "output"
}
]
}
},
"status": {
"status_str": "success",
"completed": true,
"messages": [
[
"execution_start",
{
"prompt_id": "77b4eab0-421f-4ba6-9b87-81f56b08bfd7",
"timestamp": 1723822404910
}
],
[
"execution_cached",
{
"nodes": [
"4",
"5",
"7"
],
"prompt_id": "77b4eab0-421f-4ba6-9b87-81f56b08bfd7",
"timestamp": 1723822404927
}
],
[
"execution_success",
{
"prompt_id": "77b4eab0-421f-4ba6-9b87-81f56b08bfd7",
"timestamp": 1723822413479
}
]
]
}
},
"a4f49ff0-945b-478e-854c-6e7e1450256f": {
"prompt": [
2,
"a4f49ff0-945b-478e-854c-6e7e1450256f",
{
"3": {
"inputs": {
"seed": 420379388855134,
"steps": 20,
"cfg": 8,
"sampler_name": "euler",
"scheduler": "normal",
"denoise": 1,
"model": [
"4",
0
],
"positive": [
"6",
0
],
"negative": [
"7",
0
],
"latent_image": [
"5",
0
]
},
"class_type": "KSampler",
"_meta": {
"title": "K采样器"
}
},
"4": {
"inputs": {
"ckpt_name": "ghostxl_v10BakedVAE.safetensors"
},
"class_type": "CheckpointLoaderSimple",
"_meta": {
"title": "Checkpoint加载器(简易)"
}
},
"5": {
"inputs": {
"width": 1024,
"height": 1024,
"batch_size": 1
},
"class_type": "EmptyLatentImage",
"_meta": {
"title": "空Latent"
}
},
"6": {
"inputs": {
"text": "a beautiful girl",
"clip": [
"4",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP文本编码器"
}
},
"7": {
"inputs": {
"text": "text, watermark",
"clip": [
"4",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP文本编码器"
}
},
"8": {
"inputs": {
"samples": [
"3",
0
],
"vae": [
"4",
2
]
},
"class_type": "VAEDecode",
"_meta": {
"title": "VAE解码"
}
},
"9": {
"inputs": {
"filename_prefix": "ComfyUI",
"images": [
"8",
0
]
},
"class_type": "SaveImage",
"_meta": {
"title": "保存图像"
}
}
},
{
"extra_pnginfo": {
"workflow": {
"last_node_id": 9,
"last_link_id": 9,
"nodes": [
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
413,
389
],
"size": {
"0": 425.27801513671875,
"1": 180.6060791015625
},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 5,
"label": "CLIP"
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": "[Object]",
"slot_index": 0,
"label": "条件"
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"text, watermark"
]
},
{
"id": 3,
"type": "KSampler",
"pos": [
863,
186
],
"size": {
"0": 315,
"1": 262
},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 1,
"label": "模型"
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 4,
"label": "正面条件"
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 6,
"label": "负面条件"
},
{
"name": "latent_image",
"type": "LATENT",
"link": 2,
"label": "Latent"
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": "[Object]",
"slot_index": 0,
"label": "Latent"
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
420379388855134,
"randomize",
20,
8,
"euler",
"normal",
1
]
},
{
"id": 8,
"type": "VAEDecode",
"pos": [
1209,
188
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 7,
"label": "Latent"
},
{
"name": "vae",
"type": "VAE",
"link": 8,
"label": "VAE"
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": "[Object]",
"slot_index": 0,
"label": "图像"
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 9,
"type": "SaveImage",
"pos": [
1451,
189
],
"size": [
210,
270
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 9,
"label": "图像"
}
],
"properties": {},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 6,
"type": "CLIPTextEncode",
"pos": [
415,
186
],
"size": {
"0": 422.84503173828125,
"1": 164.31304931640625
},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 3,
"label": "CLIP"
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": "[Object]",
"slot_index": 0,
"label": "条件"
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"a beautiful girl"
]
},
{
"id": 4,
"type": "CheckpointLoaderSimple",
"pos": [
26,
474
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": "[Object]",
"slot_index": 0,
"label": "模型"
},
{
"name": "CLIP",
"type": "CLIP",
"links": "[Object]",
"slot_index": 1,
"label": "CLIP"
},
{
"name": "VAE",
"type": "VAE",
"links": "[Object]",
"slot_index": 2,
"label": "VAE"
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"ghostxl_v10BakedVAE.safetensors"
]
},
{
"id": 5,
"type": "EmptyLatentImage",
"pos": [
473,
609
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": "[Object]",
"slot_index": 0,
"label": "Latent"
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
1024,
1024,
1
]
}
],
"links": [
[
1,
4,
0,
3,
0,
"MODEL"
],
[
2,
5,
0,
3,
3,
"LATENT"
],
[
3,
4,
1,
6,
0,
"CLIP"
],
[
4,
6,
0,
3,
1,
"CONDITIONING"
],
[
5,
4,
1,
7,
0,
"CLIP"
],
[
6,
7,
0,
3,
2,
"CONDITIONING"
],
[
7,
3,
0,
8,
0,
"LATENT"
],
[
8,
4,
2,
8,
1,
"VAE"
],
[
9,
8,
0,
9,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.9090909090909091,
"offset": [
375.7350765145161,
92.67976865703952
]
}
},
"version": 0.4,
"widget_idx_map": {
"3": {
"seed": 0,
"sampler_name": 4,
"scheduler": 5
}
}
}
},
"client_id": "a18ca951a80a405f843c501d53a6d4a6"
},
[
"9"
]
],
"outputs": {
"9": {
"images": [
{
"filename": "ComfyUI_00067_.png",
"subfolder": "",
"type": "output"
}
]
}
},
"status": {
"status_str": "success",
"completed": true,
"messages": [
[
"execution_start",
{
"prompt_id": "a4f49ff0-945b-478e-854c-6e7e1450256f",
"timestamp": 1723822429109
}
],
[
"execution_cached",
{
"nodes": [],
"prompt_id": "a4f49ff0-945b-478e-854c-6e7e1450256f",
"timestamp": 1723822429194
}
],
[
"execution_success",
{
"prompt_id": "a4f49ff0-945b-478e-854c-6e7e1450256f",
"timestamp": 1723822479903
}
]
]
}
}
}
{}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | none | Inline |
返回数据结构
GET 获取任务数据
GET /history/{prompt_id}
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
prompt_id | path | string | 是 | none |
返回示例
{
"35bd62e6-a6fd-4a32-84d4-365d80bd79d5": {
"prompt": [
1,
"35bd62e6-a6fd-4a32-84d4-365d80bd79d5",
{
"3": {
"inputs": {
"seed": 1095203137526772,
"steps": 20,
"cfg": 8,
"sampler_name": "euler",
"scheduler": "normal",
"denoise": 1,
"model": [
"4",
0
],
"positive": [
"6",
0
],
"negative": [
"7",
0
],
"latent_image": [
"5",
0
]
},
"class_type": "KSampler",
"_meta": {
"title": "K采样器"
}
},
"4": {
"inputs": {
"ckpt_name": "ghostxl_v10BakedVAE.safetensors"
},
"class_type": "CheckpointLoaderSimple",
"_meta": {
"title": "Checkpoint加载器(简易)"
}
},
"5": {
"inputs": {
"width": 1024,
"height": 1024,
"batch_size": 1
},
"class_type": "EmptyLatentImage",
"_meta": {
"title": "空Latent"
}
},
"6": {
"inputs": {
"text": "a beautiful girl",
"clip": [
"4",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP文本编码器"
}
},
"7": {
"inputs": {
"text": "text, watermark",
"clip": [
"4",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP文本编码器"
}
},
"8": {
"inputs": {
"samples": [
"3",
0
],
"vae": [
"4",
2
]
},
"class_type": "VAEDecode",
"_meta": {
"title": "VAE解码"
}
},
"9": {
"inputs": {
"filename_prefix": "ComfyUI",
"images": [
"8",
0
]
},
"class_type": "SaveImage",
"_meta": {
"title": "保存图像"
}
}
},
{
"client_id": "test003"
},
[
"9"
]
],
"outputs": {
"9": {
"images": [
{
"filename": "ComfyUI_00068_.png",
"subfolder": "",
"type": "output"
}
]
}
},
"status": {
"status_str": "success",
"completed": true,
"messages": [
[
"execution_start",
{
"prompt_id": "35bd62e6-a6fd-4a32-84d4-365d80bd79d5",
"timestamp": 1723867781938
}
],
[
"execution_cached",
{
"nodes": [],
"prompt_id": "35bd62e6-a6fd-4a32-84d4-365d80bd79d5",
"timestamp": 1723867781939
}
],
[
"execution_success",
{
"prompt_id": "35bd62e6-a6fd-4a32-84d4-365d80bd79d5",
"timestamp": 1723867826249
}
]
]
}
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | none | Inline |
返回数据结构
GET 获取节点信息
GET /127.0.0.1/object_info
返回示例
200 Response
{}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | none | Inline |
返回数据结构
POST 发布绘图任务
POST /prompt
Body 请求参数
{
"client_id": "test003",
"prompt": {
"3": {
"inputs": {
"seed": 1095203137526772,
"steps": 20,
"cfg": 8,
"sampler_name": "euler",
"scheduler": "normal",
"denoise": 1,
"model": [
"4",
0
],
"positive": [
"6",
0
],
"negative": [
"7",
0
],
"latent_image": [
"5",
0
]
},
"class_type": "KSampler",
"_meta": {
"title": "K采样器"
}
},
"4": {
"inputs": {
"ckpt_name": "ghostxl_v10BakedVAE.safetensors"
},
"class_type": "CheckpointLoaderSimple",
"_meta": {
"title": "Checkpoint加载器(简易)"
}
},
"5": {
"inputs": {
"width": 1024,
"height": 1024,
"batch_size": 1
},
"class_type": "EmptyLatentImage",
"_meta": {
"title": "空Latent"
}
},
"6": {
"inputs": {
"text": "a beautiful girl",
"clip": [
"4",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP文本编码器"
}
},
"7": {
"inputs": {
"text": "text, watermark",
"clip": [
"4",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP文本编码器"
}
},
"8": {
"inputs": {
"samples": [
"3",
0
],
"vae": [
"4",
2
]
},
"class_type": "VAEDecode",
"_meta": {
"title": "VAE解码"
}
},
"9": {
"inputs": {
"filename_prefix": "ComfyUI",
"images": [
"8",
0
]
},
"class_type": "SaveImage",
"_meta": {
"title": "保存图像"
}
}
}
}
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
body | body | object | 否 | none |
» client_id | body | string | 是 | none |
» prompt | body | string | 是 | none |
返回示例
{
"error": {
"type": "prompt_outputs_failed_validation",
"message": "Prompt outputs failed validation",
"details": "",
"extra_info": {}
},
"node_errors": {
"47": {
"errors": [
{
"type": "value_not_in_list",
"message": "Value not in list",
"details": "ckpt_name: 'meinamix_meinaV11.safetensors' not in ['LEOSAM HelloWorld 新世界 _ SDXL大模型_v6.0.safetensors', 'SDXLRonghua_v30.safetensors', 'SUPIR-v0Q_fp16.safetensors', 'aiartistHyperrayXLXL_hypersdxl.safetensors', 'anything-v5-PrtRE.safetensors', 'dreamshaper_8.safetensors', 'ghostmix_v20Bakedvae.safetensors', 'ghostxl_v10BakedVAE.safetensors', 'juggernautXL_v9Rundiffusionphoto2.safetensors', 'majicmixRealistic_v7.safetensors', 'realBeautifulAsian_v10.safetensors', 'sd3_medium.safetensors', 'sdXL_v10VAEFix.safetensors', 'sdxl10ArienmixxlAsian_v45Pruned.safetensors', 'svd-fp16.safetensors', 'xxmix9realisticsdxl_testV20.safetensors', '动漫必备模型 _ Counterfeit-V2.5_v30.safetensors', '极氪写实MAX-极氪白系列模型_V6.safetensors', '橘子AbyssOrangeMix2 - SFW_Soft NSFW_AbyssOrangeMix2_sfw.safetensors', '竹羽原创插画艺术模型Illustration Art ZY SDXL V1.0_v1.0.safetensors']",
"extra_info": {
"input_name": "ckpt_name",
"input_config": [
[
"LEOSAM HelloWorld 新世界 _ SDXL大模型_v6.0.safetensors",
"SDXLRonghua_v30.safetensors",
"SUPIR-v0Q_fp16.safetensors",
"aiartistHyperrayXLXL_hypersdxl.safetensors",
"anything-v5-PrtRE.safetensors",
"dreamshaper_8.safetensors",
"ghostmix_v20Bakedvae.safetensors",
"ghostxl_v10BakedVAE.safetensors",
"juggernautXL_v9Rundiffusionphoto2.safetensors",
"majicmixRealistic_v7.safetensors",
"realBeautifulAsian_v10.safetensors",
"sd3_medium.safetensors",
"sdXL_v10VAEFix.safetensors",
"sdxl10ArienmixxlAsian_v45Pruned.safetensors",
"svd-fp16.safetensors",
"xxmix9realisticsdxl_testV20.safetensors",
"动漫必备模型 _ Counterfeit-V2.5_v30.safetensors",
"极氪写实MAX-极氪白系列模型_V6.safetensors",
"橘子AbyssOrangeMix2 - SFW_Soft NSFW_AbyssOrangeMix2_sfw.safetensors",
"竹羽原创插画艺术模型Illustration Art ZY SDXL V1.0_v1.0.safetensors"
]
],
"received_value": "meinamix_meinaV11.safetensors"
}
}
],
"dependent_outputs": [
"32",
"51"
],
"class_type": "Efficient Loader"
}
}
}
{
"prompt_id": "ee2b584d-175b-4d62-88ce-d6ae4aa4499e",
"number": 1,
"node_errors": {}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | none | Inline |
返回数据结构
GET 获取服务器当前剩余任务列队的数量
GET /prompt
获取服务器当前剩余任务列队的数量
返回示例
{
"exec_info": {
"queue_remaining": 0
}
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | none | Inline |
返回数据结构
POST 图片上传
POST /upload/image
上传图片到ComfyUI服务器的input目录
Body 请求参数
image: file://C:\Users\ASUS\Pictures\00001.png
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
body | body | object | 否 | none |
» image | body | string(binary) | 否 | none |
返回示例
{
"name": "00001.png",
"subfolder": "",
"type": "input"
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | none | Inline |
返回数据结构
POST 上传蒙版图片接口
POST /upload/mask
上传蒙版图片接口,一般用于局部重绘
Body 请求参数
image: ""
type: input
subfolder: ""
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
body | body | object | 否 | none |
» image | body | string(binary) | 否 | none |
» type | body | string | 否 | none |
» subfolder | body | string | 否 | none |
返回示例
200 Response
{}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | none | Inline |
返回数据结构
GET 获取embeddings列表
GET /embeddings
获取embeddings列表
返回示例
[
"BadDream",
"By bad artist -neg",
"EasyNegative",
"EasyNegative",
"EasyNegativeV2_V2.0",
"bad-hands-5",
"badhandv4",
"ng_deepnegative_v1_75t"
]
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | none | Inline |
返回数据结构
GET 获取扩展节点文件列表
GET /extensions
获取扩展节点文件列表
返回示例
[
"/extensions/core/clipspace.js",
"/extensions/core/contextMenuFilter.js",
"/extensions/core/editAttention.js",
"/extensions/core/groupNodeManage.js",
"/extensions/core/groupOptions.js",
"/extensions/core/invertMenuScrolling.js",
"/extensions/core/linkRenderMode.js",
"/extensions/core/nodeTemplates.js",
"/extensions/core/noteNode.js",
"/extensions/core/rerouteNode.js",
"/extensions/core/saveImageExtraOutput.js",
"/extensions/core/slotDefaults.js",
"/extensions/core/uploadImage.js",
"/extensions/core/simpleTouchSupport.js",
"/extensions/core/dynamicPrompts.js",
"/extensions/core/keybinds.js",
"/extensions/core/maskeditor.js",
"/extensions/core/snapToGrid.js",
"/extensions/core/webcamCapture.js",
"/extensions/core/widgetInputs.js",
"/extensions/core/colorPalette.js",
"/extensions/core/groupNode.js",
"/extensions/core/uploadAudio.js",
"/extensions/zfkun/preview_text.js",
"/extensions/zfkun/preview_text_multiline.js",
"/extensions/zfkun/share_screen.js",
"/extensions/AlekPet_Nodes/argos_tranlsate_node.js",
"/extensions/AlekPet_Nodes/extras_node.js",
"/extensions/AlekPet_Nodes/utils.js",
"/extensions/AlekPet_Nodes/painter_node.js",
"/extensions/AlekPet_Nodes/pose_node.js",
"/extensions/AlekPet_Nodes/deep_translator_node.js",
"/extensions/AlekPet_Nodes/google_translate_node.js",
"/extensions/AlekPet_Nodes/lib/painternode/fabric.js",
"/extensions/AlekPet_Nodes/lib/painternode/brushes.js",
"/extensions/AlekPet_Nodes/lib/posenode/fabric.js",
"/extensions/AIGODLIKE-ComfyUI-Translation/LocaleMap.js",
"/extensions/AIGODLIKE-ComfyUI-Translation/main.js",
"/extensions/AIGODLIKE-ComfyUI-Translation/MenuTranslate.js",
"/extensions/ComfyUI-AnimateDiff-Evolved/js/gif_preview.js",
"/extensions/ComfyUI-Impact-Pack/comboBoolMigration.js",
"/extensions/ComfyUI-Impact-Pack/common.js",
"/extensions/ComfyUI-Impact-Pack/impact-segs-picker.js",
"/extensions/ComfyUI-Impact-Pack/impact-image-util.js",
"/extensions/ComfyUI-Impact-Pack/impact-pack.js",
"/extensions/ComfyUI-Impact-Pack/impact-sam-editor.js",
"/extensions/ComfyUI-Impact-Pack/impact-wildcard.js",
"/extensions/ComfyUI-Inspire-Pack/common.js",
"/extensions/ComfyUI-Inspire-Pack/image_util.js",
"/extensions/ComfyUI-Inspire-Pack/inspire-flex.js",
"/extensions/ComfyUI-Inspire-Pack/inspire-pack.js",
"/extensions/ComfyUI-Inspire-Pack/lora_block_weight.js",
"/extensions/ComfyUI-Inspire-Pack/prompt.js",
"/extensions/ComfyUI-Inspire-Pack/regional.js",
"/extensions/ComfyUI-Inspire-Pack/seed.js",
"/extensions/ComfyUI-Inspire-Pack/inspire-backend.js",
"/extensions/ComfyUI-Manager/comfyui-share-youml.js",
"/extensions/ComfyUI-Manager/components-manager.js",
"/extensions/ComfyUI-Manager/node_fixer.js",
"/extensions/ComfyUI-Manager/terminal.js",
"/extensions/ComfyUI-Manager/comfyui-share-common.js",
"/extensions/ComfyUI-Manager/cm-api.js",
"/extensions/ComfyUI-Manager/comfyui-manager.js",
"/extensions/ComfyUI-Manager/comfyui-share-openart.js",
"/extensions/ComfyUI-Manager/common.js",
"/extensions/ComfyUI-Manager/custom-nodes-manager.js",
"/extensions/ComfyUI-Manager/model-downloader.js",
"/extensions/ComfyUI-Manager/snapshot.js",
"/extensions/ComfyUI-Manager/turbogrid.esm.js",
"/extensions/ComfyUI-WD14-Tagger/js/wd14tagger.js",
"/extensions/comfyui-workspace-manager/entry.js",
"/extensions/Derfuu_ComfyUI_ModdedNodes/debugNode.js",
"/extensions/ComfyUI_tinyterraNodes/ttN.js",
"/extensions/ComfyUI_tinyterraNodes/ttNdropdown.js",
"/extensions/ComfyUI_tinyterraNodes/ttNdynamicWidgets.js",
"/extensions/ComfyUI_tinyterraNodes/ttNembedAC.js",
"/extensions/ComfyUI_tinyterraNodes/ttNfullscreen.js",
"/extensions/ComfyUI_tinyterraNodes/ttNinterface.js",
"/extensions/ComfyUI_tinyterraNodes/ttNwidgets.js",
"/extensions/ComfyUI_tinyterraNodes/ttNxyPlot.js",
"/extensions/ComfyUI_tinyterraNodes/ttNxyPlotAdv.js",
"/extensions/ComfyUI_tinyterraNodes/utils.js",
"/extensions/ComfyUI-VideoHelperSuite/js/VHS.core.js",
"/extensions/ComfyUI-VideoHelperSuite/js/videoinfo.js",
"/extensions/efficiency-nodes-comfyui/appearance.js",
"/extensions/efficiency-nodes-comfyui/gif_preview.js",
"/extensions/efficiency-nodes-comfyui/previewfix.js",
"/extensions/efficiency-nodes-comfyui/seedcontrol.js",
"/extensions/efficiency-nodes-comfyui/widgethider.js",
"/extensions/efficiency-nodes-comfyui/workflowfix.js",
"/extensions/efficiency-nodes-comfyui/node_options/addLinks.js",
"/extensions/efficiency-nodes-comfyui/node_options/addScripts.js",
"/extensions/efficiency-nodes-comfyui/node_options/addXYinputs.js",
"/extensions/efficiency-nodes-comfyui/node_options/modelInfo.js",
"/extensions/efficiency-nodes-comfyui/node_options/setResolution.js",
"/extensions/efficiency-nodes-comfyui/node_options/swapLoaders.js",
"/extensions/efficiency-nodes-comfyui/node_options/swapSamplers.js",
"/extensions/efficiency-nodes-comfyui/node_options/swapScripts.js",
"/extensions/efficiency-nodes-comfyui/node_options/swapXYinputs.js",
"/extensions/efficiency-nodes-comfyui/node_options/common/modelInfoDialog.js",
"/extensions/efficiency-nodes-comfyui/node_options/common/utils.js",
"/extensions/rgthree-comfy/any_switch.js",
"/extensions/rgthree-comfy/base_any_input_connected_node.js",
"/extensions/rgthree-comfy/base_node.js",
"/extensions/rgthree-comfy/base_node_collector.js",
"/extensions/rgthree-comfy/base_node_mode_changer.js",
"/extensions/rgthree-comfy/base_power_prompt.js",
"/extensions/rgthree-comfy/bookmark.js",
"/extensions/rgthree-comfy/bypasser.js",
"/extensions/rgthree-comfy/config.js",
"/extensions/rgthree-comfy/config_service.js",
"/extensions/rgthree-comfy/constants.js",
"/extensions/rgthree-comfy/context.js",
"/extensions/rgthree-comfy/display_any.js",
"/extensions/rgthree-comfy/fast_actions_button.js",
"/extensions/rgthree-comfy/fast_groups_bypasser.js",
"/extensions/rgthree-comfy/fast_groups_muter.js",
"/extensions/rgthree-comfy/image_comparer.js",
"/extensions/rgthree-comfy/image_inset_crop.js",
"/extensions/rgthree-comfy/menu_auto_nest.js",
"/extensions/rgthree-comfy/menu_copy_image.js",
"/extensions/rgthree-comfy/menu_queue_node.js",
"/extensions/rgthree-comfy/muter.js",
"/extensions/rgthree-comfy/node_collector.js",
"/extensions/rgthree-comfy/node_mode_relay.js",
"/extensions/rgthree-comfy/node_mode_repeater.js",
"/extensions/rgthree-comfy/power_prompt.js",
"/extensions/rgthree-comfy/random_unmuter.js",
"/extensions/rgthree-comfy/reroute.js",
"/extensions/rgthree-comfy/rgthree.js",
"/extensions/rgthree-comfy/seed.js",
"/extensions/rgthree-comfy/utils.js",
"/extensions/rgthree-comfy/utils_canvas.js"
]
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | none | Inline |
返回数据结构
GET 图片预览
GET /view
图片的在线预览接口(上传图像,生图图像,蒙蔽图像,均通过该接口预览)
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
filename | query | string | 否 | 分组 |
type | query | string | 否 | none |
subfolder | query | string | 否 | none |
返回示例
200 Response
{}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | none | Inline |
返回数据结构
GET 获取所有的队列信息
GET /queue
获取详细任务队列信息,正在运行的以及挂起的
返回示例
{
"queue_running": [
[
37,
"cf546edc-4d59-466b-b3fe-412cf4ea2d1f",
{
"3": {
"inputs": {
"seed": 8613883012,
"steps": 20,
"cfg": 8,
"sampler_name": "euler",
"scheduler": "normal",
"denoise": 1,
"model": [
"4",
0
],
"positive": [
"6",
0
],
"negative": [
"7",
0
],
"latent_image": [
"5",
0
]
},
"class_type": "KSampler",
"_meta": {
"title": "K采样器"
}
},
"4": {
"inputs": {
"ckpt_name": "juggernautXL_v9Rundiffusionphoto2.safetensors"
},
"class_type": "CheckpointLoaderSimple",
"_meta": {
"title": "Checkpoint加载器(简易)"
}
},
"5": {
"inputs": {
"width": 1024,
"height": 1024,
"batch_size": 1
},
"class_type": "EmptyLatentImage",
"_meta": {
"title": "空Latent"
}
},
"6": {
"inputs": {
"text": "a beautiful girl",
"clip": [
"4",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP文本编码器"
}
},
"7": {
"inputs": {
"text": "text, watermark",
"clip": [
"4",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP文本编码器"
}
},
"8": {
"inputs": {
"samples": [
"3",
0
],
"vae": [
"4",
2
]
},
"class_type": "VAEDecode",
"_meta": {
"title": "VAE解码"
}
},
"9": {
"inputs": {
"filename_prefix": "ComfyUI",
"images": [
"8",
0
]
},
"class_type": "SaveImage",
"_meta": {
"title": "保存图像"
}
}
},
{
"client_id": "test001"
},
[
"9"
]
]
],
"queue_pending": [
[
38,
"badb10e9-ce96-437b-8c31-647fa44b4db5",
{
"3": {
"inputs": {
"seed": 3079741558,
"steps": 20,
"cfg": 8,
"sampler_name": "euler",
"scheduler": "normal",
"denoise": 1,
"model": [
"4",
0
],
"positive": [
"6",
0
],
"negative": [
"7",
0
],
"latent_image": [
"5",
0
]
},
"class_type": "KSampler",
"_meta": {
"title": "K采样器"
}
},
"4": {
"inputs": {
"ckpt_name": "juggernautXL_v9Rundiffusionphoto2.safetensors"
},
"class_type": "CheckpointLoaderSimple",
"_meta": {
"title": "Checkpoint加载器(简易)"
}
},
"5": {
"inputs": {
"width": 1024,
"height": 1024,
"batch_size": 1
},
"class_type": "EmptyLatentImage",
"_meta": {
"title": "空Latent"
}
},
"6": {
"inputs": {
"text": "a beautiful girl",
"clip": [
"4",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP文本编码器"
}
},
"7": {
"inputs": {
"text": "text, watermark",
"clip": [
"4",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP文本编码器"
}
},
"8": {
"inputs": {
"samples": [
"3",
0
],
"vae": [
"4",
2
]
},
"class_type": "VAEDecode",
"_meta": {
"title": "VAE解码"
}
},
"9": {
"inputs": {
"filename_prefix": "ComfyUI",
"images": [
"8",
0
]
},
"class_type": "SaveImage",
"_meta": {
"title": "保存图像"
}
}
},
{
"client_id": "test001"
},
[
"9"
]
]
]
}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | none | Inline |
返回数据结构
POST 删除指定任务队列
POST /queue
Body 请求参数
{
"delete": [
"9c0d9ef3-442f-4350-8173-6c13e12caa7c"
]
}
请求参数
名称 | 位置 | 类型 | 必选 | 说明 |
---|---|---|---|---|
body | body | object | 否 | none |
返回示例
null
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | none | Inline |
返回数据结构
POST 取消当前任务
POST /interrupt
取消当前任务/不需任何参数
返回示例
200 Response
{}
返回结果
状态码 | 状态码含义 | 说明 | 数据模型 |
---|---|---|---|
200 | OK | none | Inline |