Categorygithub.com/XdpCs/comfyUIclient
modulepackage
0.0.0-20240410054338-4efa6f036b52
Repository: https://github.com/xdpcs/comfyuiclient.git
Documentation: pkg.go.dev

# README

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.

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
DataOutputFile export data address, name and type.
No description provided by the author
GPU contains gpu info.
NodeInfo contains the node info.
NodeObject is a part of workflow.
NodeObjectInput exposes the input information of a node.
PromptHistoryItem contains prompt id, WorkFlow, output info.
PromptHistoryMember is part of prompt history.
No description provided by the author
PromptNode is the data that inputs into ComfyUI.
QueueExecInfo contains queue remaining number.
QueueInfo exposes the queue info.
QueuePromptResp contains prompt id, number and node errors.
System contains system info.
SystemStats contains a system info and gpu infos.
UploadFile export data address, name and type.
No description provided by the author
No description provided by the author
No description provided by the author
WSMessageDataExecuting json {"type": "executing", "data": {"node": "12", "prompt_id": "ed986d60-2a27-4d28-8871-2fdb36582902"}}.
WSMessageDataExecutionCached json {"type": "execution_cached", "data": {"nodes": [], "prompt_id": "ed986d60-2a27-4d28-8871-2fdb36582902"}}.
WSMessageDataExecutionStart Json {"type": "execution_start", "data": {"prompt_id": "ed986d60-2a27-4d28-8871-2fdb36582902"}}.
WSMessageDataProgress { "type": "progress", "data": { "value": 18, "max": 20 } } */.
WSMessageDataStatus Json {"type": "status", "data": {"status": {"exec_info": {"queue_remaining": 1}}}}.
No description provided by the author
WSMessageExecutionInterrupted {"type": "execution_interrupted", "data": {"prompt_id": "dc7093d7-980a-4fe6-bf0c-f6fef932c74b", "node_id": "19", "node_type": "SaveImage", "executed": ["5", "17", "10", "11"]}} */.

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author