Skip to main content
Self-hosting means running ComfyUI yourself and calling it as an API. You manage the hardware, the models, and the custom nodes, and in return you get full control: any GPU, any model, any node pack, and your data never leaves your infrastructure. ComfyUI runs as an HTTP server by default, so any working install is already an API endpoint. The options below differ only in where that install lives.

Your own hardware

The simplest deployment is the machine in front of you. Install ComfyUI and it serves http://127.0.0.1:8188 out of the box: To run it headless (no browser) or listen on a non-default address, see the server startup flags. For example:
The ComfyUI server has no authentication by default. Only bind to a non-loopback address on a network you trust, or put a reverse proxy with authentication in front of it.

GPU cloud providers

If you do not own a GPU, you can rent one and run ComfyUI on it. Providers commonly used by the community include:
  • Runpod: GPU pods with community ComfyUI templates that come pre-configured.
  • Vast.ai: a GPU marketplace; community ComfyUI templates are available here too.
On these providers you typically start from a community template or image, then add your models and custom nodes. The result is a normal self-hosted ComfyUI with a public URL or an SSH tunnel in front of it.
These templates are community-maintained, not published or supported by the ComfyUI team. Review what a template installs before putting credentials or private models on it.
If you want a managed version of this workflow, with builds, releases, and autoscaling handled for you, that is what the Serverless API provides.

Community Docker images

Docker: ComfyUI does not provide an official Docker image. If you want to run ComfyUI in a container, search Docker Hub for community-maintained images. Note that none of these are official ComfyUI images, and they are not supported by the ComfyUI team. Use them at your own risk.
A containerized ComfyUI behaves like any other self-hosted install: expose the server port and call it as usual.

Next step: run workflows against it

A self-hosted deployment can be called in two ways:

Comfy SDKs + API Proxy

Use the official SDKs against your instance. During the v2 beta this requires the API Proxy, a small service that runs alongside ComfyUI.

ComfyUI Server API

Call the raw REST and WebSocket API directly, with no extra service. Full local surface, but no compatibility guarantee across releases.