Skip to main content
Experimental API: This API is experimental and subject to change. Endpoints, request/response formats, and behavior may be modified without notice.

Comfy Cloud API Specification

This page provides the complete OpenAPI 3.0 specification for the Comfy Cloud API.
Subscription Required: Running workflows via the API requires an active Comfy Cloud subscription. See pricing plans for details.

Interactive API Reference

Explore the full API with interactive documentation:

Cloud API Reference

Browse endpoints, view schemas, and try requests

Using the Specification

The OpenAPI spec can be used to:
  • Generate client libraries in any language using tools like OpenAPI Generator
  • Import into API tools like Postman, Insomnia, or Paw
  • Generate documentation using tools like Redoc or Swagger UI
  • Validate requests in your application

Download

You can download the raw OpenAPI specification file:

openapi-cloud.yaml

Download the OpenAPI 3.0 specification

Authentication

All API requests require an API key passed in the X-API-Key header.

Getting an API Key

See the Cloud API Overview for step-by-step instructions with screenshots.

Using the API Key

X-API-Key: your-api-key

Base URL

EnvironmentURL
Productionhttps://cloud.comfy.org

WebSocket Connection

For real-time updates, connect to the WebSocket endpoint:
wss://cloud.comfy.org/ws?clientId={uuid}&token={api_key}
See the API Reference for message types and handling.