Generate Image

This action generates an image with an AI model based on the provided instructions.

Action Settings

Setting Description
Model The ID of the model to use for generating an image. Can be dall-e-2, dall-e-3, or gpt-image-1, gpt-image-1-mini, gpt-image-1.5.
Size The size of the generated image.
Background Determines whether the image should have transparent Background.
Output Format The format of the generated images. Applicable only for GPT models.
Output Compression The compression level - from 0 to 100%. Applicable only for webp and jpeg output formats.
Moderation Content moderation level. Can be low for less restrictive filtering or auto.

Action Parameters

Parameter Description
Instructions The description of the image. This parameter is required.

Result

The generated image is returned in the Image field. The action also returns the used parameter values and token usage.