ben-v2-image API

Cut the background out of a photo and get a clean transparent PNG

ben/v2-image
PramaPredictions

About this model

BEN2 (Background Erase Network) is an open-source background-removal and foreground-segmentation model from Prama. According to the project, it uses a Confidence Guided Matting pipeline: a refiner network reprocesses the pixels where the base model is not confident, which is meant to give cleaner edges.

You send one image and receive a PNG with the background removed. It fits when you only need a cutout and have no need to choose which object to keep. If you want to pick an object with a text prompt, a segmentation model is the better neighbour; for hair-level edges or stylised graphics, compare it with the other background removers in this group.

Limits: up to 4 megapixels per request, and billing follows the image size in megapixels.

Use cases

  • Product photos for a catalog
  • Cutting out a person or object for a collage
  • Preparing assets for design tools

Input and output

Input
Image
Output
PNG with the background removed

Developer

Developer
Prama
Type
Predictions

ben-v2-image request example

This model type has a request format of its own; see the API documentation for details.