To use the API nodes, you need to ensure that you are logged in properly and using a permitted network environment. Please refer to the API Nodes Overview section of the documentation to understand the specific requirements for using the API nodes.
Make sure your ComfyUI is updated.Workflows in this guide can be found in the Workflow Templates.
If you can’t find them in the template, your ComfyUI may be outdated.(Desktop version’s update will delay sometime)If nodes are missing when loading a workflow, possible reasons:
- You are not using the latest ComfyUI version(Nightly version)
- You are using Stable or Desktop version (Latest changes may not be included)
- Some nodes failed to import at startup
OpenAI Chat Workflow
1. Workflow File Download
Please download the Json file below and drag it into ComfyUI to load the corresponding workflow.Download Json Format Workflow File
2. Complete the Workflow Execution Step by Step

In the corresponding template, we have built a role setting for analyzing prompt generation.
- In the
Load Imagenode, load the image you need AI to interpret - (Optional) If needed, you can modify the settings in
OpenAI Chat Advanced Optionsto have AI execute specific tasks - In the
OpenAI Chatnode, you can modifyPromptto set the conversation prompt, or modifymodelto select different models - Click the
Runbutton, or use the shortcutCtrl(cmd) + Enterto execute the conversation. - After waiting for the API to return results, you can view the corresponding AI returned content in the
Preview Anynode.
3. Additional Notes
- Currently, the file input node
OpenAI Chat Input Filesrequires files to be uploaded to theComfyUI/input/directory first. This node is being improved, and we will modify the template after updates - The workflow provides an example using
Batch Imagesfor input. If you have multiple images that need AI interpretation, you can refer to the step diagram and use right-click to set the corresponding node mode toAlwaysto enable it