ComfyUI
  1. ComfyUI
ComfyUI
  • 🦊一分钟,了解StableDiffusion WebUI 和 ComfyUI !
  • Stable Diffusion WebUI
  • ComfyUI
    • /prompt
      POST
    • /history/{prompt_id}
      GET
    • /view
      GET
    • /upload/image
      POST
    • /upload/mask
      POST
    • /interrupt
      POST
    • /object_info/{node_class}
      GET
    • /system_stats
      GET
    • /history
      GET
    • /queue
      POST
    • /queue
      POST
    • /queue
      GET
    • /prompt 
      GET
    • /object_info
      GET
    • /view_metadata/{folder_name}
      POST
  1. ComfyUI

/history

GET
http://192.168.3.25:8188/history
获取历史任务列表

请求参数

无

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://192.168.3.25:8188/history'

返回响应

🟢200成功
application/json
Body
d40751e8-3e96-472f-a818-90d36d06faf1
object 
必需
prompt
array [oneOf] 
必需
outputs
object 
必需
status
object 
必需
f713dc91-5177-4486-816e-9f8c3f5a2da3
object 
必需
prompt
array [oneOf] 
必需
outputs
object 
必需
status
object 
必需
cddf6647-dba4-4cb2-a71d-65171e96589f
object 
必需
prompt
array [oneOf] 
必需
outputs
object 
必需
status
object 
必需
8e75808d-e79d-4f1e-a3d4-6742386c9b3e
object 
必需
prompt
array [oneOf] 
必需
outputs
object 
必需
status
object 
必需
4fdda88e-c2d7-493e-a5cb-689a2c9deedd
object 
必需
prompt
array [oneOf] 
必需
outputs
object 
必需
status
object 
必需
1ccf093f-70a2-41f4-844f-09cb69fce41b
object 
必需
prompt
array [oneOf] 
必需
outputs
object 
必需
status
object 
必需
a5cae7aa-0af9-4bb2-9989-1b429812134d
object 
必需
prompt
array [oneOf] 
必需
outputs
object 
必需
status
object 
必需
09621380-67be-4c22-805a-a917b58a52e1
object 
必需
prompt
array [oneOf] 
必需
outputs
object 
必需
status
object 
必需
3604be44-eb6b-4d54-b82d-62d31a6c0b36
object 
必需
prompt
array [oneOf] 
必需
outputs
object 
必需
status
object 
必需
faa157f1-7338-465a-ba51-5e5b37ff275a
object 
必需
prompt
array [oneOf] 
必需
outputs
object 
必需
status
object 
必需
39d61fa4-58a4-4f61-a547-caab0f4c3a53
object 
必需
prompt
array [oneOf] 
必需
outputs
object 
必需
status
object 
必需
示例
{
    "d40751e8-3e96-472f-a818-90d36d06faf1": {
        "prompt": [
            0,
            "d40751e8-3e96-472f-a818-90d36d06faf1",
            {
                "3": {
                    "inputs": {
                        "seed": 0,
                        "steps": 30,
                        "cfg": 8.0,
                        "sampler_name": "dpmpp_2m",
                        "scheduler": "karras",
                        "denoise": 1.0,
                        "model": [
                            "4",
                            0
                        ],
                        "positive": [
                            "6",
                            0
                        ],
                        "negative": [
                            "7",
                            0
                        ],
                        "latent_image": [
                            "5",
                            0
                        ]
                    },
                    "class_type": "KSampler",
                    "_meta": {
                        "title": "K采样器"
                    }
                },
                "4": {
                    "inputs": {
                        "ckpt_name": "sdxl-动漫二次元_2.0.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": "1girl,flower,outdoors,solo,dress,long hair,closed eyes,sky,holding,smile,cloud,open mouth,field,blush,day,blue sky,white flower,holding flower,flower field,short sleeves,teeth,blue dress,petals,:d,facing viewer,grey hair,floating hair,wind,happy,^_^,daisy,upper teeth only,white dress,",
                        "clip": [
                            "4",
                            1
                        ]
                    },
                    "class_type": "CLIPTextEncode",
                    "_meta": {
                        "title": "CLIP文本编码器"
                    }
                },
                "7": {
                    "inputs": {
                        "text": "(worst quality, low quality),deformed,distorted,disfigured,doll,poorly drawn,bad anatomy,wrong anatomy,",
                        "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": 5,
                                "type": "EmptyLatentImage",
                                "pos": [
                                    473,
                                    609
                                ],
                                "size": {
                                    "0": 315,
                                    "1": 106
                                },
                                "flags": {},
                                "order": 0,
                                "mode": 0,
                                "outputs": [
                                    {
                                     
修改于 2024-07-08 12:14:32
上一页
/system_stats
下一页
/queue
Built with