rooyai-chat

Access 40+ powerful AI models from Rooyai.com in n8n! Get your free API key at https://rooyai.com and use models like Gemini, Claude, GPT-4, Llama, DeepSeek, and more with AI Agent, Basic LLM Chain, and other n8n AI nodes.

Package Information

Downloads: 1,282 weeklyΒ /Β 1,861 monthly
Latest Version: 0.5.13
Author: Rooyai

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

  1. Clone or download this repository
  2. Install dependencies:
    npm install
    
  3. Build the node:
    npm run build
    
  4. 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

  1. Go to Credentials in n8n
  2. Click Add Credential
  3. Search for "Rooyai API" and select it
  4. 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)
  5. Click Save

3. Add Rooyai Chat Model Node

  1. In your workflow, click + to add a node
  2. Search for "Rooyai Chat Model"
  3. Select the node to add it to your workflow

4. Configure the Node

  1. Select Credentials: Choose your Rooyai API credentials
  2. Choose Model: Select a model from the dropdown
  3. 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:

  1. Change Base URL:

    • Edit: credentials/RooyaiApi.credentials.ts
    • Find the baseUrl property default value
    • Update: default: 'https://your-new-url.com/api/v1'
  2. Change Chat Path:

    • Edit: nodes/Rooyai/RooyaiLangChainWrapper.ts
    • Find the callRooyaiAPI() method
    • Update the line: const url = \${this.baseUrl}/chat`;`
    • Change /chat to your new endpoint path
  3. Rebuild:

    npm run build
    

Development

Scripts

  • npm install - Install dependencies
  • npm run build - Build the node (TypeScript + copy icons)
  • npm run dev - Watch mode for development
  • npm run lint - Run linter
  • npm 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


Ready to get started? Visit rooyai.com to get your free API key and unlock 40+ powerful AI models! πŸš€

Discussion