A custom node for ComfyUI, the ComfyUI OpenRouter Node enables seamless interaction with OpenRouter's API, granting users access to a variety of language models and multimodal capabilities. This tool is particularly valuable for users looking to integrate text, image, and PDF processing into their AI workflows.
- Supports multiple image inputs, allowing up to 10 images to be processed simultaneously.
- Features a Chat Mode that retains conversation context, enabling coherent interactions with language models across multiple messages.
- Offers dynamic visibility for image inputs and includes advanced routing options for cost-effective or rapid responses based on user needs.
Context
The ComfyUI OpenRouter Node is designed to enhance the functionality of ComfyUI by integrating with the OpenRouter API. Its primary purpose is to facilitate access to a diverse range of models, enabling users to perform tasks involving text generation, image analysis, and document processing within a unified interface.
Key Features & Benefits
This tool provides several practical functionalities, including:
- Access to all models available on OpenRouter, which allows users to select the most suitable model for their specific tasks.
- The ability to input multiple images for multimodal processing, which is crucial for applications that require simultaneous analysis of several visual inputs.
- A Chat Mode feature that maintains the context of conversations, making interactions with language models more natural and effective.
Advanced Functionalities
The OpenRouter Node includes specialized capabilities such as:
- Dynamic input management, where additional image fields appear as images are connected, streamlining the user experience.
- PDF support with various OCR engine options, enabling users to extract text and data from documents efficiently.
- Routing options that allow users to prioritize either cost or speed when querying models, enhancing workflow flexibility.
Practical Benefits
By integrating the ComfyUI OpenRouter Node into their workflows, users can significantly improve their control over AI interactions, leading to enhanced quality and efficiency in generating text, analyzing images, and processing documents. The ability to manage conversation history and context in Chat Mode further refines the user experience, making it easier to engage with language models in a coherent manner.
Credits/Acknowledgments
This project is developed by contributors to the ComfyUI community and relies on the OpenRouter API. The tool is licensed under the MIT License, allowing for free use and modification while ensuring proper attribution to the original authors.




