REST API · Live

Background Removal API

A production REST API that removes the background from any image and returns a clean transparent PNG. One HTTP call. Under 3 seconds. $0.0005 per image — 40× cheaper than Photoroom and roughly 400× cheaper than remove.bg's paid tiers. 500 free credits, no credit card.

$0.0005 / image < 3s typical 500 free credits No credit card Up to 50 MP SOC2-aligned infra
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.

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")

Pricing — 40× cheaper than Photoroom, 400× cheaper than remove.bg

ProviderFree tierPer-image costOutput formats
PixelAPI 500 credits, no card $0.0005 PNG · JPG · WebP · mask
Photoroom10/mo$0.020PNG · JPG
remove.bg50/mo$0.20–0.40 (volume-tiered)PNG · JPG · ZIP
Clipdrop100 (one-time)opaque (contact sales)PNG
api4ai100 (one-time)$0.05+PNG · JPG

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

What you get back

Transparent PNG by default

Alpha channel preserves hair, glass, lace, fur — the parts most APIs blow out. Works straight into Photoshop, Figma, Canva, Shopify product photos.

JPG with solid color

Pass output_format=jpeg&bg_color=#ffffff for marketplace-ready studio shots. White, transparent, or any hex.

WebP for the web

Same alpha + ~30% smaller files. output_format=webp.

Just the mask (advanced)

Need to composite yourself? Get the binary cutout mask back and skip the alpha channel. return_mask=true.

Common workflows

The Background Removal API is the foundation for these production workflows. Each links to a setup guide:

Photography studios

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

Marketing agencies

Catalog-ready cutouts for client product shoots, automated.

Eyewear / fashion

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

E-commerce

Drop-in Shopify / WooCommerce / BigCommerce automation.

Furniture catalogs

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

Real estate

Listing photo cleanup at scale. Sky + floor swap workflows.

Cosmetics & beauty

Bottle, palette, applicator cutouts. Reflective edges preserved.

Electronics

Cables, screens, glossy plastics — handled cleanly.

Food & delivery

Plate cutouts, transparent backgrounds for menu apps.

More use-case guides: all 33 industries →

Integrations & SDKs

Shopify

Bulk-process product images on upload via webhook.

Zapier

No-code workflow trigger with one click.

Make.com

Drag-and-drop background removal in Make scenarios.

Webflow

CMS auto-cutout for product detail pages.

BigCommerce

Catalog automation with the BC product API.

Magento

Adobe Commerce / Magento 2 plugin pattern.

Comparison vs alternatives

vs remove.bg

Same edge quality. ~400× cheaper. PNG/JPG/WebP/mask vs PNG/JPG only.

vs Photoroom

40× cheaper per image. Same speed. More output formats.

vs Replicate

Predictable per-image price vs Replicate's per-second compute billing.

vs withoutbg

Production SLA + invoicing for businesses. Free trial without credit card.

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. Recommended: exponential backoff starting at 2s, doubling on each retry up to 30s. 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

Frequently asked questions

How do I remove the background from an image via API?

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

What does the Remove Background API cost?

$0.0005 per image — 40× cheaper than Photoroom ($0.02) and roughly 400× cheaper than remove.bg's paid tiers. New accounts get 500 free credits with no credit card required, enough to test on real catalog data before paying anything.

How fast is the Remove Background API?

Most images complete in under 3 seconds end-to-end. There are no cold-start delays — capacity is kept warm 24/7 so your first request is as fast as your thousandth. Bulk concurrent requests are processed in parallel.

What output formats are supported?

Transparent PNG by default. You can also request JPG with a solid background color (any hex), WebP for ~30% smaller file sizes with the same alpha quality, or fetch the cutout mask alone for compositing pipelines.

Can I use it for high-resolution product photos?

Yes. The API accepts images up to 50 megapixels (≈8000×6000) and preserves edges on hair, glass, fur, and translucent objects via a multi-stage segmentation model. Hi-res inputs are processed at native resolution — no internal downsampling.

Is there a Python SDK?

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

What about rate limits?

Default 60 requests/minute on the free tier, 600 requests/minute on paid tiers. Higher limits available for batch processing — email [email protected] with your expected volume.

Do you remove watermarks or just backgrounds?

This endpoint removes the background and produces a transparent cutout. To remove a watermark, logo, or specific object from inside an image, use POST /v1/image/remove-object instead — it preserves the rest of the scene.

Can I get an invoice / GST?

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.

What happens if my image fails?

Failures are auto-detected by an output-quality QC layer. If the cutout would have been blank or corrupted, the job is rejected and credits are auto-refunded — you never pay for a broken result.

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