Overview
Remove background from any image. Returns transparent PNG.
Credits
2 credits per call
Providers
Rembg
SDK Method
client.remove_background(...)
Parameters
image_urlRequiredstring
URL to image.
sizeselect (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.