POST
/
api
/
ai
/
images
/
modify
/
v3
/
extend-image

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multi-part/form-data
existing_image
string

The image to be modified or edited.`.

output_type
enum<string>

The type of output to be generated. You can choose between url and blob . URL will return a cloud-hosted Temporary URL for the generated image, you need to handle the image download on your end. blob will return the image as a base64 encoded string.

Available options:
url,
blob
leftExtend
integer

Percentage to extend the image on the left side. If the percentage value results in a number that is greater than 512px, it will default to 512px.

rightExtend
integer

Percentage to extend the image on the right side. If the percentage value results in a number that is greater than 512px, it will default to 512px.

topExtend
integer

Percentage to extend the image on the top. If the percentage value results in a number that is greater than 512px, it will default to 512px.

bottomExtend
integer

Percentage to extend the image on the bottom. If the percentage value results in a number that is greater than 512px, it will default to 512px.

description
string

The description of the modification to be applied to the image. You can add in the modification parameters as a string based description.

Response

200 - application/json
status
string

Status indicating the success of the image generation.

image
string

The generated image.

processing_time
integer

The time taken to process the request, in milliseconds.

processing_id
string

A universally unique identifier for the request. This can be used to track the request in the logs.

processing_count
integer

The number of times the request has been processed. This is what is considered in the Billing Process. This is either the number of times the image is processed or the number of words that the server processes.