ComfyUI API - Run ComfyUI 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
Images Processed Monthly
Active Developers
Discord Community Members
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/v7/images/text-to-image",
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
Key advantages that set us apart
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 support@modelslab.com
Explore Our Other Solutions
Unlock your creative potential and scale your business with ModelsLab's comprehensive suite of AI-powered solutions.
AI Audio Generation
Text-to-speech, voice cloning, music generation, and audio processing APIs.
AI Video Generation & Tools
Create, edit, and enhance videos with AI-powered generation and transformation tools.
Engage Seamlessly with LLM
Access powerful language models for chatbots, content generation, and AI assistants.
Create Stunning 3D Models
Transform images and text into 3D models with advanced AI-powered generation.
Explore Plugins for Pro
Our plugins are designed to work with the most popular content creation software.
Build Apps with ModelsLabML API
Use our API to build apps, generate AI art, create videos, and produce audio with ease.