Multiple input paths
Use multipart uploads, JSON base64, form URLs, or raw image bytes.
Python function on Vercel
A small production-ready API for removing image backgrounds with rembg, built for upload, base64, raw bytes, and remote image URLs.
Quick start
curl -s -F file=@input.jpg \
https://shnwazdev-rembgapi.vercel.app/api/remove \
-o output.png
Use multipart uploads, JSON base64, form URLs, or raw image bytes.
Bad URLs, private hosts, non-image responses, and size issues return JSON errors.
Uses the lightweight model by default and caches model files during warm reuse.
Reference