ComfyUI > Nodes > ComfyUI OpenRouter Node > OpenRouter LLM Node (Text/Multi-Image/PDF/Chat)

ComfyUI Node: OpenRouter LLM Node (Text/Multi-Image/PDF/Chat)

Class Name

OpenRouterNode

Category
LLM
Author
gabe-init (Account age: 322days)
Extension
ComfyUI OpenRouter Node
Latest Updated
2026-04-08
Github Stars
0.05K

How to Install ComfyUI OpenRouter Node

Install this extension via the ComfyUI Manager by searching for ComfyUI OpenRouter Node
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI OpenRouter Node in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

OpenRouter LLM Node (Text/Multi-Image/PDF/Chat) Description

Facilitates interaction with OpenRouter API for AI-driven text, image, and PDF processing.

OpenRouter LLM Node (Text/Multi-Image/PDF/Chat):

The OpenRouterNode is designed to facilitate seamless interaction with OpenRouter's chat and completion API, offering a versatile platform for handling text, images, and PDFs. This node is particularly beneficial for users looking to leverage the capabilities of large language models (LLMs) in generating text responses, managing multi-image inputs, and processing PDF documents. By integrating with OpenRouter, the node provides a robust solution for AI-driven content generation and interaction, making it an essential tool for AI artists and developers who require dynamic and responsive AI outputs. The node's primary function is to communicate with the OpenRouter API, process the input data, and return comprehensive outputs that include text responses, performance statistics, and account credit information, thereby enhancing the user's ability to manage and optimize their AI interactions effectively.

OpenRouter LLM Node (Text/Multi-Image/PDF/Chat) Input Parameters:

The context does not provide specific input parameters for the OpenRouterNode. Therefore, I am unable to enumerate or describe them. If you have access to the node's documentation or interface, you may find detailed information about the input parameters there.

OpenRouter LLM Node (Text/Multi-Image/PDF/Chat) Output Parameters:

Output

The "Output" parameter provides the text response generated by the large language model (LLM) based on the input data. This output is crucial for users who need AI-generated text for various applications, such as content creation, chatbots, or automated responses. The text is derived from the model's understanding and processing of the input, offering insights or solutions as required by the user.

image

The "image" parameter is intended to handle image outputs, although the context suggests it may serve as a placeholder. This parameter is significant for users who work with multi-image inputs or require visual content generation alongside text. The node processes image data and returns it in a format that can be further utilized or displayed as needed.

Stats

The "Stats" parameter provides a string detailing performance metrics such as tokens per second, input tokens, and output tokens. This information is valuable for users who need to monitor and optimize the efficiency of their AI interactions, allowing them to understand the computational resources used and the speed of processing, which can inform future adjustments or improvements.

Credits

The "Credits" parameter returns a string indicating the remaining balance in the user's OpenRouter account. This output is essential for managing usage and ensuring that the user stays within their allocated resources. By keeping track of credits, users can plan their interactions with the API more effectively and avoid unexpected interruptions due to depleted resources.

OpenRouter LLM Node (Text/Multi-Image/PDF/Chat) Usage Tips:

  • Ensure that your input data is well-structured and relevant to the task at hand to optimize the quality of the text responses generated by the node.
  • Regularly monitor the "Stats" output to understand the performance of your interactions and make necessary adjustments to improve efficiency and reduce token usage.
  • Keep an eye on the "Credits" output to manage your OpenRouter account balance effectively and avoid running out of credits during critical operations.

OpenRouter LLM Node (Text/Multi-Image/PDF/Chat) Common Errors and Solutions:

Invalid response format from API: 'choices' or 'message' missing.

  • Explanation: This error occurs when the API response does not contain the expected 'choices' or 'message' fields, which are necessary for generating the text output.
  • Solution: Verify that the input data is correctly formatted and that the API endpoint is functioning properly. If the issue persists, consider reaching out to OpenRouter support for assistance.

Error fetching models

  • Explanation: This error indicates a problem with retrieving the list of model IDs from the OpenRouter API, possibly due to network issues or API downtime.
  • Solution: Check your internet connection and ensure that the OpenRouter API is accessible. If the problem continues, try again later or contact OpenRouter support for further help.

OpenRouter LLM Node (Text/Multi-Image/PDF/Chat) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI OpenRouter Node
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.