ComfyUI API
    ComfyUI API
    • 连接ComfyUI实时进度消息
    • 获取历史任务数据
      GET
    • 根据id获取历史任务数据
      GET
    • 获取节点信息
      GET
    • 发布绘图任务
      POST
    • 获取任务数据
      GET
    • 图片上传
      POST
    • 上传蒙版图片接口
      POST
    • 获取embeddings列表
      GET
    • 获取扩展节点文件列表
      GET
    • 图片预览
      GET
    • 获取服务器当前剩余任务列队的数量
      GET
    • 获取所有的队列信息
      GET
    • 清除队列
      POST
    • 删除指定任务队列
      POST
    • 取消当前任务
      POST

      获取历史任务数据

      开发中
      GET
      http://192.168.2.184: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.2.184:8188/history'

      返回响应

      🟢200成功
      application/json
      Body
      object {0}
      示例
      {
          "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
      上一页
      连接ComfyUI实时进度消息
      下一页
      根据id获取历史任务数据
      Built with