Actions2
- Prompt Actions
- Image Actions
Overview
The node integrates with the Straico API to generate images based on textual descriptions. Specifically, the "Generate Image" operation under the "Image" resource allows users to create images by providing a description and selecting parameters such as model, size, and number of variations.
This node is beneficial in scenarios where automated image generation is needed, such as:
- Creating visual content for marketing or social media posts from text prompts.
- Generating concept art or design ideas quickly.
- Producing multiple variations of an image for A/B testing or creative exploration.
For example, a user can input a description like "a futuristic cityscape at sunset," select the DALL·E 3 model, choose a landscape size, and request 3 variations. The node will then return generated images matching these criteria.
Properties
| Name | Meaning |
|---|---|
| Model | The AI model used for image generation. Default is "openai/dall-e-3". |
| Description | Textual prompt describing the desired image content. |
| Size | The aspect ratio of the generated image. Options: Square, Landscape, Portrait. |
| Variations | Number of image variations to generate (1 to 4). |
Output
The node outputs JSON data containing the generated images. Each image corresponds to one variation requested. The output typically includes URLs or base64-encoded data representing the generated images.
If binary data is included, it represents the actual image files generated by the API, which can be used directly in workflows for further processing or saving.
Dependencies
- Requires an API key credential for authenticating with the Straico API.
- The node sends POST requests to
https://api.straico.com/v0/image/generation. - Proper configuration of the API key credential within n8n is necessary.
Troubleshooting
- Missing or invalid API key: The node requires a valid API key credential. Ensure the API key is correctly set up in n8n credentials.
- Invalid description or parameters: Providing an empty or nonsensical description may result in errors or poor-quality images. Make sure the description is meaningful.
- Variations out of range: The number of variations must be between 1 and 4. Values outside this range will cause validation errors.
- API response errors: Network issues or API downtime can cause failures. Check connectivity and Straico service status.
- Unexpected response format: If the API changes its response structure, the node might fail to parse results properly.
Links and References
- Straico API Documentation (hypothetical link based on base URL)
- DALL·E 3 Model Information (for understanding the default model used)