rooyai-image

Rooyai Image / Vision Model node for n8n - Multimodal AI image analysis, OCR, visual reasoning, and question answering

Package Information

Released: 2 mo ago
Downloads: 0 weeklyΒ /Β 0 monthly
Latest Version: 0.1.1
Author: Rooyai

Documentation

n8n-nodes-rooyai-image

npm version
License: MIT

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), or high (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:

  1. Go to Settings > Community Nodes.
  2. Click Install a community node.
  3. Enter n8n-nodes-rooyai-image.
  4. 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

  1. In n8n, navigate to Credentials β†’ Create New Credential.
  2. Search for Rooyai API.
  3. Enter your API Key from rooyai.com.
  4. Click Save and test the connection.

[!NOTE]
If you already have credentials configured for n8n-nodes-rooyai-message, the Rooyai Image node automatically recognizes and shares the same rooyaiApi credential!


πŸš€ 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 Google βœ… Vision & Multimodal Recommended: High speed, low latency, exceptional accuracy
google/gemini-3-flash-preview Google βœ… 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

Discussion