Automatically remove the background from your images, isolating the main subject with precision.

POST /image/rembg

Provides an efficient solution for removing backgrounds from images, making it easy to isolate the primary subject.

  • Leverages advanced image processing algorithms
  • Identifies and separates the foreground from the background
  • Supports common image formats
  • Processes images in real time

Ideal for professional use cases, including e-commerce product images, profile pictures, marketing assets, and more.

application/json

Body Required

Responses

  • 200 application/json

    Default Response

    Hide response attributes Show response attributes object
  • 400 application/json

    Invalid request error

    Hide response attributes Show response attributes object
  • 401 application/json

    Authorization error

    Hide response attributes Show response attributes object
  • 500 application/json

    Internal server error

    Hide response attributes Show response attributes object
POST /image/rembg
curl \
 -X POST https://api.itsrose.rest/image/rembg \
 -H "Content-Type: application/json" \
 -d '{"init_image":"https://scdn.lovita.io/rose_ayank_david.jpg"}'
Request examples
{
  "init_image": "https://scdn.lovita.io/rose_ayank_david.jpg"
}
Response examples (200)
{
  "status": true,
  "message": "success",
  "result": {
    "images": [
      "string"
    ],
    "backend_processing_time": 0
  }
}
Response examples (400)
{
  "status": false,
  "message": "string",
  "result": {}
}
Response examples (401)
{
  "status": false,
  "message": "string",
  "result": {}
}
Response examples (500)
{
  "status": false,
  "message": "string",
  "result": {}
}