REST API · Live

Best Background Eraser API for Developers

Looking for the best background eraser API? PixelAPI removes the background from any image in a single HTTP call and returns a clean transparent PNG in under 3 seconds. At $0.0025 per image — 8× cheaper than Photoroom and a fraction of remove.bg — it is the most cost-effective background eraser API available today. 500 free credits, no credit card required. Native SDKs for Python, Node.js, PHP, Ruby, and Go so you can ship in minutes, not days.

$0.0025 / image < 3 s typical 500 free credits No credit card Up to 50 MP Hair & glass edge support
Get an API key (free) Quick start See pricing API docs

Quick Start — One API Call

Sign up, copy your key from the dashboard, and POST your image. The endpoint returns a generation_id; poll until status=completed, then download the transparent PNG from output_url.

curl -X POST https://api.pixelapi.dev/v1/image/remove-background \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "[email protected]"
# Response: {"generation_id": "uuid", "status": "queued", ...}

# Poll until completed
curl https://api.pixelapi.dev/v1/image/UUID \
  -H "Authorization: Bearer YOUR_API_KEY"
# Response: {"status": "completed", "output_url": "https://..."}
pip install pixelapi
---
from pixelapi import PixelAPI

client = PixelAPI(api_key="YOUR_API_KEY")
result = client.remove_background(image="product.jpg")
result.save("product_cutout.png") # transparent PNG
npm install pixelapi
---
import { PixelAPI } from "pixelapi";

const client = new PixelAPI({ apiKey: process.env.PIXELAPI_KEY });
const result = await client.removeBackground({ image: "./product.jpg" });
await result.save("product_cutout.png"); // transparent PNG
composer require pixelapi/pixelapi
---
<?php
use PixelAPI\Client;

$client = new Client(getenv("PIXELAPI_KEY"));
$result = $client->removeBackground(["image" => "product.jpg"]);
file_put_contents("product_cutout.png", $result->getBody());
gem install pixelapi
---
require "pixelapi"

client = PixelAPI::Client.new(api_key: ENV["PIXELAPI_KEY"])
result = client.remove_background(image: "product.jpg")
File.binwrite("product_cutout.png", result.body)
go get github.com/pixelapi/pixelapi-go
---
import "github.com/pixelapi/pixelapi-go"

client := pixelapi.New("YOUR_API_KEY")
result, err := client.RemoveBackground("product.jpg")
if err != nil { panic(err) }
result.Save("product_cutout.png")

Best Background Eraser API: Pricing Comparison

PixelAPI's pricing follows a simple rule: well below the per-image cost of the cheapest mainstream rival, so you always get the best value without any quality trade-off.

ProviderFree tierPer-image costOutput formats
PixelAPI 500 credits, no card $0.0025 PNG · JPG · WebP · mask
Photoroom10/mo$0.020PNG · JPG
remove.bg50/mo$0.20–$0.40 (volume-tiered)PNG · JPG · ZIP
Clipdrop100 (one-time)contact salesPNG
Cutout.prolimited free tiersee cutout.pro/pricingPNG · JPG
Pixelcut100 (one-time)~$0.050PNG · JPG

Pricing verified from each rival's public pricing page in May 2026. PixelAPI's per-image price is set far below the cheapest mainstream rival — 8× cheaper than Photoroom (at $0.02) — per our pricing principle — never below (signals low quality), never above (not competitive).

What You Get Back

Every background erase call returns a production-ready asset. No manual cleanup required.

Transparent PNG by default

Full alpha channel preserves hair strands, glass, lace, fur, and reflective surfaces — the edges most tools blow out. Drops straight into Photoshop, Figma, Canva, and Shopify product listings.

JPEG with solid background

Pass output_format=jpeg&bg_color=#ffffff for white-background studio shots. Any hex color works — white, grey, custom brand color. Meets Amazon's pure-white product image requirement out of the box.

WebP for the web

Same alpha quality, ~30% smaller file size. Use output_format=webp. Ideal for e-commerce page speed and Core Web Vitals.

Binary cutout mask

Pass return_mask=true to receive a greyscale mask image instead of the composited PNG. Full control for custom rendering pipelines in Photoshop, Figma, or your own stack.

Inputs Accepted

File upload

Multipart form-data. Accepts JPEG, PNG, WebP, HEIC, TIFF. Up to 50 megapixels (≈8000×6000) with no internal downsampling.

URL input

Pass image_url=https://… and the API fetches and processes it server-side. Useful for CDN-hosted catalogs and batch pipelines.

Base64

Pass image_base64=… for environments where multipart is inconvenient, such as serverless functions or mobile backends.

Common Workflows

The background eraser API is the foundation for these production workflows. Each links to a full setup guide:

Photography studios

Lightroom and Capture One automation. Bulk clean-cuts on RAW exports.

Marketing agencies

Catalog-ready cutouts for client product shoots, automated at scale.

Eyewear & fashion

Glass and frame edge preservation, transparent PNG ready for Shopify.

E-commerce

Drop-in Shopify, WooCommerce, and BigCommerce background eraser automation.

Furniture catalogs

Heavy hi-res files, batch pipelines, transparent and drop-shadow output.

Real estate

Listing photo cleanup at scale. Sky and floor swap pipelines.

Cosmetics & beauty

Bottle, palette, and applicator cutouts with reflective edge preservation.

Electronics

Cables, screens, and glossy plastics — clean cutouts every time.

Food & delivery

Plate and dish cutouts, transparent backgrounds for menu apps.

More industry guides: all 33 industries →

