🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

n8n-nodes-openrouter-embed

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

n8n-nodes-openrouter-embed

n8n community sub-node for OpenRouter Embeddings – access embedding models from multiple providers via OpenRouter's unified API

latest
npmnpm
Version
0.1.0
Version published
Weekly downloads
13
-18.75%
Maintainers
1
Weekly downloads
 
Created
Source

n8n-nodes-openrouter-embeddings

An n8n community sub-node that lets you generate text embeddings through OpenRouter's unified API. Access embedding models from OpenAI, Cohere, Google, and many other providers with a single credential.

Features

  • Multi-provider access – use OpenAI, Cohere, Google, and other embedding models through one API
  • Dynamic model list – models are loaded directly from the OpenRouter API so you always see the latest options
  • Batch processing – configurable batch size for efficient bulk embedding
  • Drop-in sub-node – works with every n8n vector store and AI chain node
  • Simple auth – only requires an OpenRouter API key
  • Debug logging – set N8N_NODES_DEBUG=1 for detailed request/response logs

Installation

  • In n8n, go to SettingsCommunity Nodes
  • Search for n8n-nodes-openrouter-embeddings
  • Click Install

Manual Installation

npm install n8n-nodes-openrouter-embeddings

Setup

Prerequisites

Authentication

  • In n8n, go to CredentialsNew Credential
  • Search for OpenRouter API
  • Paste your API key and save

Usage

This is a sub-node that supplies embeddings to other n8n AI nodes (vector stores, chains, agents).

Using with Vector Stores

  • Add a vector store node to your workflow (e.g., Pinecone, Qdrant, Supabase)
  • Connect Embeddings OpenRouter to the embeddings input
  • Select your OpenRouter API credential
  • Pick a model from the dropdown (e.g., openai/text-embedding-3-small)
  • Configure options as needed

Example Workflow

[Document Loader] → [Vector Store] ← [Embeddings OpenRouter]
                          ↓
                    [AI Agent / Chain]

Configuration

ParameterDescription
ModelEmbedding model to use. The dropdown is populated dynamically from the OpenRouter API. Default: openai/text-embedding-3-small.
Strip New LinesRemove \n characters before embedding (default: true).
Batch SizeMaximum texts per API call (default: 100). Lower this if you hit rate limits.

Browse all available models at https://openrouter.ai/models?output_modalities=embeddings.

Some commonly used models:

Model IDProviderNotes
openai/text-embedding-3-smallOpenAIFast, cost-effective, 1 536 dimensions
openai/text-embedding-3-largeOpenAIHigher quality, 3 072 dimensions
cohere/embed-multilingual-v3.0CohereExcellent multilingual support
google/text-embedding-004Google768 dimensions

Use Cases

  • RAG (Retrieval-Augmented Generation) – embed documents and queries for context retrieval
  • Semantic Search – find relevant documents by meaning instead of keywords
  • Document Similarity – compare and cluster documents in a vector store
  • Classification & Clustering – group or categorize text by embedding proximity

Compatible Nodes

Works with any n8n node that accepts an embeddings sub-node, including:

  • Simple Vector Store
  • Pinecone Vector Store
  • Qdrant Vector Store
  • Supabase Vector Store
  • PGVector Vector Store
  • Milvus Vector Store
  • MongoDB Atlas Vector Store
  • Zep Vector Store
  • Question and Answer Chain
  • AI Agent nodes

Troubleshooting

ErrorCauseFix
401 UnauthorizedInvalid or missing API keyVerify your key at https://openrouter.ai/keys
402 Payment RequiredInsufficient creditsTop up your OpenRouter balance
404 Not FoundModel doesn't exist or isn't an embedding modelCheck the model ID and the models page
429 Too Many RequestsRate limit exceededLower the batch size or add delays
529 Provider OverloadedUpstream provider is overloadedRetry later or try a different model

API Reference

This node calls the OpenRouter Embeddings API:

POST https://openrouter.ai/api/v1/embeddings

Full API docs: https://openrouter.ai/docs/api/reference/embeddings

Contributing

Contributions are welcome! Please open a Pull Request or Issue.

License

MIT

Changelog

0.1.0

  • Initial release
  • OpenRouter embeddings support with dynamic model loading
  • Batch processing with configurable batch size
  • Strip new-lines option
  • Custom credential with connection test

Keywords

n8n-community-node-package

FAQs

Package last updated on 08 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts