You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* prove it works with multiple output nodes
* prove it works for parallel workflows
* test cases for parallel workflows
* update contributions guide
* architecture diagram
* more resilient output checking
* comments
* log fixes
* link to comfy
* retry webhooks when they fail
* finish comment
Copy file name to clipboardExpand all lines: README.md
+18-5Lines changed: 18 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# ComfyUI API - A Stateless and Extendable API for ComfyUI
2
2
3
-
A simple wrapper that facilitates using ComfyUI as a stateless API, either by receiving images in the response, or by sending completed images to a webhook
3
+
A simple wrapper that facilitates using [ComfyUI](https://github.com/comfyanonymous/ComfyUI/) as a stateless API, either by receiving images in the response, or by sending completed images to a webhook
4
4
5
5
-[ComfyUI API - A Stateless and Extendable API for ComfyUI](#comfyui-api---a-stateless-and-extendable-api-for-comfyui)
6
6
-[Download and Usage](#download-and-usage)
@@ -31,6 +31,7 @@ A simple wrapper that facilitates using ComfyUI as a stateless API, either by re
31
31
-[Testing](#testing)
32
32
-[Required Models](#required-models)
33
33
-[Running Tests](#running-tests)
34
+
-[Architecture](#architecture)
34
35
35
36
## Download and Usage
36
37
@@ -44,7 +45,7 @@ If you have your own ComfyUI dockerfile, you can add the comfyui-api server to i
44
45
45
46
```dockerfile
46
47
# Change this to the version you want to use
47
-
ARG api_version=1.8.0
48
+
ARG api_version=1.8.2
48
49
49
50
50
51
# Download the comfyui-api binary, and make it executable
@@ -94,7 +95,7 @@ This guide provides an overview of how to configure the application using enviro
94
95
### Environment Variables
95
96
96
97
The following table lists the available environment variables and their default values.
97
-
The default values mostly assume this will run on top of an [ai-dock](https://github.com/ai-dock/comfyui) image, but can be customized as needed.
98
+
For historical reasons, the default values mostly assume this will run on top of an [ai-dock](https://github.com/ai-dock/comfyui) image, but we currently provide [our own more minimal image](#prebuilt-docker-images) here in this repo.
@@ -114,6 +115,7 @@ The default values mostly assume this will run on top of an [ai-dock](https://gi
114
115
| MODEL_DIR | "/opt/ComfyUI/models" | Directory for model files |
115
116
| OUTPUT_DIR | "/opt/ComfyUI/output" | Directory for output files |
116
117
| PORT | "3000" | Wrapper port number |
118
+
| PROMPT_WEBHOOK_RETRIES | "3" | Number of times to retry sending a webhook for a prompt |
117
119
| STARTUP_CHECK_INTERVAL_S | "1" | Interval in seconds between startup checks |
118
120
| STARTUP_CHECK_MAX_TRIES | "10" | Maximum number of startup check attempts |
119
121
| SYSTEM_META_*| (not set) | Any environment variable starting with SYSTEM_META_ will be sent to the system webhook as metadata. i.e. `SYSTEM_META_batch=abc` will add `{"batch": "abc"}` to the `.metadata` field on system webhooks. |
@@ -656,8 +658,12 @@ All of SaladCloud's image and video generation [recipes](https://docs.salad.com/
656
658
657
659
## Contributing
658
660
659
-
Contributions are welcome! Please open an issue or a pull request if you have any suggestions or improvements.
660
-
ComfyUI is a powerful tool with MANY options, and it's likely that not all of them are currently supported by the comfyui-api server. If you find a feature that is missing, please open an issue or a pull request to add it. Let's make productionizing ComfyUI as easy as possible!
661
+
Contributions are welcome!
662
+
ComfyUI is a powerful tool with MANY options, and it's likely that not all of them are currently supported by the `comfyui-api` server.
663
+
Please open an issue with as much information as possible about the problem you're facing or the feature you need.
664
+
If you have encountered a bug, please include the steps to reproduce it, and any relevant logs or error messages.
665
+
If you are able, adding a failing test is the best way to ensure your issue is resolved quickly.
666
+
Let's make productionizing ComfyUI as easy as possible!
661
667
662
668
## Testing
663
669
@@ -746,3 +752,10 @@ npm test
746
752
This will take quite a long time, and requires a minimum of 24gb of RAM.
747
753
I did these tests on my RTX 3080ti Laptop Edition w/ 16gb VRAM, and 24gb WSL RAM.
748
754
It takes about 30 minutes to run all the tests.
755
+
756
+
## Architecture
757
+
758
+
The server is built with [Fastify](https://www.fastify.io/), a fast and low overhead web framework for Node.js.
759
+
It sits in front of ComfyUI, and provides a RESTful API for interacting with ComfyUI.
0 commit comments