Straico Official icon

Straico Official

Get data from Straico API

Image → Generate Image

AI-generated

Overview

This node operation generates images based on a textual description using the Straico API. It supports specifying the model to use, image size, number of variations, and optional seed for reproducibility. Additionally, it can enhance the prompt using AI with optional custom instructions. This is useful for creating AI-generated images for creative projects, marketing materials, or concept visualization.

Use Case Examples

  1. Generate a landscape image of a futuristic city using the 'openai/dall-e-3' model.
  2. Create multiple variations of a portrait image based on a detailed description.
  3. Use AI to enhance the prompt before generating an image for improved creativity.

Properties

Name Meaning
Model The AI model used to generate the image, e.g., 'openai/dall-e-3'.
Description A textual description of the image to be generated.
Size The desired dimensions of the generated image, such as square, landscape, or portrait.
Variations Number of image variations to generate (1 to 4).
Seed Optional seed number for reproducibility, applicable only for certain models (flux and ideogram).
Enhance Prompt Whether to use AI to enhance the original prompt before image generation.
Custom Enhancer Custom instructions for the AI to enhance the prompt, used only if prompt enhancement is enabled.

Output

JSON

  • id - Unique identifier of the generated image response.
  • message - Message or description returned by the API.
  • model - The model used for image generation.
  • usage - Usage statistics or metadata related to the request.
  • created_at - Timestamp when the image was generated.

Dependencies

  • Straico API with authentication credentials

Troubleshooting

  • Ensure the 'model' parameter is correctly specified and supported by the API.
  • Verify that the 'description' is not empty as it is required for image generation.
  • If using seed, confirm it is within the valid range and applicable to the selected model.
  • Check API authentication credentials if requests fail with authorization errors.
  • If prompt enhancement is enabled, ensure the custom enhancer instructions are valid and meaningful.

Discussion