Back to APIs

Unified Agent API

Background Removal

Background Removal

Remove background from any image using AI segmentation.

POST/v1/images/remove-background

Overview

Remove background from any image. Returns transparent PNG.

Credits

2 credits per call

Providers

Rembg

SDK Method

client.remove_background(...)

Parameters

image_urlRequired

string

URL to image.

size

select (default: auto)

Output resolution.

Auto
Small
HD

Example Response

{
  "success": true,
  "data": {
    "image_base64": "iVBORw0KGgoAAAANSUhEUg...(base64 PNG with transparent background)",
    "format": "png",
    "content_type": "image/png"
  },
  "metadata": {
    "provider_used": "rembg",
    "providers_tried": [
      "rembg"
    ],
    "mode_used": null,
    "response_time_ms": 8500,
    "request_id": "req_4fd62009"
  },
  "credits_used": 2
}

Get Started

Use this API through the O-mega platform. Create an API key in your dashboard, then call the endpoint with your key in the Authorization header.

Try Background Removal

Test Background Removal in the interactive playground. No setup required.

Open Playground
Background Removal API | Unified Agent APIs | founden