Overview
This node generates images using AI models based on a text prompt. It sends the prompt and other parameters to an external AI image generation service, waits for the images to be created, then downloads and outputs them in the specified format. This node is useful for creative workflows where automatic image creation is needed, such as generating concept art, illustrations, or visual content from textual descriptions.
Practical examples:
- Creating multiple variations of an image from a single prompt for design inspiration.
- Generating character or scene visuals for storytelling or game development.
- Producing custom images for marketing materials based on descriptive keywords.
Properties
| Name | Meaning |
|---|---|
| Prompt | Text prompt describing what the AI should generate in the image. |
| Negative Prompt | Text specifying elements or features to exclude from the generated image. |
| Model | AI model to use for generation. Options: Flux, Tamarin, Super Anime, Visi Canvas. |
| Size | Aspect ratio of the output image. Options: Square (1:1), Portrait (3:4), Landscape (4:3). |
| Batch Size | Number of images to generate per execution. Options: 1 Image, 2 Images. |
| Output Format | Format of the output images. Options: JPEG, PNG. |
| JPEG Quality | Quality level for JPEG output images (1-100). Only applicable if Output Format is JPEG. |
Output
The node outputs one or more images as binary data. Each output item contains:
binary.data: The image file encoded in base64.fileName: The original filename extracted from the image URL.fileType: Always"image".fileSize: Approximate size of the image in kilobytes.fileExtension: File extension matching the chosen output format (jpegorpng).mimeType: MIME type corresponding to the image format (image/jpegorimage/png).
No additional JSON data is included in the output items.
Dependencies
- External AI image generation API at
https://stablediffusion3net.erweima.ai. - Requires internet access to call the API endpoints for unique ID retrieval, image generation request, and polling for completion.
- Uses the
jimplibrary internally to process and convert downloaded images into the desired output format and quality. - No internal credential types are exposed; however, the node relies on the external service's availability and may require proper network configuration.
Troubleshooting
Error: "Can't get unique-id"
Occurs if the initial request to obtain a unique identifier from the external service fails. Check internet connectivity and API availability.Image generation failed
Thrown if the image generation process does not complete successfully. Possible causes include invalid prompts, service downtime, or exceeding usage limits.Timeouts or long delays
The node polls the generation status every second until completion. Slow responses from the API can cause delays. Consider network stability and API rate limits.Invalid output format or quality settings
Ensure that JPEG quality is set only when the output format is JPEG. Values must be between 1 and 100.
Links and References
- Jimp - JavaScript Image Processing Library
- External AI image generation API documentation is not publicly linked but is accessed at
https://stablediffusion3net.erweima.ai.