You bring
A ComfyUI endpoint and a documented request file.
You make
Finished images and their generation metadata in your output folder, from a job you can track and resume.
You check
Start with inspection, then verify a real job and saved outputs on your configured service.
About
Calling ComfyUI from your own code means handling queued jobs, timeouts and finding the output files afterwards. This job client inspects your workflows, runs them on your own ComfyUI machines, and collects the images with their generation metadata.
You start by describing a workflow to see what it takes. To run it, you give a known workflow, the overrides you allow, an output folder and a bounded wait. If the job is still running when the wait ends, you get its prompt id back and collect the same job later with it, instead of submitting again.
It runs from the command line or as a module in your app's server code and needs Node 20 or later. It pairs with the Give your app an image workflow guide, which shows how to keep the graph, model and output folder on the server.