Image Segmentation

Performs multi-matting segmentation on the input image, identifying and isolating specific classes like hair, clothes, or sky.

Body Params
file

Source image file (binary). (If this parameter is present, the other image source parameters must be empty.)

uri
length between 1 and 2083

Source image URL. (If this parameter is present, the other image source parameters must be empty.)

string
deprecated

Deprecated. Source image ID of an image previously uploaded to Picsart or result image ID from a different API. (If this parameter is present, the other image source parameters must be empty.)

string
enum
required

The type of segmentation to perform. Must be one of the following values:

  • hair
  • skin
  • lips
  • teeth
  • eyes
  • clothes
  • glasses
  • background
  • foreground
  • sky
Responses

Language
Credentials
Header
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json