Background Removal

Removes background of an image

API Endpoint


The Background Removal API can be called with an image URL or by sending image data as base64 encoded bytes. The API removes the entire background and leaves the main subject intact.
import roro
api = roro.Client("")

image = {"url": ""}
response = api.predict(image=image)
var api = roro.Client("");
var args = {
  "image": {
    "url": ""}

api.invoke("predict", args, function(response) {
    // do something with response

curl -X POST
     -H 'Content-Type: application/json'
     - d '{
             "image": {
                 "url": ""


The Background Removal API return a new image which has the main subject and black background. The response image is a stream of base64 encoded bytes.
    "content-type": "image/png",
    "data": "iVBORw0KGgoAAAA..."

API Information


Alon Burg, Gidi Shperber

Last Updated

September 10, 2017



More APIs