comfyui_extra_api

comfyui_extra_api
★ 14

扩展APIComfyUI自定义节点易用集成
提供一组额外的ComfyUI API端点,扩展默认接口,便于在项目中快速集成、自动化与自定义调用。
💡 为ComfyUI项目快速添加额外API端点,便于集成与自动化。
🍴 8 Forks💻 Python🔄 2025-06-06
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/f414772aa5c3
📦 requirements.txt
diskcache
tqdm
📄 README

ComfyUI Extra API

This is a collection of extra API functions that are not included in the default ComfyUI API.

Get started

  • go to custom_nodes
  • “`bash

    cd custom_nodes

    “`

  • clone the repository
  • “`bash

    git clone https://github.com/injet-zhou/comfyui_extra_api.git

    cd comfyui_extra_api

    “`

  • install the dependencies
  • use poetry(Recommended)

    “`bash

    poetry install

    “`

    or use pip

    “`bash

    pip install -r requirements.txt

    “`

    start using the extra API functions in your ComfyUI project.

    Endpoints

  • /comfyapi/v1/checkpoints
  • Method: Get

    Description: Get all the checkpoints.

  • /comfyapi/v1/refresh-checkpoints
  • Method: Post

    Description: Refresh the list of checkpoints and return the updated list.

  • /comfyapi/v1/loras
  • Method: Get

    Description: Get all the LoRa.

  • /comfyapi/v1/refresh-loras
  • Method: Post

    Description: Refresh the list of LoRa and return the updated list.

  • /comfyapi/v1/output-images
  • Method: Get

    Query: temp true or false

    Description: List all the output images, if temp is true, only list the temporary output images which are generated in PreviewImage node.

  • comfyapi/v1/output-images/{filename}
  • Method: Delete

    Query: temp true or false

    Description: Delete the output image with the given filename, if temp is true, only delete the temporary output image which is generated in PreviewImage node.

  • /comfyapi/v1/pnginfo
  • Method: Post

    Body: {"img_base64": "base64 string of the image"}

    Description: Get the metadata of the PNG image. If the image is generated by ComfyUI, it’s a workflow json.

  • /comfyapi/v1/input-images/{filename}
  • Method: Delete

    Description: Delete the input image with the given filename.