Replace Background
Image Editor
Replace Background
POST
Replace Background
Replace the background of images according to your prompt.
HTTP status codes in the 2xx range indicate that the request has been successfully accepted. A status code of 400 means there is an error with the request parameters, while status codes in the 5xx range indicate internal server errors.
You can obtain the image URL in the

Request Headers
Enum:
application/jsonBearer authentication format, for example: Bearer {{API Key}}.
Request Body
Optional extra parameters for the request.
The base64 of original image, with a maximum resolution of 2048 x 2048 and a maximum file size of 30 Mb (width <= 4096, height <= 4096).
Response
The Base64-encoded content of the returned image.
The returned image type.
Enum:
Enum:
png, webp, jpegExample
This API allows you to replace the background of images according to your prompt. Try it in playground.Request:
image_file field of the response in base64 format.
Response:

