Edit Image

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

Action Settings

Setting Description
Model The ID of the model to use for editing.
Output Size The size of the result image.
Background Determines whether the image should have transparent Background.
Output Format The format of the generated images.
Output Compression The compression level - from 0 to 100%.
Moderation Content moderation level.

Action Parameters

Parameter Description
Instructions The description of the image. This parameter is required.
Image The image to edit. This parameter is required.
InputFormat The format of the input image. This parameter is required.
Mask The mask image with the transparent area to edit. This parameter is required.

Result

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