ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

support flask api like webui ?

Open kelisiya opened this issue 2 years ago • 2 comments

kelisiya avatar Jun 26 '23 03:06 kelisiya

The api is meant to be both stateless and asynchronous because some workflows can take minutes to complete.

Here's an example how to use it: https://github.com/comfyanonymous/ComfyUI/blob/master/script_examples/websockets_api_example.py

comfyanonymous avatar Jun 26 '23 05:06 comfyanonymous

This is very good! by the way, Is there a synchronous example? just one request wait for one img response? @comfyanonymous

inspire-boy avatar Jul 10 '23 04:07 inspire-boy