0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

AI → Generate Image

AI-generated

Overview

This node generates images based on a given text prompt using AI. It allows users to specify the prompt, the number of images to generate, and the resolution of the images. This is useful for creating AI-generated artwork, concept visuals, or any scenario where automated image creation from textual descriptions is needed.

Use Case Examples

  1. Generating multiple images of a fantasy landscape by providing a descriptive prompt and selecting the desired resolution.
  2. Creating product mockups or design ideas by inputting specific prompts and receiving several image options.

Properties

Name Meaning
Prompt The text prompt used to generate the image.
Number of Results The number of images to generate.
Resolution The resolution of the generated image, limited to '256x256', '512x512', or '1024x1024'.

Output

JSON

  • imageUrl - URL of the generated image.
  • createdAt - Timestamp when the image was generated.
  • id - Unique identifier of the generated image.

Dependencies

  • Requires an API key credential for authentication to the AI image generation service.

Troubleshooting

  • Ensure the prompt is not empty and is descriptive enough to generate meaningful images.
  • Verify that the number of results (n) is a positive integer within allowed limits.
  • Check that the resolution value is one of the supported options: '256x256', '512x512', or '1024x1024'.
  • If the API key credential is missing or invalid, authentication errors will occur.

Discussion