API Reference
Documentation
Everything you need to integrate Unstage's background removal into your application.
Remove Background
Endpoint
POST /api/remove-bgHeaders
Authorization: Bearer YOUR_API_KEY
Content-Type: image/png | image/jpeg | image/webp
Body
Raw image binary data.
Response
PNG image with transparent background. Includes Server-Timing header with processing metrics.
Example
curl -X POST https://unstage.app/api/remove-bg \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: image/png" \
--data-binary @photo.png \
--output result.pngResponse Headers
Content-Type: image/png
Server-Timing: upload;dur=45, processing;dur=312, download;dur=28
Use the Server-Timing header to monitor performance in your integration.