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.
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")
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.
| Provider | Free tier | Per-image cost | Output formats |
|---|---|---|---|
| PixelAPI | 500 credits, no card | $0.0025 | PNG · JPG · WebP · mask |
| Photoroom | 10/mo | $0.020 | PNG · JPG |
| remove.bg | 50/mo | $0.20–$0.40 (volume-tiered) | PNG · JPG · ZIP |
| Clipdrop | 100 (one-time) | contact sales | PNG |
| Cutout.pro | limited free tier | see cutout.pro/pricing | PNG · JPG |
| Pixelcut | 100 (one-time) | ~$0.050 | PNG · 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).
Every background erase call returns a production-ready asset. No manual cleanup required.
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.
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.
Same alpha quality, ~30% smaller file size. Use output_format=webp. Ideal for e-commerce page speed and Core Web Vitals.
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.
Multipart form-data. Accepts JPEG, PNG, WebP, HEIC, TIFF. Up to 50 megapixels (≈8000×6000) with no internal downsampling.
Pass image_url=https://… and the API fetches and processes it server-side. Useful for CDN-hosted catalogs and batch pipelines.
Pass image_base64=… for environments where multipart is inconvenient, such as serverless functions or mobile backends.
The background eraser API is the foundation for these production workflows. Each links to a full setup guide:
Lightroom and Capture One automation. Bulk clean-cuts on RAW exports.
Catalog-ready cutouts for client product shoots, automated at scale.
Glass and frame edge preservation, transparent PNG ready for Shopify.
Drop-in Shopify, WooCommerce, and BigCommerce background eraser automation.
Heavy hi-res files, batch pipelines, transparent and drop-shadow output.
Listing photo cleanup at scale. Sky and floor swap pipelines.
Bottle, palette, and applicator cutouts with reflective edge preservation.
Cables, screens, and glossy plastics — clean cutouts every time.
Plate and dish cutouts, transparent backgrounds for menu apps.
More industry guides: all 33 industries →
Bulk-erase product image backgrounds on upload via webhook.
No-code background eraser trigger with one click — no developer required.
Drag-and-drop background removal in Make scenarios.
CMS auto-cutout for product detail pages.
Catalog automation with the BigCommerce product API.
Adobe Commerce and Magento 2 background eraser plugin pattern.
Same edge quality at roughly 400× lower cost. PNG, JPG, WebP, and mask output vs PNG/JPG only. 500 free credits vs 50/month.
8× cheaper per image. Same speed. Four output formats vs two. No monthly subscription required to access the API.
Transparent per-image pricing vs opaque enterprise quotes. Predictable costs for high-volume pipelines.
Production SLA plus GST invoicing for businesses. 500 free credits vs withoutbg's limited trial, no credit card required.
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 status | Meaning | Action |
|---|---|---|
200 queued | Job accepted | Poll GET /v1/image/{id} until status=completed |
400 | Invalid input (unsupported format, size exceeded) | Check image file and parameters |
401 | Bad or missing API key | Verify Authorization: Bearer … header |
402 | Insufficient credits | Top up at /pricing |
429 | Rate limit exceeded | Back off per Retry-After header value |
500 | Server error — credits not charged | Retry; credits auto-refunded if QC detects a bad output |
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.
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.
$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.
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.
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.
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.
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.
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].
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.
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.
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.
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.