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/queue
      获取详细任务队列信息,正在运行的以及挂起的

      请求参数

      无

      示例代码

      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/queue'

      返回响应

      🟢200成功
      application/json
      Body
      object {0}
      示例
      {
          "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"
                  ]
              ]
          ]
      }
      上一页
      获取服务器当前剩余任务列队的数量
      下一页
      清除队列
      Built with