Overview
This endpoint allows you to transform existing images based on text descriptions. You can apply transformations, add elements, or modify the image content according to your prompt.Authentication
This endpoint requires authentication using a Bearer token.Your API key in the format:
YOUR_API_KEYMust be set to
application/jsonRequest Body
An array of image URLs to be edited. Currently supports one image at a time.
The text prompt describing the desired changes or transformations to the image
Optional mask image URL to specify which parts of the image should be edited
The number of edited images to generate. Must be between 1 and 10.
The quality of the generated images. Options:
low, medium, highThe size of the generated images. Common sizes:
256x256, 512x512, 1024x1024, 1792x1024, 1024x1792Optional background setting for the image
Whether to enable synchronous mode. If
true, the response will wait until the image is generated. If false, returns immediately with a task ID.Request Example
Response
Successful response when
enable_sync_mode is falseSuccessful response when
enable_sync_mode is true
