CheapAI icon

CheapAI

Consume Cheap AI

Actions5

Overview

The node enables generating images based on textual prompts using an AI image generation service. Users provide a descriptive text prompt, and the node returns one or more images matching that description. This is useful for creative content generation, prototyping visual ideas, or automating image creation workflows.

For example, you could input "A cute cat eating a dinosaur" as a prompt, and the node will generate an image (or multiple images) depicting that scene.

Properties

Name Meaning
WARNING A notice that this node will be deprecated soon and users should migrate to the AIConnect node.
Prompt Text description of the desired image(s). Max length 1000 characters.
Response Format Format to return the generated image(s): either as Binary Data or as an Image URL.
Number of Images How many images to generate (1 to 10).
Resolution The resolution of the generated images: 256x256, 512x512, or 1024x1024 pixels.

Output

The output contains the generated image(s) in the format specified by the user:

  • If Binary Data is selected, the image(s) are returned as base64-encoded binary data suitable for further processing or saving.
  • If Image Url is selected, the node returns URLs pointing to the generated image(s).

The exact JSON structure depends on the response from the AI service but generally includes the image data or URLs corresponding to each generated image.

Dependencies

  • Requires an API key credential for the AI image generation service.
  • The node uses a configurable base URL for the API endpoint, which must be set in the node credentials.
  • No other external dependencies are indicated.

Troubleshooting

  • Common issues:

    • Invalid or missing API key credential will cause authentication failures.
    • Exceeding the maximum number of images (more than 10) or prompt length (over 1000 characters) may result in errors.
    • Network or API endpoint misconfiguration can lead to request failures.
  • Error messages:

    • Authentication errors typically indicate invalid or missing API credentials.
    • Validation errors may mention prompt length or number of images constraints.
    • HTTP errors might occur if the base URL is incorrect or the service is unavailable.

To resolve these, verify your API credentials, ensure prompt and options comply with limits, and confirm the API endpoint configuration.

Links and References

Discussion