ComfyUI API Run Workflows via REST API
Run ComfyUI workflows via REST API without local GPU setup. Cloud-hosted ComfyUI nodes, custom workflows, and scalable inference on ModelsLab.

Trusted by
1B+
Images Processed Monthly
500K+
Active Developers
5K+
Discord Community Members
300+
Available AI APIs
ComfyUI Workflows in the Cloud
Execute ComfyUI node-based workflows via a simple REST API — no local installation or GPU hardware needed.
Cloud-Hosted ComfyUI Nodes
Run ComfyUI workflows on cloud GPUs without installing ComfyUI locally. ModelsLab hosts the infrastructure so you can focus on building your workflows and applications.
REST API Interface
Access ComfyUI capabilities through a clean REST API. No WebSocket connections or custom protocols needed — standard HTTP requests with JSON payloads.
All Popular Models Supported
Use Stable Diffusion, SDXL, Flux, ControlNet, LoRA adapters, and more — all the models you use in ComfyUI are available through the API with no configuration.
Scalable Inference
Scale from single requests to thousands of concurrent generations. Cloud infrastructure handles auto-scaling, GPU management, and load balancing automatically.
























































































































































Run complex ComfyUI workflows programmatically through ModelsLab's cloud-hosted API infrastructure.
How the ComfyUI API Works
Run ComfyUI workflows in the cloud in three simple steps.
Step 1: Get Your API Key
Sign up for a free ModelsLab account and get your API key. Access all image generation endpoints including ComfyUI-compatible workflows immediately.
Step 2: Define Your Workflow
Specify your generation parameters — model, prompt, dimensions, LoRA adapters, ControlNet, and more — as JSON in your API request.
Step 3: Generate and Retrieve
Submit your request and receive generated images via the API response. Results include direct download URLs for immediate use in your application.
ComfyUI API Code Example
Run ComfyUI workflows with a simple API call
Python — Run ComfyUI Workflow
import requests
response = requests.post(
"https://modelslab.com/api/v6/images/text2img",
json={
"prompt": "masterpiece, best quality, 1girl",
"negative_prompt": "bad quality",
"model_id": "flux",
"width": 1024, "height": 1024,
"samples": 1
},
headers={"Authorization": "Bearer YOUR_KEY"}
)
print(response.json()["output"][0])Why Use ModelsLab for ComfyUI Workflows
- Run ComfyUI workflows via REST API
- No local GPU or ComfyUI installation needed
- All popular SD, SDXL, and Flux models
- ControlNet and LoRA adapter support
- Inpainting and outpainting capabilities
- Batch and parallel generation
- Pay-per-use pricing
- Python and JavaScript SDKs
- Enterprise-grade GPU infrastructure
- Sub-second cold start times
- Automatic model loading and caching
- Full API documentation with examples
Our Popular Use Cases
Developers use the ComfyUI API for:
Replace local ComfyUI setups with cloud API calls for production image generation. Scale without managing GPU servers.
Related AI APIs
Your Data is Secure: GDPR Compliant AI Services
GDPR Compliant
Flexible Pricing for Your AI Design & Visualization Needs
Choose the plan that fits your creative or development workflow. Cancel anytime.
Coming Soon
We are making some changes to our pricing, please check back later.
Get Expert Support in Seconds - We're Here to Help
Want to know more? You can email us anytime at [email protected]
Explore Our Other Solutions
Unlock your creative potential and scale your business with ModelsLab's comprehensive suite of AI-powered solutions. Discover tools designed for innovation and growth.
Explore Plugins for Pro
Our plugins are designed to work with the most popular content creation software:
Make Your Own Apps usingModelsLab API
Use Our API to Build apps, Make Great AI Art, Create Awesome Videos and generate sound with ease!