Suprsonic

Background Removal

Remove the background from any image, at the image's own size or a smaller one you choose. Returns a transparent PNG. Returns the cut-out as base64 and as a hosted URL, with its format, width and height: a PNG with a transparent background, or WebP (transparent) or JPG (set on white) when you ask for them. Use to isolate the subject of an existing image. To create a new image use images. Cost: 2 credits, charged only when a call succeeds.

post/v1/images/remove-background

Request

  • Base URL
    https://suprsonic.ai
  • Auth
    HTTP bearer

Request body

image_urlstring required
size'auto' | 'small' | 'hd'
format'png' | 'webp' | 'jpg'

Response

The call's envelope: success, data (the capability's result), metadata, and credits_used (0 when the call did not succeed).

successboolean required
credits_usedinteger

Changes

No recorded changes to this operation across all 1 revision of this API.