
Erase.bg API: Effortless Background Removal
Instantly remove backgrounds from any image with a single API call. Integrate Erase.bg into your workflow and speed up your creative process.
Quick & Flexible API Integration
Integrate the Erase.bg API into your website or app in minutes. Our solution supports multiple programming languages, such as React, Javascript, Python, and more, so high-quality image background removal fits seamlessly into your workflow.
<PixelBinImage
url="https://cdn.pixelbin.io/v2/[YOUR_CLOUD_NAME]/[YOUR_ZONE_SLUG]/erase.bg()/[YOUR_FILE_PATH]
/>
import Pixelbin from "@pixelbin/core";
const obj = {
cloudName: "[YOUR_CLOUD_NAME]",
zone: "[YOUR_ZONE_SLUG]",
version: "v2",
transformations: [{ "name": "bg", "plugin": "erase" }],
filePath: "[YOUR_FILE_PATH]",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.default.utils.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/[YOUR_CLOUD_NAME]/[YOUR_ZONE_SLUG]/erase.bg()/[YOUR_FILE_PATH]
from pixelbin.utils.url import obj_to_url
obj = {
cloudName: "[YOUR_CLOUD_NAME]",
zone: "[YOUR_ZONE_SLUG]",
version: "v2",
transformations: [{ "name": "bg", "plugin": "erase" }],
filePath: "[YOUR_FILE_PATH]",
baseUrl: "https://cdn.pixelbin.io",
}
url = obj_to_url(obj)
# url
# https://cdn.pixelbin.io/v2/[YOUR_CLOUD_NAME]/[YOUR_ZONE_SLUG]/erase.bg()/[YOUR_FILE_PATH]
const Pixelbin = require("@pixelbin/admin");
const obj = {
cloudName: "[YOUR_CLOUD_NAME]",
zone: "[YOUR_ZONE_SLUG]",
version: "v2",
transformations: [{"name":"bg","plugin":"erase"}],
filePath: "[YOUR_FILE_PATH]",
baseUrl: "https://cdn.pixelbin.io",
};
const url = Pixelbin.url.objToUrl(obj);
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/erase.bg()/images/transformation/lady.jpeg
import com.pixelbin.url.UrlObj
import com.pixelbin.Utils
import com.pixelbin.transformation.TransformationObj
fun main(){
val obj = UrlObj(
cloudName = "[YOUR_CLOUD_NAME]",
zone = "[YOUR_ZONE_SLUG]",
version = "v2",
transformation = arrayListOf(
TransformationObj( plugin = "erase", name = "bg", )
),
filePath = "[YOUR_FILE_PATH]",
baseUrl = "https://cdn.pixelbin.io"
)
val url = Utils.objToUrl(obj)
}
// url
// https://cdn.pixelbin.io/v2/dummy-cloudname/FIDrmb/erase.bg()/images/transformation/lady.jpeg
package main
import (
"fmt"
"github.com/pixelbin-dev/pixelbin-go/v2/sdk/utils/url“
)
func main() {
obj:= map[string]interface{}{
"cloudName": "[YOUR_CLOUD_NAME]",
"zoneSlug": "[YOUR_ZONE_SLUG]",
"version": "v2",
"transformations": []map[string]interface{}{
},
"filePath": "[YOUR_FILE_PATH]",
"baseUrl": "https://cdn.pixelbin.io",
"options": map[string]interface{}{},
}
urlstring, err := url.ObjToUrl(obj)
if err != nil {
fmt.Println(err)
}
}
// url
// https://cdn.pixelbin.io/v2/[YOUR_CLOUD_NAME]/[YOUR_ZONE_SLUG]/erase.bg()/[YOUR_FILE_PATH]
using System;
using System.Collections.Generic;
using System.IO;
using Pixelbin.Utils;
namespace ExampleNamespace
{
class ExampleClass
{
static void Main(string[] args)
{
UrlObj obj = new UrlObj(
version: "v2",
cloudName: "[YOUR_CLOUD_NAME]",
filePath: "[YOUR_FILE_PATH]",
zone: "[YOUR_ZONE_SLUG]",
baseUrl: "https://cdn.pixelbin.io",
transformations: new List<UrlTransformation>() {
}
);
string url = Url.ObjToUrl(obj);
}
}
}
// url
// https://cdn.pixelbin.io/v2/[YOUR_CLOUD_NAME]/[YOUR_ZONE_SLUG]/erase.bg()/[YOUR_FILE_PATH]
<?php
require 'vendor/autoload.php';
use Pixelbin\Utils\Url;
$obj = [
cloudName => "[YOUR_CLOUD_NAME]",
zone => "[YOUR_ZONE_SLUG]",
version => "v2",
options => [],
transformations => [
],
filePath => "[YOUR_FILE_PATH]",
baseUrl => "https://cdn.pixelbin.io",
];
$url = Url::obj_to_url($obj);
// url
// https://cdn.pixelbin.io/v2/[YOUR_CLOUD_NAME]/[YOUR_ZONE_SLUG]/erase.bg()/[YOUR_FILE_PATH]
What is the Background Removal API?
The Erase.bg image background remover API makes photo editing easy. It automatically removes backgrounds from any image, saving time and improving quality. The API is simple to integrate, and works with a wide range of platforms and tools.
Automatic Background Removal
Remove image backgrounds instantly with a single API call


High-Quality Output
Get consistently sharp and clear images, every time
Bulk Image Processing
Process multiple images at once to meet large-scale requirements


Seamless Integration
Easily integrate with popular platforms and start using the API right away
Erase.bg API: Built for Easy Image Enhancement
Adaptable to Any Workflow












Frequently Asked Questions
Find answers to some of the most common questions about the Erase.bg API. If you can’t find what you’re looking for, reach out to us at support@pixelbin.io
What is the Erase.bg API?
How many credits are available to new users?
How can the Erase.bg API be integrated into my website or app?
Can I use Erase.bg API for creative projects like sticker making?
What makes Erase.bg API unique in terms of background removal?
How do I set up the Erase.bg API?
Can the Erase.bg API be customized to fit specific needs?