Integrations & SDKs

Shopify

Bulk-erase product image backgrounds on upload via webhook.

Zapier

No-code background eraser trigger with one click — no developer required.

Make.com

Drag-and-drop background removal in Make scenarios.

Webflow

CMS auto-cutout for product detail pages.

BigCommerce

Catalog automation with the BigCommerce product API.

Magento

Adobe Commerce and Magento 2 background eraser plugin pattern.

Comparison vs Alternatives

vs remove.bg

Same edge quality at roughly 400× lower cost. PNG, JPG, WebP, and mask output vs PNG/JPG only. 500 free credits vs 50/month.

vs Photoroom

8× cheaper per image. Same speed. Four output formats vs two. No monthly subscription required to access the API.

vs Clipdrop

Transparent per-image pricing vs opaque enterprise quotes. Predictable costs for high-volume pipelines.

vs withoutbg

Production SLA plus GST invoicing for businesses. 500 free credits vs withoutbg's limited trial, no credit card required.

Rate Limits & Error Handling

Default 60 requests/minute on the free tier, 600 on paid tiers. Exceeding the limit returns HTTP 429 with a Retry-After header. The recommended pattern: exponential backoff starting at 2 s, doubling on each retry up to 30 s. The Python and Node SDKs handle this automatically.

# Python SDK auto-retries 429 with backoff
from pixelapi import PixelAPI
client = PixelAPI(api_key="...", max_retries=4)
result = client.remove_background(image="bulk.jpg") # auto-retries on 429

Common HTTP error codes:

HTTP statusMeaningAction
200 queuedJob acceptedPoll GET /v1/image/{id} until status=completed
400Invalid input (unsupported format, size exceeded)Check image file and parameters
401Bad or missing API keyVerify Authorization: Bearer … header
402Insufficient creditsTop up at /pricing
429Rate limit exceededBack off per Retry-After header value
500Server error — credits not chargedRetry; credits auto-refunded if QC detects a bad output

Frequently Asked Questions

What is the best background eraser API?

PixelAPI's background eraser API is the most cost-effective option at $0.0025 per image — 8× cheaper than Photoroom ($0.02) and a fraction of remove.bg's pay-as-you-go rate. It returns a transparent PNG in under 3 seconds, supports images up to 50 megapixels, preserves fine edges including hair and glass, and ships native SDKs for Python, Node, PHP, Ruby, and Go.

How do I call the background eraser API?

POST your image to https://api.pixelapi.dev/v1/image/remove-background with your API key as a Bearer token. The endpoint returns a generation_id. Poll GET /v1/image/{id} until status=completed, then download the transparent PNG from output_url. See the Quick Start section above for code in 6 languages.

What does the background eraser API cost?

$0.0025 per image (0.5 credits). New accounts receive 500 free credits with no credit card required. There are no monthly minimums — you only pay for images you process. Volume discounts are available for accounts processing over 100,000 images per month.

How fast does the background eraser API respond?

Most images complete in under 3 seconds end-to-end. Capacity is kept warm 24/7 so there are no cold-start delays. Concurrent batch requests are processed in parallel — send as many simultaneous requests as your rate limit allows.

What image formats does the background eraser API accept?

JPEG, PNG, WebP, HEIC, and TIFF inputs up to 50 megapixels. Submit via multipart file upload, a public URL (image_url=…), or base64 string (image_base64=…). Output can be transparent PNG, JPEG with a solid background color (any hex), WebP for smaller file sizes, or a binary cutout mask for custom compositing.

How does PixelAPI handle hair, fur, and semi-transparent edges?

The API uses a multi-stage segmentation pipeline that preserves fine edges including individual hair strands, fur, lace, glass, and translucent objects. Hi-res inputs are processed at native resolution — no internal downsampling — so 50 MP product shots retain full edge detail throughout.

Is there a Python SDK for the background eraser API?

Yes — pip install pixelapi. Official SDKs are also available for Node.js (npm install pixelapi), PHP (Composer), Ruby (Gem), and Go (go get github.com/pixelapi/pixelapi-go). All SDKs handle authentication, polling, retry-on-429, and binary file output automatically.

What are the rate limits?

Free tier: 60 requests per minute. Paid tiers: 600 requests per minute. Exceeding the limit returns HTTP 429 with a Retry-After header. The Python and Node SDKs retry automatically with exponential backoff. Higher limits for bulk pipelines are available on request — email [email protected].

Can I get the cutout mask instead of a transparent PNG?

Yes. Pass return_mask=true to receive a binary greyscale mask image instead of the composited transparent PNG. This is useful for custom compositing pipelines in Photoshop, Figma, or your own rendering stack where you want full control over how the subject is blended with a new background.

What happens if a background erase job fails?

An automated QC layer checks output quality after every job. If the cutout would be blank, corrupted, or clearly wrong, the job is rejected and your credits are automatically refunded. You never pay for a failed result. Failed jobs return status=failed with an error_code field explaining the reason.

Can I use the background eraser API for Amazon and Shopify listings?

Yes. Pass output_format=jpeg&bg_color=#ffffff for a pure-white JPEG that meets Amazon's main image requirements. For Shopify, you can request transparent PNGs to composite over your theme's background colors. Both formats are returned at the original input resolution.

Do you issue GST invoices?

Yes. PixelAPI is a registered Indian business. We issue GST invoices — 18% IGST for international clients, CGST/SGST for domestic. Invoice download is built into the dashboard with no manual request needed.

Start free — 500 credits, no card Read full API docs Compare all plans