/comfy-catapult-fastapi

This is a demo of how to use the ComfyUI to serve workflows to public facing users using the ComfyUI API, Comfy Catapult, your workflows, and FastAPI.

Primary LanguageShellMIT LicenseMIT

Comfy Catapult FastAPI Demo

This is a demo of how to use the ComfyUI to serve workflows to public facing users using the ComfyUI API, Comfy Catapult, your workflows, and FastAPI.

See: github.com/realazthat/comfy-catapult.

ComfyUI API Endpoint <|   <=  Comfy Catapult <=>  FastAPI server <| <=      Public users
                     <|                                          <|
                     <|          Your python program             <|      Your Webui/JS frontend
                     <|                                          <|
                     <|            Your workflows                <|
                     <|                                          <|

Running the server with docker

docker run --rm -it -p 59090:80 -e COMFY_API_URL=$COMFY_API_URL realazthat/comfy-catapult-fastapi-demo:latest

# Now navigate to http://localhost:59090/docs, and you should see the FastAPI
# documentation for the exposed workflow.

# Navigate to http://localhost:59090/static/demo.html an example website that might
# use this API.

Running the server directly

HOSTNAME="0.0.0.0"
PORT=59091
python -m src.main

# Navigate to http://localhost:59091/docs, and you should see the FastAPI
# documentation for the exposed workflow.

# Navigate to http://localhost:59091/static/demo.html an example website that might
# use this API.

To add workflows

For contributors

Building docker image

Release instructions