Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Background Removal

Remove backgrounds from images

Model Overview

Background Removal is a high-quality image segmentation model designed to isolate subjects from their background with precise, production-ready edge handling.

It delivers clean extractions across a wide range of photography scenarios, preserving fine details such as hair, soft edges, and semi-transparent elements. Well suited for both creative and high-volume image workflows, including product photography and e-commerce, flexible mask parameters enable further refinement for compositing, design, or downstream use.

Best Use Cases

  • E-commerce product photography. Cut products onto transparent or white backgrounds for marketplace listings with consistent, clean edges.

  • Portraits and people. Isolate subjects with natural hair and clothing edges for headshots, ads, and profile images.

  • High-volume cutout pipelines. Process large batches of user-submitted or supplier images with the same result every time.

  • Design and marketing assets. Produce cutouts and masks for ads, thumbnails, and layered artwork.

  • Fine and translucent detail. Handle fur, glass, veils, and soft edges that need a true alpha rather than a hard mask.

Endpoint

https://api.topazlabs.com/image/v1/matting/async

Model Parameters

Parameter
Type
Required / Default
Accepted values
Description

model

string

Required

"RemoveBG"

—

output_type

string

Optional Default: rgba

"rgba", "alpha"

rgba returns the subject on a transparent background as an RGBA PNG. alpha returns a mask of the subject.

For request parameters shared by every image endpoint, see Request Parameters. The full schema is also available in our API Reference page.

Model Pricing

Background Removal costs 1 credit per every 24 MP of generated output. The below table includes a list of common output resolutions with associated credit costs.

Resolution
Typical Source
Output MP
Credits

640×480

VGA

0.31

1

1280×720

720p

0.92

1

1920×1080

1080p

2.07

1

2560×1440

1440p

3.69

1

3840×2160

4K UHD

8.29

1

4000×3000

12 MP phone

12.00

1

5472×3648

20 MP camera

19.96

1

6000×4000

24 MP camera

24.00

1

7680×4320

8K UHD

33.18

2

7952×5304

42 MP camera

42.18

2

8192×5464

45 MP camera

44.76

2

9504×6336

61 MP camera

60.22

3

11648×8736

100 MP medium format

101.76

5

Output MP
1
4
8
16
24
32
40

Credits

1

1

1

1

1

2

2

For more accurate credit cost estimates, we recommend using our Credit Calculator.

Example Request

Limitations

This model accepts up to 256 MP input and output. Output is always PNG.

Helpful Resources

Image Quickstart

Quickly get started with our Image API.

Credit Calculator

Pricing for specific outputs, batches, and more.

Last updated

Was this helpful?