Discover and explore top open-source AI tools and projects—updated daily.
ComfyUI inference as a stateless API
Top 99.1% on SourcePulse
This project provides a stateless, horizontally scalable API server for ComfyUI, simplifying programmatic access to its powerful generative AI capabilities. It targets developers and power users needing to integrate ComfyUI workflows into applications, offering flexible output delivery via direct responses, webhooks, or S3 storage.
How It Works
This project wraps the ComfyUI /prompt
API, enabling stateless execution of any ComfyUI workflow. It handles input fetching (base64, URL, S3), server-side image processing (format conversion via sharp
), and output delivery. Users can receive results directly in the API response, have them sent to a webhook URL, or uploaded to an S3 bucket. The architecture supports dynamic API endpoints by loading custom workflow definitions from a /workflows
directory at runtime.
Quick Start & Requirements
ghcr.io/saladtechnologies/comfyui-api
) or integrate the comfyui-api
binary into an existing ComfyUI Dockerfile./docs
on the running server. Examples in the Salad Recipes repository.Highlighted Details
.js
/.ts
files in /workflows
directory, enabling runtime endpoint creation.Maintenance & Community
The README does not detail specific community channels (e.g., Discord, Slack), maintainer information, or active sponsorships. Contributions are encouraged via GitHub issues.
Licensing & Compatibility
Limitations & Caveats
The GPL-3.0 license of ComfyUI itself may restrict commercial integration. Long-running workflows may require webhook or queue-based handling to avoid platform timeouts (e.g., SaladCloud's 100s gateway timeout). Not all ComfyUI features or options are guaranteed to be supported, with contributions actively sought. Testing requires substantial hardware resources.
1 week ago
Inactive