Guides
Remove Background
ShuttleAI provides an API to remove the background from images using our AI model. This guide will walk you through how to use the API to remove the background from an image.
Endpoint
POST https://api.shuttleai.com/v1/removebg
Request
To remove the background from an image, send a POST request to the endpoint with the following JSON body:
image
: The image to process, encoded in base64 format.
Example Request
Here is an example of how to send a request using curl
:
Response
The API will respond with a JSON object containing the URL of the processed image:
model
: The model used for processing, which isshuttle-rbg
.data.url
: The URL where the processed image can be accessed.
Example Response
Here is an example of a successful response:
Encoding an Image in Base64
To encode an image in base64, you can use various tools and libraries. Here is an example using Python: