ComfyUI/comfy_api_nodes
2025-10-06 16:26:52 -07:00
..
apis feat(api-nodes): add kling-2-5-turbo to txt2video and img2video nodes (#10155) 2025-10-03 11:26:34 -07:00
util add StabilityAudio API nodes (#9749) 2025-09-10 05:06:47 -04:00
__init__.py [API nodes] Add backbone for supporting api nodes in ComfyUI (#7745) 2025-04-23 02:18:08 -04:00
apinode_utils.py fix(api-nodes): enable more pylint rules (#10213) 2025-10-06 16:05:57 -07:00
canary.py Refuse to load api nodes on old pyav version. (#7981) 2025-05-07 17:27:16 -04:00
mapper_utils.py More API Nodes (#7956) 2025-05-06 04:23:00 -04:00
nodes_bfl.py convert nodes_bfl.py to V3 schema (#10033) 2025-09-27 02:27:01 -07:00
nodes_bytedance.py enable Seedance Pro model in the FirstLastFrame node (#10120) 2025-09-30 10:43:41 -07:00
nodes_gemini.py fix(api-nodes): enable 2 more pylint rules, removed non needed code (#10192) 2025-10-04 12:22:57 -07:00
nodes_ideogram.py api nodes(Ideogram): add Ideogram Character (#9616) 2025-09-03 16:17:37 -04:00
nodes_kling.py convert nodes_kling.py to V3 schema (#10236) 2025-10-06 16:26:52 -07:00
nodes_luma.py convert nodes_luma.py to V3 schema (#10030) 2025-09-27 02:28:11 -07:00
nodes_minimax.py convert Minimax API nodes to the V3 schema (#9693) 2025-09-12 17:37:31 -04:00
nodes_moonvalley.py fix(api-nodes): enable more pylint rules (#10213) 2025-10-06 16:05:57 -07:00
nodes_openai.py feat(api-nodes): change "OpenAI Chat" display name to "OpenAI ChatGPT" (#9443) 2025-08-22 10:50:35 -07:00
nodes_pika.py convert nodes_pika.py to V3 schema (#10216) 2025-10-06 16:20:26 -07:00
nodes_pixverse.py fix(api-nodes): allow negative_prompt PixVerse to be multiline (#10196) 2025-10-06 16:13:43 -07:00
nodes_recraft.py fix(api-nodes): enable more pylint rules (#10213) 2025-10-06 16:05:57 -07:00
nodes_rodin.py convert nodes_rodin.py to V3 schema (#10195) 2025-10-04 12:29:09 -07:00
nodes_runway.py [V3] convert Runway API nodes to the V3 schema (#9487) 2025-09-03 16:18:27 -04:00
nodes_stability.py add StabilityAudio API nodes (#9749) 2025-09-10 05:06:47 -04:00
nodes_tripo.py async API nodes (#9129) 2025-08-07 23:37:50 -04:00
nodes_veo2.py [V3] convert Google Veo API node to the V3 schema (#9272) 2025-08-21 22:06:13 -04:00
nodes_vidu.py feat(api-nodes): add Vidu Video nodes (#9368) 2025-08-19 16:30:06 -04:00
nodes_wan.py add WanImageToImageApi node (#10094) 2025-09-29 12:01:04 -07:00
README.md Fix the broken link (#9060) 2025-07-26 17:25:33 -04:00
redocly-dev.yaml More API Nodes (#7956) 2025-05-06 04:23:00 -04:00
redocly.yaml More API Nodes (#7956) 2025-05-06 04:23:00 -04:00

ComfyUI API Nodes

Introduction

Below are a collection of nodes that work by calling external APIs. More information available in our docs.

Development

While developing, you should be testing against the Staging environment. To test against staging:

Install ComfyUI_frontend

Follow the instructions here to start the frontend server. By default, it will connect to Staging authentication.

Hint: If you use --front-end-version argument for ComfyUI, it will use production authentication.

python run main.py --comfy-api-base https://stagingapi.comfy.org

To authenticate to staging, please login and then ask one of Comfy Org team to whitelist you for access to staging.

API stubs are generated through automatic codegen tools from OpenAPI definitions. Since the Comfy Org OpenAPI definition contains many things from the Comfy Registry as well, we use redocly/cli to filter out only the paths relevant for API nodes.

Redocly Instructions

Tip When developing locally, use the redocly-dev.yaml file to generate pydantic models. This lets you use stubs for APIs that are not marked Released yet.

Before your API node PR merges, make sure to add the Released tag to the openapi.yaml file and test in staging.

# Download the OpenAPI file from staging server.
curl -o openapi.yaml https://stagingapi.comfy.org/openapi

# Filter out unneeded API definitions.
npm install -g @redocly/cli
redocly bundle openapi.yaml --output filtered-openapi.yaml --config comfy_api_nodes/redocly-dev.yaml --remove-unused-components

# Generate the pydantic datamodels for validation.
datamodel-codegen --use-subclass-enum --field-constraints --strict-types bytes --input filtered-openapi.yaml --output comfy_api_nodes/apis/__init__.py --output-model-type pydantic_v2.BaseModel

Merging to Master

Before merging to comfyanonymous/ComfyUI master, follow these steps:

  1. Add the "Released" tag to the ComfyUI OpenAPI yaml file for each endpoint you are using in the nodes.
  2. Make sure the ComfyUI API is deployed to prod with your changes.
  3. Run the code generation again with redocly.yaml and the production OpenAPI yaml file.
# Download the OpenAPI file from prod server.
curl -o openapi.yaml https://api.comfy.org/openapi

# Filter out unneeded API definitions.
npm install -g @redocly/cli
redocly bundle openapi.yaml --output filtered-openapi.yaml --config comfy_api_nodes/redocly.yaml --remove-unused-components

# Generate the pydantic datamodels for validation.
datamodel-codegen --use-subclass-enum --field-constraints --strict-types bytes --input filtered-openapi.yaml --output comfy_api_nodes/apis/__init__.py --output-model-type pydantic_v2.BaseModel