Remove Background
The Remove Background service accurately segments the foreground from an image and implements and removes the background.
How to use
Please invoke this endpoint with a POST request.
The headers of the request must include an API key in the authorization field. The body of the request must be
multipart/form-data, and the accept header should be set to one of the following:
image/*to receive the image in the format specified by theoutput_formatparameter.application/jsonto receive the image encoded as base64 in a JSON response.
The body of the request must include:
image
Optionally, the body of the request may also include:
output_format
Note: for more details about these parameters please see the request schema below.
Credits
Flat rate of 5 credits per successful generation. You will not be charged for failed generations.
Authorizations
Your Stability API key, sent as a bearer token in the Authorization header.
Headers
Body
Response
Background successfully removed.
The bytes of the generated image.
The finish-reason and seed will be present as headers.