Skip to content

comfy-deploy/comfyui-api-comfydeploy

Repository files navigation

ComfyUI API with ComfyDeploy

Google Chrome 2025-08-29 12 51 28

Works full locally

CleanShot 2025-08-29 at 12 39 00@2x

To install dependencies:

bun install

Local:

Start up ComfyUI locally.

Make sure you have ComfyDeploy custom node installed.

What the scripts does:

1. Locate ComfyUI local instance
2. Queue the run with External Inputs
3. Return the output and save it to the output folder

Cloud:

This works with ComfyDeploy cloud.

What the scripts does:

1. Retrive the˝ wrokflow from deployment
2. Create a new cloud ComfyUI session with any GPU (CPU, A10G, H100, B200, etc)
3. Queue the run with External Inputs
4. Return the output and save it to the output folder
5. Delete the cloud ComfyUI session

To set up environment variables:

cp .env.example .env
COMFYDEPLOY_API_KEY="" // Get this from ComfyDeploy
DEPLOYMENT_ID="" // Your target deployment ID

To run:

bun run index.ts

This project was created using bun init in bun v1.2.10. Bun is a fast all-in-one JavaScript runtime.

About

Demo showing you calling ComfyUI API with ComfyDeploy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published