0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

AI → Generate Image

AI-generated

Overview

The node provides an AI-powered image generation feature. It allows users to create images based on textual descriptions (prompts). This is useful in scenarios such as generating creative visuals for marketing, prototyping design concepts, or producing unique artwork without manual graphic design.

For example, a user can input a prompt like "A beautiful sunset over the mountains" and receive one or more generated images matching that description at a specified resolution.

Properties

Name Meaning
Text Prompt The descriptive text used to generate the image. Example: "A beautiful sunset over the mountains".
Number of Results How many images to generate, from 1 up to 10.
Resolution The size of the generated images. Options are: 256x256, 512x512, or 1024x1024 pixels.

Output

The output contains a JSON field with the generated images' data. Each result typically includes URLs or base64-encoded image data representing the generated images. The node does not explicitly mention binary output, so it likely returns image URLs or JSON metadata rather than raw binary data.

Dependencies

  • Requires an API key credential for authentication with the external AI image generation service.
  • The node sends a POST request to the endpoint /ai/generateimage with the prompt, number of results, and size parameters.
  • The base URL for requests is https://prod.0codekit.com.

Troubleshooting

  • Common issues:
    • Invalid or missing API key credential will cause authentication failures.
    • Providing an empty or invalid prompt may result in errors or no images generated.
    • Requesting more than 10 images or unsupported resolutions may cause validation errors.
  • Error messages:
    • Authentication errors: Ensure the API key credential is correctly configured.
    • Validation errors: Check that the prompt is non-empty, the number of results is between 1 and 10, and the resolution is one of the supported options.
    • Network or service errors: Verify network connectivity and service availability.

Links and References

  • No direct links provided in the source code. For further details, consult the documentation of the external AI image generation API used by this node.

Discussion