An open API service indexing awesome lists of open source software.

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.

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