https://api.shuttleai.com/v1/removebg
{ "image": "data:image/png;base64,..." }
image
curl
curl -X POST https://api.shuttleai.com/v1/removebg \ -H "Content-Type: application/json" \ -d '{ "image": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA..." }'
{ "model": "shuttle-rbg", "data": { "url": "https://cdn.shuttleai.com/cdn/..." } }
model
shuttle-rbg
data.url
{ "model": "shuttle-rbg", "data": { "url": "https://cdn.shuttleai.com/cdn/processed-image.png" } }
import base64 with open("path/to/your/image.png", "rb") as image_file: encoded_string = base64.b64encode(image_file.read()).decode('utf-8') print(f"data:image/png;base64,{encoded_string}")