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 <|
<| <|
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.
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.