Background Changer
The Background Changer API provides a seamless way to change the background of images, enabling quick and efficient background modifications.
Endpoint
POST /image/v1/change-background
Body
form data
-
image
(file
, required): The image fileOnly accepts PNG, JPEG or WebP file .
-
prompt
(string
, required): The prompt for describing the new background
Example
Request
POST /image/v1/change-background
x-access-key: YOUR_ACCESS_KEY
--form:"image": "<image file>",
--prompt: "<input text>"
Response
Success
HTTP/1.1 200 OK
{
"data": <base64 image>,
"success": true,
"message": "<process success message>"
}
Error
HTTP/1.1 400 Bad Request
Content-Type: application/json
{
"success": false,
"message": "<An error message containing the details>"
}