Giter VIP home page Giter VIP logo

comfyuiclient's Introduction

ComfyUIClient

GitHub watchers GitHub stars GitHub forks GitHub last commit GitHub repo size GitHub license

English | 中文

Install

go get

go get -u github.com/XdpCs/comfyUIclient

go mod

require github.com/XdpCs/comfyUIclient

Support the ComfyUI API

  • POST /prompt => func QueuePromptByString, QueuePromptByNodes
  • POST /queue => func DeleteAllQueues, DeleteQueueByPromptID
  • POST /history => func DeleteAllHistories, DeleteHistoryByPromptID
  • POST /interrupt => func InterruptExecution
  • POST /upload/image => func UploadImage
  • POST /upload/mask => func UploadMask
  • GET /embeddings => func GetEmbeddings
  • GET /extensions => func GetExtensions
  • GET /view => func GetFile
  • GET /view_metadata/{folder_name} => func GetViewMetadata
  • GET /system_stats => func GetSystemStats
  • GET /prompt => func GetQueueRemaining
  • GET /history => func GetAllHistories
  • GET /history/{prompt_id} => func GetHistoryByPromptID
  • GET /queue => func GetQueueInfo
  • GET /object_info => func GetObjectInfos
  • GET /object_info/{node_class} => func GetObjectInfoByNodeName

Examples

All examples are in the examples directory.

License

ComfyUIClient is under the MIT. Please refer to LICENSE for more information.

comfyuiclient's People

Contributors

wwek avatar xdpcs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

wwek hzq0596

comfyuiclient's Issues

协议被硬编码以及端口号问题

问题1:
rt
httpURL: "https://" + serverAddress + ":" + port,

通常情况 ComfyUI 是 http协议,这里不能写死协议

问题2:
端口号是否需要单独分离为一个参数, 有我不知道的使用场景么

建议:
直接采用endpoint / baseurl这种概念。 直接一个参数即可
ps: ws的问题,直接抽取 endpoint的host即可

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.