Skip to main content
Remove background cuts the subject out of an image. Use it for product photos, avatars, and assets that go on other backgrounds. An SVG input returns an SVG.

$0.01

per request

PNG, JPG, WEBP, SVG

SVG in, SVG out. Up to 10 MB, 16 MP

POST /v1/images/removeBackground

endpoint

Try it

Get an API token on your profile page (it needs a positive API units balance) and set it once per terminal session:
Then run. The request removes the background from a public sample illustration:

Response

  • The result is a single image, not a data array. A raster input returns a raster file in the image_format you choose. An SVG input returns an SVG file.
  • Image URLs are temporary: files are kept for about 24 hours, so download them. See Limits and sizes.
  • credits is the number of API units charged for the request.

Parameters

The input image must be PNG, JPG, WEBP, or SVG, under 10 MB, up to 16 MP, with sides between 256 and 4096 px. An SVG smaller than 256 px is scaled up before processing. An SVG over the size limits, or an unsafe SVG, is rejected. See Input images.

Examples

An SVG input returns an SVG, so the result stays editable and scalable. image_format doesn’t affect it.
Raster results are lossless WebP by default. Set image_format to png for a PNG file.

Vectorize

Turn the cut-out into an editable SVG.

Pricing

Prices of every model and tool.