Overview
This node allows users to generate images using the LetzAI public API. It is designed for scenarios where automated image creation is needed based on textual prompts, such as generating visuals for marketing materials, creative projects, or rapid prototyping of design concepts. Users provide a descriptive prompt and configure parameters like image dimensions, quality, creativity level, watermark presence, system version, and generation mode to tailor the output.
Practical examples include:
- Creating unique illustrations from text descriptions for blog posts.
- Generating product mockups or concept art automatically.
- Producing quick visual assets with different styles by adjusting creativity and mode settings.
Properties
| Name | Meaning |
|---|---|
| Prompt | Text description used as the basis for image generation. |
| Width | Width of the generated image in pixels. Allowed range: 520 to 2160. Default is 1600. |
| Height | Height of the generated image in pixels. Allowed range: 520 to 2160. Default is 1600. |
| Quality | Number of steps the generation process takes; higher values yield better quality but slower processing. Range: 1 (fastest) to 5 (slowest). Default: 2. |
| Creativity | Controls how strictly the prompt is followed. Higher values produce more artificial images; lower values produce more photorealistic results. Range: 1 to 5. Default: 2. |
| Has Watermark? | Boolean flag indicating whether the generated image should include a watermark. Default is true. |
| System Version | Selects the LetzAI system version to use for generation. Allowed values are 2 or 3. Default is 3 (newest). |
| Mode | Generation mode affecting speed and quality: "default" (slow, high quality), "sigma" (faster, good for close-ups), or "turbo" (fastest, lower quality). Default is "default". |
Output
The node outputs JSON data containing the result of the image generation request. This typically includes URLs or base64-encoded data representing the generated image(s). If binary data is returned, it represents the actual image file(s) created by the LetzAI service.
Dependencies
- Requires an active API key credential for the LetzAI service.
- The node sends POST requests to
https://api.letz.ai/imageswith JSON payloads containing the input properties. - Proper network connectivity and valid API credentials are necessary for successful operation.
Troubleshooting
- Common issues:
- Invalid or missing API key will cause authentication failures.
- Providing image dimensions outside the allowed range (less than 520 or greater than 2160) may result in errors.
- Setting quality or creativity values outside their defined ranges (1 to 5) can cause request rejections.
- Using unsupported system versions other than 2 or 3 may lead to unexpected behavior.
- Error messages:
- Authentication errors indicate problems with the API key; verify and update credentials.
- Validation errors usually specify which parameter is invalid; adjust inputs accordingly.
- Network timeouts or connection errors suggest connectivity issues; check internet access and API endpoint availability.
Links and References
- LetzAI Official Website
- LetzAI API Documentation (for detailed API usage and parameter explanations)