Package Information
Available Nodes
Documentation
n8n-nodes-rooyai-chat
π Access 40+ Premium AI Models in n8n!
Connect to Rooyai.com and unlock access to 40+ powerful AI models including Gemini, Claude, GPT-4, Llama, DeepSeek, Qwen, and more - all through a single API! Perfect for use with n8n's AI Agent, Basic LLM Chain, and other AI nodes.
Why Rooyai?
β¨ 40+ AI Models - Access the best models from OpenAI, Anthropic, Google, Meta, and more
π Get Your Free API Key - Sign up at rooyai.com
π° Cost Tracking - Built-in tracking of API costs per request
β‘ High Performance - Fast, reliable API with real-time responses
π― Fully Compatible - Works seamlessly with n8n's AI Agent and tool calling
Description
This n8n community node provides a Rooyai Chat Model supply node that connects to the Rooyai.com API, giving you access to 40+ premium AI models through n8n's AI Agent, Basic LLM Chain, and other AI processing nodes.
Features
- π€ 40+ AI Models: Gemini 2.0, Claude 3.5, GPT-4, Llama 3.3, DeepSeek R1, Qwen, and many more
- π Get API Key: Visit rooyai.com to get your free API key
- β AI Agent Compatible: Full support for n8n's AI Agent with tool calling
- β Supply Node: Works with Basic LLM Chain, AI Agent, and all n8n AI nodes
- π° Cost Tracking: Real-time tracking of API costs per request (unique to Rooyai)
- βοΈ Configurable: Temperature, max tokens, and other model parameters
- π§ Custom Headers: Support for additional API headers
- β‘ Real-time: Direct HTTP integration with Rooyai.com API
Installation
Via npm (Recommended)
npm install n8n-nodes-rooyai-chat
Then restart your n8n instance. The node will appear in the node palette under AI β Language Models.
Manual Installation
- Clone or download this repository
- Install dependencies:
npm install - Build the node:
npm run build - Copy to your n8n custom nodes location:
# Windows cp -r dist/* %USERPROFILE%\.n8n\custom\ # Linux/Mac cp -r dist/* ~/.n8n/custom/
βοΈ Configuration
1. Get Your API Key from Rooyai.com
π Visit rooyai.com to get your free API key!
2. Create Rooyai API Credentials in n8n
- Go to Credentials in n8n
- Click Add Credential
- Search for "Rooyai API" and select it
- Enter your credentials:
- API Key: Your Rooyai API key from rooyai.com (required)
- Base URL:
https://rooyai.com/api/v1(default) - Optional Headers: Additional headers as JSON (optional)
- Click Save
3. Add Rooyai Chat Model Node
- In your workflow, click + to add a node
- Search for "Rooyai Chat Model"
- Select the node to add it to your workflow
4. Configure the Node
- Select Credentials: Choose your Rooyai API credentials
- Choose Model: Select a model from the dropdown
- Configure Options (optional):
- Temperature: Controls randomness (0-1, default: 0.7)
- Max Tokens: Maximum number of tokens to generate (default: 4096)
5. Connect to AI Nodes
Connect the Model output from Rooyai Chat Model to:
Basic LLM Chain
AI Agent
Any other n8n AI node that accepts a Language Model
π Available Models (40+)
Get your API key at rooyai.com to access all models!
π₯ Top Models
- Gemini 2.5 Pro (gemini-2.5-pro) - Google's latest, most powerful
- Gemini 2.5 Flash (gemini-2.5-flash) - Fast and efficient
- GPT-4 (gpt-4) - OpenAI's flagship model
- Claude 3.5 Sonnet (claude-3.5-sonnet) - Anthropic's best
- Llama 3.3 70B (llama-3.3-70b) - Meta's powerful open model
- DeepSeek R1 (deepseek-r1) - Advanced reasoning model
- DeepSeek V3 (deepseek-v3) - Latest from DeepSeek
- Qwen 3 (qwen3) - Alibaba's coding specialist
π Specialized Models
- Gemini 2.0 Flash (gemini-2.0-flash) - Default, great balance
- DeepSeek V3.1 NeX (deepseek-v3.1-nex) - Enhanced performance
- Qwen3 Coder (qwen3-coder) - Code generation expert
- GPT-OSS 120B (gpt-oss-120b) - Large open source
- TNG R1T Chimera (tng-r1t-chimera) - Multi-model fusion
- Kimi K2 (kimi-k2) - Long context specialist
- GLM 4.5 (glm-4.5-air) - Efficient Chinese/English
- Devstral (devstral) - Development assistant
...and 20+ more models! Visit rooyai.com to see the complete list.
Usage Example
ββββββββββββββββββββ
β Rooyai Chat Modelβ
β (Supply Node) β
βββββββββββ¬βββββββββ
β Model
βΌ
ββββββββββββββββββββ
β Basic LLM Chain β
β (AI Node) β
ββββββββββββββββββββ
The Rooyai Chat Model node provides the language model instance that the Basic LLM Chain or AI Agent uses to process prompts and generate responses.
API Endpoint Configuration
Current Endpoint
The node uses the following endpoint:
- Base URL:
https://rooyai.com/api/v1 - Chat Endpoint:
/chat - Full URL:
https://rooyai.com/api/v1/chat
How to Change the Endpoint
If you need to update the API endpoint:
Change Base URL:
- Edit:
credentials/RooyaiApi.credentials.ts - Find the
baseUrlproperty default value - Update:
default: 'https://your-new-url.com/api/v1'
- Edit:
Change Chat Path:
- Edit:
nodes/Rooyai/RooyaiLangChainWrapper.ts - Find the
callRooyaiAPI()method - Update the line:
const url = \${this.baseUrl}/chat`;` - Change
/chatto your new endpoint path
- Edit:
Rebuild:
npm run build
Development
Scripts
npm install- Install dependenciesnpm run build- Build the node (TypeScript + copy icons)npm run dev- Watch mode for developmentnpm run lint- Run linternpm run format- Format code
Project Structure
n8n-nodes-rooyai-chat/
βββ credentials/
β βββ RooyaiApi.credentials.ts # API credentials definition
βββ nodes/
β βββ Rooyai/
β βββ Rooyai.node.ts # Main node definition
β βββ RooyaiLangChainWrapper.ts # LangChain integration
β βββ N8nLlmTracing.ts # Event tracing
β βββ rooyai.svg # Node icon
βββ package.json
βββ tsconfig.json
βββ gulpfile.js
Troubleshooting
"Rooyai API key not found"
- Verify your API key is entered correctly in credentials
- Make sure you've selected the correct credential in the node
"Failed to call Rooyai API"
- Check your internet connection
- Verify the base URL is correct
- Check if the Rooyai API is accessible
Node doesn't appear in n8n
- Make sure you've restarted n8n after installation
- Verify the dist folder was copied to
~/.n8n/custom/ - Check n8n logs for any errors
License
MIT
Author
Rooyai
π Resources
- Rooyai.com - Get your API key and access 40+ AI models
- n8n Documentation
- n8n AI Nodes
Ready to get started? Visit rooyai.com to get your free API key and unlock 40+ powerful AI models! π
