arrow_back All endpoints

Remove Background

POST/api/v1/tools/remove-background25 credits per callimagebackgroundremovetransparentaipng

Downloads a PNG, JPEG, WebP or BMP from a public URL and runs ISNet background removal on the media worker. Returns a transparent PNG as base64.

receipt_long
Why 25 credits?

Runs an ONNX segmentation model on the worker. That is GPU/CPU-heavy compared with hashing or DNS, so it sits well above the one-credit floor.

Any HTTP client works. Replace the key with one from your dashboard.

bash
curl -X POST https://toolkitbackend-j69m.onrender.com/api/v1/tools/remove-background \
  -H "Authorization: Bearer tb_live_<your_api_key>" \
  -H "Content-Type: application/json" \
  -d '{
  "fileUrl": "https://example.com/product.jpg"
}'

Input

FieldTypeRequiredDefaultDescription
fileUrlstringrequired- Publicly reachable URL of the image.

Output

FieldTypeDescription
fileBase64stringTransparent PNG, base64-encoded, without a data URI prefix.
mimeTypestringAlways image/png.
fileNamestringSuggested download name.
sizeBytesintegerSize of the decoded PNG.

Try it

Sends a real POST /api/v1/tools/remove-background from your browser and charges 25 credits to your account.

Sign in to run this endpoint. New accounts start with free credits.