Edit Image

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

Action Settings

Setting Description
Model Enum, required. The Model's resource name. This serves as an ID for the Model to use.
Prompt String, required. The user-provided text to be processed by the Model.
Aspect Ratio Enum, optional. The aspect ratio of the edited image.
Image Size Enum, optional. The size of the edited image.

Action Parameters

Parameter Description
BinaryContent Binary, required. The binary content of the image to be edited.
MimeType Enum, required. The MIME type of the image to be edited.

Result

The result contains the following fields: Image_ResponseId, Image_BinaryContent, Image_FinishReason, Image_TotalTokenCount, Image_ModelVersion.