n8n-nodes-sd3gen
Version:
n8n nodes to integrate for AI image generation
87 lines (62 loc) • 1.81 kB
Markdown

# n8n-nodes-sd3gen
This package provides an AI Image Generation node for n8n, allowing you to generate images using various AI models.
## Features
- Multiple AI models support (Flux, Tamarin, Super Anime, Visi Canvas)
- Customizable image size ratios (1:1, 3:4, 4:3)
- Batch generation (1, 2, or 4 images)
- Negative prompt support
- Output format options (JPEG/PNG)
- Quality settings for JPEG output
## Prerequisites
- n8n (version 1.0.0 or later)
- Node.js 18.10 or newer
## Installation
```bash
npm install n8n-nodes-sd3gen
```
## Node Configuration
### AI Image Generator Node
#### Input Parameters
- **Prompt**: Text description of the image you want to generate
- **Model**: Choice of AI model
- Flux
- Tamarin
- Super Anime
- Visi Canvas
- **Size**: Image aspect ratio
- Square (1:1)
- Portrait (3:4)
- Landscape (4:3)
- **Batch Size**: Number of images to generate (1, 2, or 4)
- **Negative Prompt**: Elements to exclude from generation
- **Output Format**: JPEG or PNG
- **JPEG Quality**: 1-100 (when JPEG format is selected)
#### Output
The node outputs generated images with the following properties:
- File name
- Base64 encoded image data
- File type and size information
- MIME type
## Usage Example
1. Add the AI Image Generator node to your workflow
2. Configure the prompt and model settings
3. Select desired image size and batch count
4. Choose output format
5. Execute to generate images
## Error Handling
The node includes handling for:
- Generation failures
- API connection issues
- Invalid parameters
## Development
```bash
# Install dependencies
pnpm install
# Build
pnpm build
# Lint
pnpm lint
```
## License
[MIT](LICENSE.md)