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.
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")
| Provider | Free tier | Per-image cost | Output formats |
|---|---|---|---|
| PixelAPI | 500 credits, no card | $0.0005 | 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) | opaque (contact sales) | PNG |
| api4ai | 100 (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).
Alpha channel preserves hair, glass, lace, fur — the parts most APIs blow out. Works straight into Photoshop, Figma, Canva, Shopify product photos.
Pass output_format=jpeg&bg_color=#ffffff for marketplace-ready studio shots. White, transparent, or any hex.
Same alpha + ~30% smaller files. output_format=webp.
Need to composite yourself? Get the binary cutout mask back and skip the alpha channel. return_mask=true.
The Background Removal API is the foundation for these production workflows. Each links to a setup guide:
Lightroom + Capture One automation. Bulk clean-cuts on RAW exports.
Catalog-ready cutouts for client product shoots, automated.
Glass + frame edge preservation, transparent PNG ready for Shopify.
Drop-in Shopify / WooCommerce / BigCommerce automation.
Heavy hi-res files, batch pipelines, transparent + drop-shadow.
Listing photo cleanup at scale. Sky + floor swap workflows.
Bottle, palette, applicator cutouts. Reflective edges preserved.
Cables, screens, glossy plastics — handled cleanly.
Plate cutouts, transparent backgrounds for menu apps.
More use-case guides: all 33 industries →
Bulk-process product images on upload via webhook.
No-code workflow trigger with one click.
Drag-and-drop background removal in Make scenarios.
CMS auto-cutout for product detail pages.
Catalog automation with the BC product API.
Adobe Commerce / Magento 2 plugin pattern.
Same edge quality. ~400× cheaper. PNG/JPG/WebP/mask vs PNG/JPG only.
40× cheaper per image. Same speed. More output formats.
Predictable per-image price vs Replicate's per-second compute billing.
Production SLA + invoicing for businesses. Free trial without credit card.
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
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.
$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.
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.
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.
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.
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.
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.
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.
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.
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.