https://github.com/realazthat/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.
https://github.com/realazthat/comfy-catapult-fastapi
Last synced: 3 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/realazthat/comfy-catapult-fastapi
- Owner: realazthat
- License: mit
- Created: 2024-02-16T21:36:32.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-02-23T18:22:19.000Z (over 1 year ago)
- Last Synced: 2025-01-17T21:08:15.518Z (5 months ago)
- Language: Shell
- Homepage:
- Size: 34.2 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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](https://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
```bash
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
```bash
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