Skip to content
Discussion options

You must be logged in to vote

ComfyUI has a full HTTP + WebSocket API; it just is not in the README. Everything is registered in server.py on PromptServer, so you can read the exact routes out of the source.

The endpoints that matter for an agent

Method Path Purpose
POST /prompt Queue a workflow, returns prompt_id
GET /history/{prompt_id} Finished output for that prompt
GET /api/jobs/{job_id} Job status (/api/jobs lists them)
GET /view?filename=...&subfolder=...&type=output Download a produced file
POST /upload/image Upload an input image
GET /object_info Node definitions + input schemas
WS /ws?clientId=<id> Live execution events

/object_info is the one that makes an agent usable against a workfl…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by BlackFIlms
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants