API
A small REST API for scripts and apps. Base URL https://api.nobg.here. Keys are invite-only for now. Send them as X-Api-Key (or Authorization: Bearer). Images are processed in memory and never stored. Async results expire after one hour.
| Plan | Per minute | Per day |
|---|---|---|
| free | 10 | 100 |
| personal | 30 | 1,000 |
| pro | 60 | 10,000 |
POST/v1/remove
Synchronous cutout. Upload as multipart field image_file (same as remove.bg) or as a raw image/* body. Max 25 MB; images over 16 MP are scaled down. Returns a transparent PNG at the original size, or JSON with base64 when you add ?format=json.
curl -H "X-Api-Key: $NOBG_KEY" \
-F image_file=@photo.jpg \
-o photo-nobg.png https://api.nobg.here/v1/removeimport requests
r = requests.post("https://api.nobg.here/v1/remove",
headers={"X-Api-Key": KEY},
files={"image_file": open("photo.jpg", "rb")})
r.raise_for_status()
open("photo-nobg.png", "wb").write(r.content)Response headers: X-Width, X-Height, X-Processing-Ms, X-RateLimit-Remaining-Minute, X-RateLimit-Remaining-Day.
POST/v1/jobs
Async cutout for big images or batches. Takes the same upload. Returns 202 with a job id.
curl -H "X-Api-Key: $NOBG_KEY" -F image_file=@big.jpg https://api.nobg.here/v1/jobs
# {"id":"c109a9…","status":"queued"}GET/v1/jobs/{id}
Status is queued, processing, done or failed. When it’s done, fetch /v1/jobs/{id}/result to get the PNG.
{"id":"c109a9…","status":"done","width":1600,"height":1067,
"processing_ms":4342,"result_url":"/v1/jobs/c109a9…/result"}GET/v1/usage
{"plan":"free","limits":{"per_minute":10,"per_day":100},
"remaining":{"minute":9,"day":97},"total_requests":3}Errors
Errors come back as {"error":{"status":429,"message":"…"}}. 401 means a bad key, 413 a file that’s too big, 422 an unreadable image, 429 a rate limit (see Retry-After), and 503 a busy server (retry shortly).