The cost for each request has a static value of `1`. ComfyUI does not handle concurrent workloads and there is no current provision to load multiple instances of ComfyUI per worker node.
## Requirements
This worker requires both [ComfyUI](https://github.com/comfyanonymous/ComfyUI) and [ComfyUI API Wrapper](https://github.com/ai-dock/comfyui-api-wrapper).
A docker image is provided but you may use any if the above requirements are met.
## Benchmarking
A simple image generation benchmark is run when the worker is first loaded.
This benchmark uses SD v1.5 in the default text to image workflow provided by ComfyUI. The following variables can be used to alter the complexity and running time of the benchmark:
| Environment Variable | Default Value |
| -------------------- | ------------- |
| BENCHMARK_TEST_WIDTH | 512 |
| BENCHMARK_TEST_HEIGHT | 512 |
| BENCHMARK_TEST_STEPS | 20 |
The prompt will be randomly selected from the file in misc/test_prompts.txt and a random seed used for every run of the benchmark.
- **`input.s3`**: S3 configuration for file storage
- **`input.webhook`**: Webhook configuration for notifications
These configurations can be provided in the request JSON or via environment variables. Request-level configuration takes precedence over environment variables.