100% remove.bg Compatible · Drop-in Replacement

Developer AI Background Removal API

Hair-level precision AI cutout. Drop-in replacement for existing remove.bg integrations with 100% matching params, sub-5s latency, and 80% lower cost.

Zero Refactor Migration
Identical parameter names and headers. Simply swap api.remove.bg for api.removebg.top in your codebase.
Save Up to 80% Cost
Official remove.bg charges $0.20–$1.99/image. RemoveBgTop starts at $0.05/call with permanent non-expiring credits.
Hair-Level Precision & Privacy
State-of-the-art BiRefNet v2 deep learning engine. Flawless intricate hair segmentation, 100% ephemeral processing.

Quickstart & Code Examples

Send a POST request with your API key to instantly receive a raw transparent PNG binary stream.

API Endpoints
POSThttps://api.removebg.top/v1.0/removebgPrimary
POSThttps://removebg.top/v1.0/removebgBackup
curl -H 'X-Api-Key: sk_your_api_key' \
     -F 'image_file=@photo.jpg' \
     -F 'size=auto' \
     -f https://api.removebg.top/v1.0/removebg -o output.png

Request Parameters

Supports multipart/form-data, application/x-www-form-urlencoded, and application/json payloads.

FieldTypeRequiredDescription
image_fileFile (Binary)One of threeBinary image file upload via multipart/form-data (up to 10MB, supports JPG, PNG, WebP).
image_urlString (URL)One of threePublicly accessible HTTP/HTTPS URL of the image to process.
image_file_b64String (Base64)One of threeBase64-encoded image data string (with or without data:image/... prefix).
sizeStringOptional (default: auto)Target resolution: auto (high-res), preview (fast thumbnail), full (highest resolution).
formatStringOptional (default: auto)Output format: auto (transparent PNG), png (transparent PNG), jpg (solid background).
bg_colorStringOptionalReplacement background color in hex (e.g. FFFFFF, 000000, 4A90E2). Defaults to transparent.

Request & Response Headers

HeaderTypeDescription
X-Api-KeyRequest HeaderYour API key (format: sk_...). Generate instantly in your account settings.
AuthorizationRequest HeaderStandard Bearer auth header: Bearer sk_... (alternative to X-Api-Key).
Content-TypeResponse HeaderBinary stream: image/png.
X-Credits-ChargedResponse HeaderCredits deducted for this request (usually 1.0).
X-Credits-RemainingResponse HeaderUpdated remaining credit balance in your account.

Status Codes & Errors

StatusMeaning & Solution
400 Bad RequestMissing image payload or invalid parameters
401 UnauthorizedMissing or invalid API key
402 Payment RequiredInsufficient credits. Please top up or upgrade plan
429 Too Many RequestsRate limit exceeded, please back off and retry
500 Server ErrorProcessing failed (no credits deducted)
Best Developer Pricing

Just $0.05 per API Call · Permanent Credits

No forced monthly expiration traps. Get 10 free calls upon signup. Scale your automated e-commerce workflows without breaking the bank.

Frequently Asked Questions

Everything you need to know about compatibility, billing, and privacy.

Start Building with RemoveBgTop API Today

Zero setup friction. Generate your API key in seconds and get 10 free test calls.