Package Information
Released: 2 mo ago
Downloads: 0 weeklyΒ /Β 0 monthly
Latest Version: 0.1.1
Author: Rooyai
Available Nodes
Documentation generatingβ¦
Documentation
n8n-nodes-rooyai-image
A production-ready Rooyai Image / Vision Model node for n8n, providing first-class AI multimodal visual reasoning, OCR, document analysis, and visual question answering powered by Rooyai's high-speed LLM gateway.
π― Overview
The Rooyai Image node brings state-of-the-art vision models to your n8n automation workflows. Easily analyze images from uploaded files, web URLs, or base64 strings with industry-leading multimodal AI models.
β¨ Key Features
- π§ Top Vision Models: Supports
google/gemini-3.1-flash-lite,google/gemini-3-flash-preview,gpt-4o-mini,gemma-4-31B-it,llama-3.3-70b-versatile,moonshotai/kimi-k2.6, and more. - πΌοΈ Flexible Image Inputs:
- Binary Data: Directly analyze images passed from upstream nodes (HTTP Request, Read File from Disk, Webhook file upload, AWS S3, etc.).
- Image URL: Analyze images directly from public web links.
- Base64 String: Pass raw base64 or
data:image/...strings. - Multiple Images: Analyze and compare multiple images in a single prompt.
- π Document OCR & Structured JSON Extraction: Extract text, tables, and receipts directly into structured JSON using system instructions and JSON response formatting.
- β‘ Image Detail Resolution: Choose between
auto,low(fast & token-efficient), orhigh(maximum fidelity). - π Usage Metrics: Returns token usage statistics (
promptTokens,completionTokens,totalTokens) and clean simplified output.
π¦ Installation
Option 1: Install in n8n (Community Nodes)
In your n8n instance:
- Go to Settings > Community Nodes.
- Click Install a community node.
- Enter
n8n-nodes-rooyai-image. - Agree to the risks and click Install.
Option 2: Install via npm in Self-Hosted n8n
# In your n8n installation directory:
npm install n8n-nodes-rooyai-image
# Restart n8n
n8n restart
Option 3: Manual Installation (Development / Custom Directory)
# Create custom nodes directory if needed
mkdir -p ~/.n8n/custom
# Clone or copy into custom directory
git clone https://github.com/rooyai/n8n-nodes-rooyai-image.git ~/.n8n/custom/n8n-nodes-rooyai-image
cd ~/.n8n/custom/n8n-nodes-rooyai-image
npm install
npm run build
# Restart n8n
n8n restart
π Credentials Setup
- In n8n, navigate to Credentials β Create New Credential.
- Search for Rooyai API.
- Enter your API Key from rooyai.com.
- Click Save and test the connection.
[!NOTE]
If you already have credentials configured forn8n-nodes-rooyai-message, theRooyai Imagenode automatically recognizes and shares the samerooyaiApicredential!
π Usage & Examples
Example 1: Analyze an Image from an HTTP Request or File Read
[ Read Binary File / HTTP Request ] β [ Rooyai Image ] β [ Slack / Database ]
- Image Source:
Binary Data (Input File from Previous Node) - Input Data Field Name:
data(default) - Model:
google/gemini-3.1-flash-lite(Recommended) - Prompt:
What is in this image? Provide a detailed summary.
Example 2: Invoice / Receipt OCR to Structured JSON
[ Webhook (Receipt Upload) ] β [ Rooyai Image ] β [ Google Sheets / Postgres ]
- Image Source:
Binary Data - System Message:
You are an expert OCR engine. Extract merchant name, invoice date, line items, tax, and total amount strictly in JSON format. - Prompt:
Extract all invoice details from this receipt as JSON. - Options > Response Format:
JSON Object
Example 3: Analyze Image from Web URL
[ Trigger ] β [ Rooyai Image ] β [ Output ]
- Image Source:
Image URL - Image URL:
https://example.com/product-photo.jpg - Model:
gpt-4o-mini - Prompt:
Identify the product brand, color, condition, and defects.
π€ Supported Vision Models
| Model | Provider | Multimodal Support | Best For |
|---|---|---|---|
google/gemini-3.1-flash-lite |
β Vision & Multimodal | Recommended: High speed, low latency, exceptional accuracy | |
google/gemini-3-flash-preview |
β Vision & Multimodal | Advanced visual reasoning, multi-step deduction | |
gpt-4o-mini |
OpenAI | β Vision & Multimodal | High precision OCR and visual extraction |
gemma-4-31B-it |
Google / Open | β Vision & Multimodal | Heavy parameter multimodal reasoning |
llama-3.3-70b-versatile |
Meta / Open | β Vision & Multimodal | General-purpose visual question answering |
moonshotai/kimi-k2.6 |
Moonshot AI | β Vision & Multimodal | Long-context multimodal analysis |
moonshotai.kimi-k2.5 |
Moonshot AI | β Vision & Multimodal | Visual reasoning |
gpt-oss-120b |
Open | β Vision & Multimodal | Open architecture reasoning |
βοΈ Configuration Reference
| Parameter | Type | Default | Description |
|---|---|---|---|
| Model | Dropdown / Dynamic | google/gemini-3.1-flash-lite |
Vision model used for analysis. Dynamic loader fetches available models from Rooyai. |
| Image Source | Options | Binary Data |
Choose between Binary Data, Image URL, Base64 String, or Multiple Images. |
| Input Data Field Name | String | data |
Binary property name when using Binary Data source. |
| Image URL | String | "" |
Direct image web link when using Image URL source. |
| Base64 Data | String | "" |
Raw base64 string or data:image/... data URI. |
| Prompt / Question | String | Describe what is in this image in detail. |
Question or task instruction for the AI. |
| System Message | String | "" |
Optional system prompt to define model behavior, output schema, or persona. |
| Image Detail | Options | auto |
Resolution fidelity: auto, low (512x512 downsampled), high (full resolution). |
| Sampling Temperature | Number | 0.7 |
0.0 (deterministic) to 2.0 (creative). |
| Max Tokens | Number | 1024 |
Maximum tokens in the generated response (up to 32768). |
| Simplify Output | Boolean | true |
When true, returns clean { message, text, usage }. When false, returns full raw API response. |
| Response Format | Options (Under Options) | text |
text or json_object (forces valid JSON output). |
π οΈ Development & Building
# Install dependencies
npm install
# Compile TypeScript and copy icons
npm run build
# Watch mode for development
npm run dev
# Code formatting & linting
npm run format
npm run lint
π License
MIT Β© Rooyai
