Developer REST API v1.0 • Now Live

The Fastest Background Removal & Image AI API

Integrate enterprise-grade neural background removal, watermark erasing, and face anonymization into your product with a single API call.

POST /api/v1/remove-background
curl -X POST https://bg.tools/api/v1/remove-background \
  -H "Authorization: Bearer bgt_live_YOUR_API_KEY" \
  -F "image=@photo.jpg" \
  -F "model=ganga" \
  -F "response_format=binary" \
  --output result.png

Built for High-Growth Production Workloads

Everything developers expect: zero customer image retention, ultra-low latency, and transparent pricing.

Sub-Second Processing

Native neural segmentation runs in pure C++ and ONNX runtimes. Returns hair-level transparent PNGs in under 600ms.

Zero Data Retention

Your images are processed purely in memory and wiped immediately. We never store customer photos or use them for training.

Enterprise Security

Built-in SSRF protection, decompression bomb defense, IP allowlisting, cryptographic key hashing, and idempotency key safety.

Simple, Predictable Token Pricing

All public API calls draw from your account credit balance. No recurring commitments or surprises.

View Credit Packs
Remove Background
1 Credit

Transparent PNG output up to 4K resolution.

Remove Watermark
1 Credit

Deep neural inpainting for stamps and overlays.

Face Blur / Anonymize
1 Credit

Multi-face detection & smooth blur or pixelate.

Image Conversion & Resize
0.25 Credit

Format converter, resize, crop, and compression.

Default Limits & Service Level Agreement

Metric
Default Standard Limit
Enterprise / Dedicated
Rate Limit
60 requests / minute
1,000+ req/min
Maximum Image File Size
30 MB per file
60 MB per file
Maximum Resolution
6000 x 6000 px (36 MP)
8K Ultra-HD
Uptime Target
99.9% Uptime
99.99% with SLA Guarantee
Active Keys Allowed
5 active keys per user
Unlimited

API Frequently Asked Questions

Everything you need to know about integrating bg.tools.

Do you store our images?

No. Images sent to the API are processed in volatile RAM and immediately discarded once the response is emitted. We never retain customer data.

Can I use sandbox keys for free testing?

Yes! Any key prefixed with bgt_test_ operates in sandbox mode with zero credit deduction so you can test end-to-end integration safely.

What happens if a request fails?

If the processing engine encounters an error or downstream failure, all reserved credits are automatically refunded to your ledger in an immediate transaction.

How does idempotency work?

Send the Idempotency-Key: <uuid> header with any POST request. If your network drops and you retry, the cached result is returned without double billing.

Ready to automate image processing?

Create an account in 30 seconds, generate your API key, and start processing in under 5 minutes.