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": {
        "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