RESTful API

ComfyUI Cloud API

Integrate powerful AI image generation into your applications with our simple, scalable API. Built for developers, designed for production.

Why Choose Our API?

High Performance
Optimized for speed with GPU acceleration and efficient processing
Secure & Reliable
Enterprise-grade security with 99.9% uptime guarantee
Global CDN
Worldwide distribution for fast response times anywhere
Real-time Updates
WebSocket support for real-time job status updates

Quick Start

JavaScript Example
// Initialize the ComfyUI Cloud API client
import { ComfyUICloud } from '@comfyui/cloud-sdk';

const client = new ComfyUICloud({
  apiKey: 'your-api-key-here',
  baseURL: 'https://api.comfyui.cloud'
});

// Generate an image
const result = await client.generate({
  workflow: 'text-to-image',
  inputs: {
    prompt: 'A beautiful sunset over mountains',
    width: 1024,
    height: 1024,
    steps: 20
  }
});

console.log('Job ID:', result.jobId);

// Check status
const status = await client.getStatus(result.jobId);
console.log('Status:', status.state);

// Get result when complete
if (status.state === 'completed') {
  const output = await client.getResult(result.jobId);
  console.log('Image URL:', output.images[0].url);
}

API Endpoints

POST
/api/v1/generate

Generate images using ComfyUI workflows

GET
/api/v1/status/{job_id}

Check the status of a generation job

GET
/api/v1/result/{job_id}

Retrieve the result of a completed job

POST
/api/v1/workflows

Upload and manage custom workflows

API Pricing

Free Tier
$0
Perfect for testing and small projects
  • 100 API calls/month
  • Basic support
  • Standard models
  • Community access
Most Popular
Pro
$29
For growing applications
  • 10,000 API calls/month
  • Priority support
  • All models included
  • Advanced features
Enterprise
Custom
For large-scale applications
  • Unlimited API calls
  • Dedicated support
  • Custom models
  • SLA guarantee