go get
go get -u github.com/XdpCs/comfyUIclient
go mod
require github.com/XdpCs/comfyUIclient
- 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
目录中。
ComfyUIClient 遵循 MIT 许可。请参考 LICENSE 获取更多信息。