Skip to main content
This guide shows how to run the OpenRouter LLM workflow in ComfyUI. For what the node is and what it does best, see the OpenRouter LLM overview.
To use the Partner Nodes, you need to ensure that you are logged in properly and using a permitted network environment. Please refer to the Partner Nodes Overview section of the documentation to understand the specific requirements for using the Partner 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.If nodes are missing when loading a workflow, possible reasons:
  1. You are not using the latest ComfyUI version (Nightly version)
  2. Some nodes failed to import at startup

Model-specific inputs

The model dropdown is a dynamic combo. When you change the model, the node updates which inputs appear:
  • Image slots: shown only for vision-capable models; the number of slots matches the model limit
  • Video slots: shown only on Gemini 3.5 Flash and Qwen 3.6 Plus/Flash
  • Reasoning effort: shown on reasoning and frontier-reasoning models
  • Search context size: shown on Perplexity Sonar models
Text-only models hide image and video inputs.

OpenRouter LLM

Select a model from OpenRouter’s curated list (Claude, GPT, Gemini, etc.). Generate a text response with optional media uploads for vision-capable models. OpenRouter LLM workflow preview

Run on Comfy Cloud

Open in Comfy Cloud

Download Workflow

Download JSON or search “OpenRouter LLM” in Template Library
Input materials Upload this file to the matching LoadImage node:

contact_sheet_app_input_1.png

LoadImage node 2 · contact_sheet_app_input_1.png
contact_sheet_app_input_1.png
In this sample, the workflow analyzes a reference image and returns a text-to-image prompt for downstream image nodes. You can omit Load Image, change the prompts, or rebuild the graph entirely for your own use case.
If you use the template as a reference, a typical run looks like this:
  1. In Load Image, load the reference image (skip for text-only chat)
  2. In OpenRouter LLM, connect the image to image_1 (more slots appear when the model supports them)
  3. Set prompt, e.g. ask the model to analyze the image and output a generation prompt
  4. (Optional) Set system_prompt in advanced options for tone, format, or constraints
  5. Pick a model; adjust reasoning_effort or search_context_size when shown
  6. Click Run or press Ctrl(cmd) + Enter
  7. View the reply in Preview Any

Additional notes

  • seed: set to 0 to omit; most models treat it as a hint only
  • Reference images and videos are uploaded automatically when the workflow runs; you only wire ComfyUI image/video outputs into the node
  • For pricing per model, see OpenRouter on the pricing page