n8n-nodes-legnext
v0.1.0
Published
n8n community node for Legnext AI - Generate images and videos using Midjourney models in your workflows
Readme
n8n-nodes-legnext

This is an n8n community node that integrates Legnext AI into your n8n workflows. Legnext AI is a powerful API service for AI-powered image and video generation using Midjourney models, enabling you to create stunning visuals and dynamic videos directly from your automation workflows.
With the Legnext node, you can generate images from text prompts, create variations, upscale images, blend multiple images together, generate videos, and much more—all through a simple, declarative API interface.
n8n is a fair-code licensed workflow automation platform.
Installation Operations Credentials Compatibility Usage Resources
Installation
Follow the installation guide in the n8n community nodes documentation.
To install the Legnext node:
- Go to Settings → Community nodes in your n8n instance
- Search for
n8n-nodes-legnext - Click Install
Operations
The Legnext node provides four main resources with comprehensive operations:
🖼️ Image Resource
Generate and manipulate images using Midjourney models:
- Blend - Blend 2-5 images together seamlessly
- Describe - Generate text descriptions and prompts from images
- Imagine - Generate a 2x2 image grid from text prompts
- Outpaint - Extend images in specified directions
- Pan - Extend the image canvas with scale ratio
- Reroll - Regenerate images using the same prompt
- Shorten - Analyze and shorten prompts to key elements
- Upscale - Upscale images from generated grids
- Variation - Create variations of selected images with optional remix prompts
🎬 Video Resource
Create and enhance dynamic videos:
- Extend Video - Extend existing videos with seamless continuation
- Upscale Video - Enhance video resolution and quality using AI
- Video Diffusion - Generate dynamic videos from text prompts or images
📋 Job Resource
Monitor and manage your generation tasks:
- Get Job - Retrieve the status and results of any generation job
💰 Account Resource
Manage your Legnext account:
- Get Balance - Check your account balance and usage
Credentials
To use the Legnext node, you need to authenticate with your Legnext API key:
- Create a free account at Legnext AI
- Navigate to your API settings to generate an API key
- In n8n, add new credentials for Legnext API
- Enter your API key
- Test the connection to ensure it works
Usage
Basic Workflow Example
Here's a simple example of generating an image and upscaling it:
Imagine Operation: Generate a 2x2 grid of images
- Resource:
Image - Operation:
Imagine - Text Prompt:
"A beautiful sunset over snow mountains"
- Resource:
Get Job Operation: Wait for the job to complete
- Resource:
Job - Operation:
Get Job - Job ID:
{{ $json.job_id }}
- Resource:
Upscale Operation: Upscale your favorite image
- Resource:
Image - Operation:
Upscale - Job ID:
{{ $json.job_id }} - Image Number:
0(first image in the grid)
- Resource:
Webhook Integration
All operations support optional webhook callbacks. Add a callback URL to receive notifications when tasks complete:
callback: https://your-webhook-endpoint.com/notifyResources
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
For support, please:
- Open an issue on GitHub
- Contact Legnext support at Legnext AI
- Join the n8n community forum for general n8n questions
Made with ❤️ by the Legnext team
