Use OpenRouter LLMs in n8n <1.78 via OpenAI Node

Workaround to access OpenRouter's diverse LLM models in n8n versions before 1.78 using the OpenAI node with a custom base URL.

This workflow provides a simple yet effective workaround for n8n users on versions prior to 1.78 to integrate OpenRouter, a service offering access to numerous LLM models from various providers. By configuring the OpenAI node with OpenRouter's specific base URL (https://openrouter.ai/api/v1), you can dynamically use any model from OpenRouter's extensive list without needing the native OpenRouter node introduced later. Key benefits include flexibility in model selection—change models on the fly
Platform
n8n
Category
HR & Operations
Price
$4.99
Creator
Leandro Rossi

How to import this workflow into n8n

  1. 1Purchase or download the workflow to get the n8n workflow JSON file.
  2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
  3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
  4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

Related HR & Operations workflows

More from Leandro Rossi

Need this deployed? We'll set it up for you.

Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.