API Nodes - ComfyUI (original) (raw)

API Nodes are ComfyUI’s new way of calling closed-source models through API requests, providing ComfyUI users with access to external state-of-the-art AI models without complex API key setup.

What are API Nodes?

API Nodes are a set of special nodes that connect to external API services, allowing you to use closed-source or third-party hosted AI models directly in your ComfyUI workflows. These nodes are designed to seamlessly integrate the capabilities of external models while maintaining the open-source nature of ComfyUI’s core.

Currently supported models include:

Prerequisites for Using API Nodes

To use API Nodes, the following requirements must be met:

1. ComfyUI Version Requirements

Please update your ComfyUI to the latest version, as we may add more API support in the future, and corresponding nodes will be updated, so please keep your ComfyUI up to date.

2. Account and Credits Requirements

You need to be logged into your ComfyUI with a Comfy account and have a credit balance of credits greater than 0.

Log in via Settings -> User:

Go to Settings -> Credits to purchase credits

Please refer to the corresponding documentation for account and credits to ensure this requirement:

3. Network Environment Requirements

API access requires that your current requests are based on a secure network environment. The current requirements for API access are as follows:

4. Using the Corresponding Nodes

Add to Workflow: Add the API node to your workflow just like you would with other nodes.Run: Set the parameters and then run the workflow.

Log in with API Key on non-whitelisted websites

Currently, we have set up a whitelist to restrict the websites where you can log in to your ComfyUI account. If you need to log in to your ComfyUI account on some non-whitelisted websites, please refer to the account management section to learn how to log in using an API Key. In this case, the corresponding website does not need to be on our whitelist.

Account ManagementLearn how to log in with ComfyUI API Key

Use ComfyUI API Key Integration to call paid model API nodes

Currently, we support accessing our services through ComfyUI API Key Integration to call paid model API nodes. Please refer to the API Key Integration section to learn how to use API Key Integration to call paid model API nodes.

API Key IntegrationPlease refer to the API Key Integration section to learn how to use API Key Integration to call paid model API nodes

Advantages of API Nodes

API Nodes provide several important advantages for ComfyUI users:

Pricing

API Node PricingPlease refer to the pricing page for the corresponding API pricing

About Open Source and Opt-in

It’s important to note that API Nodes are completely optional. ComfyUI will always remain fully open-source and free for local users. API nodes are designed as an “opt-in” feature, providing convenience for those who want access to external SOTA (state-of-the-art) models.

Use Cases

A powerful application of API Nodes is combining the output of external models with local nodes. For example:

This flexibility makes ComfyUI a truly universal generative AI interface, integrating various AI capabilities into a unified workflow, opening up more possibilities

FAQs