npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-openrouter-complete

v1.0.6

Published

n8n community node for OpenRouter — send prompts to 200+ AI models including GPT-4o, Claude, Gemini, and Llama.

Downloads

53

Readme

n8n-nodes-openrouter-complete

An n8n community node that lets you send prompts to 200+ AI models via the OpenRouter API — including GPT-4o, Claude, Gemini, Llama, and more.


Installation

In your n8n instance, go to Settings → Community Nodes and install:

n8n-nodes-openrouter-complete

Or manually via npm (self-hosted only):

npm install n8n-nodes-openrouter-complete

Requires n8n v1.0.0 or later.


Credentials

  1. Sign up at openrouter.ai
  2. Go to Keys and create an API key
  3. In n8n, add a new OpenRouter API credential and paste the key

Node: OpenRouter

Sends a prompt to any model available on OpenRouter and returns the completion.

Parameters

| Parameter | Description | |-------------------|--------------------------------------------------------------| | Output Modalities | Filter the model list by capability (text, image, audio…) | | Model | Dynamically loaded from OpenRouter based on modality filter | | Prompt | The message to send to the model | | Max Tokens | Cap on generated tokens (default: 1024) | | Temperature | Randomness of output, 0–2 (default: 0.7) |

Output

Returns the full OpenRouter API response as JSON, including choices[0].message.content with the model's reply.


Example Workflow

A simple workflow that takes a prompt from a manual trigger and sends it to an AI model:

[Manual Trigger]
  → [OpenRouter] (model: google/gemini-flash-1.5, prompt: "Summarize the latest AI news")
  → [Set] (extract: {{ $json.choices[0].message.content }})

To import: copy the JSON below and use Workflows → Import from clipboard in n8n.

{
  "nodes": [
    {
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [240, 300]
    },
    {
      "name": "OpenRouter",
      "type": "n8n-nodes-openrouter-complete.openRouter",
      "position": [460, 300],
      "parameters": {
        "output_modalities": "text",
        "model": "google/gemini-flash-1.5",
        "prompt": "Summarize the latest AI news in 3 bullet points.",
        "maxTokens": 512,
        "temperature": 0.7
      }
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [[{ "node": "OpenRouter", "type": "main", "index": 0 }]]
    }
  }
}

Development

# Install dependencies
npm install

# Build
npm run build

# Lint
npm run lint

# Run in dev mode (links to local n8n)
npm run dev

License

MIT