Developer API · v1

Background removal API

Remove backgrounds programmatically. One authenticated POST request returns a hosted transparent PNG. Powered by the same BiRefNet engine as the web app.

Key-based auth

Bearer sk_live_… keys, hashed at rest, revocable anytime.

Quotas & limits

Monthly quota + per-minute rate limits enforced per key.

1 credit / call

Each successful removal deducts one credit from your plan.

Your keys

Generate and manage keys tied to your subscription.

Log in to generate and manage your API keys.

Log in

Remove background

POSThttps://api.gonebg.com/v1/remove

Request

cURL
curl -X POST "https://api.gonebg.com/v1/remove" \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY" \
  -F "image=@product.jpg" \
  -F "hd=true"

Response 200

JSON
{
  "id": "img_123",
  "download_url": "https://cdn.gonebg.com/abc123.png",
  "credits_used": 1,
  "credits_remaining": 299
}
ParameterTypeDescription
imagefileMultipart image file to process (JPG/PNG/WebP).
image_urlstringAlternative to image: a public URL or data URI.
hdbooleanOptional. Request full-resolution output.

Errors

StatusCodeMeaning
401invalid_api_keyMissing, malformed, or revoked API key.
402no_creditsMonthly quota exhausted for this billing cycle.
402no_api_accessThe plan tied to the key has no API access.
422missing_imageNo image file or image_url provided.
429rate_limitedPer-minute rate limit exceeded (see plan table).

Plans & rate limits

PlanAPI accessMonthlyRate limit
Hobby $9No——
Etsy Pro $19Yes300 req/mo10 req/min
Agency $49Yes1000 req/mo60 req/min
Choose a plan