Create & Edit Images Instantly with Grok Imagine

Try Grok Imagine
Skip to main content
Imagen

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

Google logo
Salesforce logo
Amazon logo
IBM logo
Adobe logo
Sony logo
Google logo
Salesforce logo
Amazon logo
IBM logo
Adobe logo
Sony logo
Google logo
Salesforce logo
Amazon logo
IBM logo
Adobe logo
Sony logo
Google logo
Salesforce logo
Amazon logo
IBM logo
Adobe logo
Sony logo
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.

Cloud-Hosted ComfyUI Nodes
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result
Example of AI outpainting result

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 01
STEP 01

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 02
STEP 02

Step 2: Define Your Workflow

Specify your generation parameters — model, prompt, dimensions, LoRA adapters, ControlNet, and more — as JSON in your API request.

STEP 03
STEP 03

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

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.

Production Image Pipelines

Related AI APIs

Your Data is Secure: GDPR Compliant AI Services

ModelsLab GDPR Compliance Certification Badge

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

View Docs
Plugins

Explore Plugins for Pro

Our plugins are designed to work with the most popular content creation software.

API

Build Apps with
ML
API

Use our API to build apps, generate AI art, create videos, and produce audio with ease.