comfyanonymous / ComfyUI

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
55.6k stars 5.87k forks source link

Pipeline for setting up final output as a REST API endpoint #691

Open yosun opened 1 year ago

yosun commented 1 year ago

?

dcsan commented 1 year ago

the server already exposes an endpoint https://github.com/comfyanonymous/ComfyUI/blob/master/script_examples/basic_api_example.py

once the server is running it exposes an endpoint on $PORT which you can post a JSON file to with your workflow, models etc.

if you stand up on runpod the default template is on 3000, so modify the script here.

is that what you're looking for?

I'm also trying to get this working with LoRAs etc, let me know how it goes!

ardha27 commented 11 months ago

the server already exposes an endpoint https://github.com/comfyanonymous/ComfyUI/blob/master/script_examples/basic_api_example.py

once the server is running it exposes an endpoint on $PORT which you can post a JSON file to with your workflow, models etc.

if you stand up on runpod the default template is on 3000, so modify the script here.

is that what you're looking for?

I'm also trying to get this working with LoRAs etc, let me know how it goes!

what i need to change when i run it on runpod?