@gluneau/n8n-nodes-venice
v0.1.2
Published
Venice.ai integration for n8n
Maintainers
Readme
@gluneau/n8n-nodes-venice
This is an n8n community node package that provides integration with Venice.ai's AI services. It allows n8n workflows to use Venice.ai's models for text generation, image creation, speech synthesis, and vector embeddings.
Features
This node package provides:
- Venice AI (root node): Main entry point for Venice.ai integrations
- Venice Chat Model (sub-node): Generate text using Venice.ai's chat models
- Venice Image Generation (sub-node): Create and manipulate images with Venice.ai
- Venice Text to Speech (sub-node): Convert text to spoken audio with Venice.ai
- Venice Embeddings (sub-node): Generate vector embeddings from text with Venice.ai
Prerequisites
Installation
Follow these steps to install this custom node package in your n8n instance:
Local Installation (Development)
Clone this repository:
git clone https://github.com/gluneau/n8n-nodes-venice.git cd n8n-nodes-veniceInstall dependencies:
npm installBuild the package:
npm run buildLink the package to your n8n installation:
npm linkIn your n8n installation directory:
cd ~/.n8n/nodes npm link @gluneau/n8n-nodes-veniceStart n8n:
n8n start
Production Installation
Install directly from npm:
npm install -g @gluneau/n8n-nodes-veniceStart n8n:
n8n start
Configuration
Setting up Venice.ai Credentials
- Log in to your n8n instance
- Go to Settings > Credentials
- Click on New Credential
- Search for "Venice.ai API" and select it
- Enter your Venice.ai API key
- Save the credential
Usage
After installation, you'll find the Venice.ai nodes in the n8n nodes panel.
Basic Workflow with Venice Chat Model
- Add a trigger node (e.g., HTTP Request or Manual trigger)
- Add the Venice AI node
- Click on the "Add Chat Model" button in the Venice AI node
- Configure the Venice Chat Model with your prompt and model settings
- Connect to output nodes as needed
Example: Text Generation Workflow
Here's a simple workflow that generates text based on a prompt:
- Manual Trigger
- Set node (to define the prompt):
- Set a
promptvariable with your text prompt
- Set a
- Venice AI node:
- Add a Chat Model
- In the Chat Model, add a message with role "User" and content set to
{{$json.prompt}} - Configure model and other parameters as needed
- Respond to Webhook node to return the result
Example: Image Generation Workflow
Create images from text descriptions:
- HTTP Request trigger
- Venice AI node:
- Add Image Generation
- Set prompt to
{{$json.body.prompt}} - Configure size, style, and other parameters
- HTTP Response node to return the generated image
Example: Text-to-Speech Workflow
Convert text to spoken audio:
- HTTP Request trigger (with text input)
- Venice AI node:
- Add Text to Speech
- Set text to
{{$json.body.text}} - Choose voice and format
- HTTP Response node to return the audio file
Example: Embeddings Workflow
Generate vector embeddings for text:
- Function node (with text input)
- Venice AI node:
- Add Embeddings
- Set input to
{{$json.text}} - Configure model and dimensions
- Write to File node to save embeddings for further use
Development
Building
npm run buildLinting
npm run lintAuto-fix linting issues:
npm run lintfixFormatting Code
npm run formatLicense
This project is licensed under the MIT License - see the LICENSE file for details.
Support
If you encounter any issues or have questions, please:
- Check the issues page
- Create a new issue if your problem doesn't already exist
For Venice.ai API-specific questions, refer to their official documentation.
