Skip to main content
ComfyUI offers several API options depending on where you want to run your workflows and how much infrastructure you want to manage. This page helps you choose the right approach.

Which API Should I Use?

Cloud APIComfyUI Server API
Where it runsComfy Cloud (managed GPUs)Your own machine
GPU managementHandled for youYou manage your own hardware
ModelsPre-installed and managed by ComfyYou download and manage locally
AuthenticationX-API-Key header (Comfy Cloud account)None (local) or API key for Partner Nodes
Base URLhttps://cloud.comfy.orgYour server URL (e.g. http://localhost:8188)
ProtocolREST + WebSocketREST + WebSocket
PricingSubscription-based (Creator/Pro tiers)Free (your own compute)
Best forQuick integration, no infrastructureFull control, custom hardware & models
Both APIs use the same workflow format (API format), so you can develop and test workflows locally and move them to the cloud without changes.

Getting Started

Cloud API

Run workflows on Comfy’s managed infrastructure. No GPU setup required.

ComfyUI Server API

Run ComfyUI as a server on your own machine and call it via API.

Partner Node API Integration

Use paid Partner Nodes in headless or API-driven workflows.

Prerequisites

Before using any API, you’ll need: