What you’ll need
- A
workflow_api.jsonexported from ComfyUI (Workflow → Export (API)) - A deployed endpoint (
deployment_id) - An API token (Bearer token auth)
Step 1: Prepare the workflow API file and overrides
- Visit the RunComfy/FLUX workflow page and click Run Workflow to launch a ComfyUI session (initial startup may take a few minutes).
- Once the UI loads, run the workflow once to confirm it works.
-
From the Workflow menu in the top-left, select Export (API) to download
workflow_api.json.
Learn more: Workflow Files

Identify which inputs you want to override
workflow_api.json uses Node IDs as keys. To make it easier to map node IDs → nodes in the UI:
- Open Settings (bottom-left)
- Go to Lite Graph
- Set Node ID Badge Mode to Show All


Build an overrides object
For inference requests, RunComfy uses the deployment’s savedworkflow_api.json as the base. You usually send only an overrides object to customize specific inputs (prompt, seed, media URLs, etc.).
Here’s an example override payload for this workflow:

Step 2: Deploy the workflow as an API
Go to the Deployments page and select Deploy workflow as API. Search for the workflow by its name (RunComfy/FLUX) or ID (00000000-0000-0000-0000-000000001111).
For a quick setup, choose Instant Deploy, which uses default settings like 48GB hardware (A6000) and autoscaling. These settings can be adjusted later.
After the deployment is complete, copy the deployment_id — you’ll need it for API calls.
Step 3: Authenticate
All API calls require a Bearer token. Add this header to every request (replace<token> with your API key):
Authorization: Bearer <token>
Get your API token from the Profile page (click your avatar in the upper-right).
Step 4: Submit a request
Send a POST request to the inference endpoint, replacing{deployment_id} with your actual deployment ID.
In the request body, include the overrides you prepared in Step 1 under the overrides field.
Image/video inputs
If your workflow needs an image or video input, you can pass media inoverrides using either:
- a public HTTPS URL, or
- a Base64 data URI
Using a public URL
Using a Base64 data URI
Core API nodes
If your workflow uses ComfyUI Core API nodes that require an API key, send the Comfy Org API Key in the request body as shown here: Async Queue Endpoints – Request Example (API Nodes).Step 5: Monitor and retrieve results
After submitting a request, you can track its progress and fetch outputs once it’s ready.Check request status
Pollstatus_url until the status becomes "completed":
