Background removal API

A black sports car cut out of its background by the API
The original photo of the car in a parking lot

Send a photo. Get back a transparent PNG at full resolution, from $0.002 an image.

20 free credits when you sign up. No card needed.

One request.
One PNG back.

Full resolution
The cutout comes back at the size you uploaded.
Failures cost nothing
A failed request refunds its credit automatically.
Usually 3 to 6 seconds
Measured on new images from 1 to 12 megapixels.
Nothing to install
No SDK, no jobs to poll, no webhooks to set up.
curl -X POST "https://api.nobg.space/v1/remove" \
  -H "X-API-Key: $NOBG_API_KEY" \
  -F "[email protected]" \
  --output result.png

Response

HTTP/2 200
content-type: image/png
x-credits-remaining: 749

<binary PNG, same dimensions as your upload>

The hard parts.

Real API results on a transparent background, with no retouching.

A woman with long blonde hair cut out on a transparent background

Hair

Soft edges and loose strands stay. The wall behind them goes.

The top of the Eiffel Tower cut out, with the sky removed through its lattice

Open steelwork

The sky is removed through the lattice too.

An alarm clock cut out, with the background removed through the centre of its ring

Gaps inside a shape

Holes come out clean, like the centre of this ring.

Moving from remove.bg?

NoBG accepts the same image_file upload field and the same API key header. If you upload files directly, change the URL and the key, and your code keeps working.

- https://api.remove.bg/v1.0/removebg+ https://api.nobg.space/v1/remove  -H "X-Api-Key: your_new_key"  -F "[email protected]"

Pay per image, or save with a plan.

Pay as you go

$10one time

500 credits

$0.020 per image

Credits never expire

Start free

Starter

$9a month

2,000 images

$0.0045 per image

1,000 extra credits for $10

Start free

Growth

$29a month

10,000 images

$0.0029 per image

1,500 extra credits for $10

Start free

Scale

$79a month

40,000 images

$0.0020 per image

2,500 extra credits for $10

Start free

Every account starts with free credits, and failed requests are refunded automatically. Monthly images reset each billing month. Cancel any time.

Questions

How much does the background removal API cost?

$0.02 per image on pay as you go, where $10 buys 500 credits that never expire. Monthly plans start at $9 for 2,000 images, and the Scale plan works out to about $0.002 per image.

How fast is it?

Most images take 3 to 6 seconds. The largest files can take about 12 seconds.

Do I get charged if a request fails?

No. A credit is reserved before processing and automatically refunded if the request fails or times out. You only pay for images that come back successfully.

Do you store the images I send?

NoBG does not save your images. They pass through our processing providers, Cloudflare and Modal, to create the cutout, and the result is returned in the response.

What image formats and sizes are supported?

JPG, PNG, WebP, GIF, BMP and TIFF, up to 20 MB and roughly 30 megapixels per image. The response is a full-resolution transparent PNG.

Is there a free tier?

Yes. Every new account starts with 20 free credits, so you can test the API end to end before paying anything.

Specifications

Endpoint
POST /v1/remove
Authentication
X-API-Key header
Max file size
20 MB
Max resolution
About 30 megapixels
Input formats
JPG, PNG, WebP, GIF, BMP, TIFF
Output
Transparent PNG
Rate limit
60 requests a minute per key
Billing
1 credit for each successful image

Start with 20 free credits.

Create a key and make your first request today. No card needed.

Get your API key
A woman with long red hair, cut out on a transparent background