🛠️

Background Remover API

active

Remove image backgrounds instantly with AI precision. Perfect for product photos, portraits, and e-commerce.

API in Onetool3 credits/call
Provider
API in One
Pricing
~$0.006 per image (3 credits)
Speed
2–5 seconds
Output
image

Quick Start

Send a request to the Background Remover API:

bash
curl -X POST https://apiin.one/api/v1/images/tools/remove-bg \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "bg-remover",
  "image": "https://example.com/photo.jpg",
  "output_format": "png"
}'

API Endpoint

POST/api/v1/images/tools/remove-bg
Send a POST request with your API key to generate content using Background Remover.

Headers

HeaderTypErforderlichBeschreibung
AuthorizationstringErforderlichBearer YOUR_API_KEY
Content-TypestringErforderlichapplication/json

Body Parameters

ParameterTypErforderlichBeschreibung
modelstringErforderlichModel identifier: "bg-remover"
imagestringErforderlichURL of the image to remove background from
output_formatstringOptionalOutput format: png, webp (Standard: png)

Example Request

json
{
  "model": "bg-remover",
  "image": "https://example.com/photo.jpg",
  "output_format": "png"
}

Example Response

Successful task creation response.

{
  "code": 200,
  "message": "success",
  "data": {
    "task_id": "n19xxxx_bgremove",
    "status": "IN_PROGRESS"
  }
}

Check Task Status

For asynchronous tasks, poll the status endpoint to check when your task is complete:

GET/api/v1/tasks/{task_id}
Returns the current status of a generation task. Poll until status is 'completed' or 'failed'.
bash
curl https://apiin.one/api/v1/tasks/task_abc123 \
  -H "Authorization: Bearer aio_your_key"

Use Cases

  • Automate product photo editing for e-commerce catalogs
  • Remove backgrounds from user-uploaded profile photos
  • Create transparent PNG assets for design workflows
  • Batch process thousands of images for marketplace listings

API Tester

Test the Background Remover API directly from your browser:

API-PlaygroundPOST

Error Codes

{
  "error": {
    "code": 400,
    "message": "Invalid parameters",
    "type": "invalid_request"
  }
}

Frequently Asked Questions

How accurate is the background removal?

The AI achieves near-perfect edge detection on most images, including fine details like hair and transparent objects. Results are comparable to manual editing.

What image formats are supported?

Input: JPEG, PNG, WebP via URL. Output: PNG (with transparency) or WebP. Set the "output_format" parameter to choose.

How much does background removal cost?

Each image costs 3 credits (~$0.006), making it one of the cheapest background removal APIs available. Free credits included on sign up.

Can I process images in batch?

Yes. Send multiple API requests concurrently to process images in parallel. There are no rate limits on your requests.

Why Use Background Remover Through API in One?

1One of the cheapest background removal APIs on the market
2No rate limits — process thousands of images in parallel
3Near-perfect edge detection including hair and transparent objects
4Output in PNG (with transparency) or WebP

Ready to use Background Remover?

Get Your API Key →