Actions4
- Knowledge Database Actions
- Image Actions
- Audio Actions
- Chat Actions
Overview
The node integrates with the nele.ai service to generate images using AI models. It allows users to specify an AI model and provide a textual prompt, which the model uses to create a corresponding image. This node is useful for creative content generation, marketing materials, concept art, or any scenario where automated image creation from text descriptions is needed.
For example, a user can input a prompt like "a futuristic cityscape at sunset" and select a specific AI model to generate a unique image matching that description. The node supports customization of image quality, size, style, and background depending on the chosen model.
Properties
| Name | Meaning |
|---|---|
| Model Name or ID | Select the AI model that will generate the image. Options are dynamically loaded from available models marked as usable. Users can also specify a model ID via expression. |
| Prompt | The textual description or instruction that guides the AI in generating the image. This is a required multi-line string input. |
| Quality Name or ID | (Optional) Defines the quality setting for the generated image. Available options depend on the selected model and can be chosen from a list or specified by ID via expression. |
| Size Name or ID | (Optional) Specifies the size of the output image. Options vary based on the selected model and can be selected from a list or provided as an ID through expressions. |
| Style Name or ID | (Optional, only for certain models like "azure-dall-e-3" or "dall-e-3") Allows selection of an artistic style for the image generation. Options are dynamically loaded based on the model and can be set by expression. |
| Background Name or ID | (Optional, only for the "gpt-image-1" model) Lets users choose a background setting for the image. Options depend on the model and can be selected or specified via expression. |
Output
The node outputs JSON data containing the generated image information. Typically, this includes URLs or base64-encoded data representing the created image(s). If binary data output is supported, it would represent the actual image file content suitable for further processing or saving.
Dependencies
- Requires an API key credential for authentication with the nele.ai service.
- Depends on the external nele.ai API endpoints to fetch models, qualities, sizes, styles, and backgrounds dynamically.
- Network access to the configured base URL of the nele.ai API is necessary.
Troubleshooting
Common Issues:
- Invalid or missing API key: Ensure the API key credential is correctly configured.
- Unsupported model or operation: Verify that the selected model supports the requested options.
- Network errors: Check internet connectivity and API endpoint availability.
- Empty or invalid prompt: The prompt must be a non-empty string describing the desired image.
Error Messages:
- Authentication failures typically indicate issues with the API key.
- Validation errors may occur if incompatible options are selected for a given model.
- Timeout or connection errors suggest network problems or API downtime.
Resolving these usually involves verifying credentials, checking property values, and ensuring stable network conditions.
Links and References
- n8n Expressions Documentation
- nele.ai API Documentation (Assumed based on context)