Picsart Remove Background
AI-generatedSummary
Remove the background from an image provided via URL and optionally customize the output with background color or image, blur, scaling, stroke, shadow, and output format.
Inputs
- Image URL (required) — URL of the image to process for background removal.
- Output Type (required) — Choose the output as either a cutout (image with background removed) or a mask.
- Bg Image URL — URL of the background image to use behind the cutout.
- Bg Color — Background color to apply behind the cutout if no background image is set.
- Bg Blur — Amount of blur to apply to the background (0-100).
- Bg Width — Width dimension of the background image or canvas.
- Bg Height — Height dimension of the background image or canvas.
- Scale — Method to scale the cutout on the background: fit or fill.
- Auto Center — Whether to automatically center the cutout on the background (true/false).
- Stroke Size — Thickness of the stroke around the cutout (0-100).
- Stroke Color — Color of the stroke around the cutout.
- Stroke Opacity — Opacity of the stroke around the cutout (0-100).
- Shadow — Position or style of shadow applied to the cutout.
- Shadow Opacity — Opacity of the shadow (0-100).
- Shadow Blur — Amount of blur applied to the shadow (0-100).
- Shadow Offset X — Horizontal offset of the shadow (-100 to 100).
- Shadow Offset Y — Vertical offset of the shadow (-100 to 100).
- Format — Output image format: JPG, PNG, or WEBP.
Output shape
a single binary file containing the processed image with background removed or masked
The output includes binary data of the resulting image and JSON containing original image URL and result metadata. API key for Picsart service is required. Errors include authentication failures, rate limits, or invalid input parameters.