Edit an Image
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The model to use for image edit. Check models
A text description of the desired image(s).
The image(s) to edit. Must be a supported image file or an array of images. Each image should be a png, webp, or jpg file less than 50MB. You can provide up to 16 images.
The number of images to generate. Must be between 1 and 10.
1 <= x <= 10The size of the generated images
The quality of the image that will be generated. Auto will automatically select the best quality for the given model.
auto, high, medium, low, standard The format in which the generated images are returned. Some of the models only return the image in base64 format.
url, b64_json A unique identifier representing your end-user, which can help to monitor and detect abuse.
The name to display on the trace. If not specified, the default system name will be used.
Array of fallback models to use if primary model fails
Retry configuration for the request
Cache configuration for the request.
Load balancer configuration for the request.
Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
Represents an image edit response from the API.
The Unix timestamp (in seconds) of when the image was created.
The list of generated images.
The output format of the image generation
The size of the image generated
The quality of the image generated
The token usage information for the image generation.