Async task status
POST creates a job. GET polls until queued, processing, succeeded, or failed. Store the ID in your own table so a crashed worker can resume without creating a duplicate charge.
Background Removal API
Use the bgly background removal API to send a public image URL, receive a task ID, and poll until the cutout is ready. Standard and HD jobs share the same credit wallet as the website, so you do not maintain a second billing system. Most teams start with a handful of SKUs, then reuse the same request shape for nightly catalog dumps and marketplace refreshes.
This background removal API requires a paid plan or credit purchase. Signup and promotional credits alone do not unlock keys.
curl -X POST 'https://bgly.net/api/v1/bg/removals' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"image_url":"https://example.com/photo.jpg","precision":"standard"}'The background removal API is asynchronous, so you never hold a request open while the model runs. Create a job, save the ID, and poll until status is succeeded. Timeouts, backoff, and fan-out live in your worker, not in a long-lived HTTP connection to bgly.
01
Sign in, buy a plan or credits, then create a key in Settings → API Keys to authenticate the background removal API. Treat the secret like a password and rotate it if a client is retired.
02
POST an image_url to /api/v1/bg/removals. Optional subject, precision, and output_format let you bias toward products, portraits, or hair and return PNG or WebP.
03
GET the task ID every few seconds until status is succeeded, then download output.url. Typical clients wait two to five seconds between polls and stop on a terminal status.
Background removal API capabilities
One versioned background removal API contract. Provider details stay internal; your app only sees tasks, credits, and result URLs. You can change storage or models later without rewriting every client that already polls task IDs.
POST creates a job. GET polls until queued, processing, succeeded, or failed. Store the ID in your own table so a crashed worker can resume without creating a duplicate charge.
Standard costs 1 credit. HD (precision high) costs 2. Failed jobs are refunded automatically so a broken source URL does not silently drain the wallet.
Choose auto, product, portrait, or hair, plus standard or high precision. Hair, jewelry, and bottle edges usually look cleaner in HD when the listing sits on a marketplace white background.
Send Idempotency-Key so a network retry returns the original task instead of charging twice. Use a stable key per business event, such as a SKU upload or asset revision.
Use the same background removal API workflow for a single SKU or thousands of listing photos. The create-and-poll loop does not change when volume grows; only your queue width and retry policy do.
Clean product shots for Amazon, Shopify, and ads without a studio. Keep originals in your bucket and persist only the cutout URL the listing template needs.
Queue many independent jobs with task IDs and idempotent create. Map each source file to one job so a partial outage can resume from the last unfinished ID.
Offer a background removal API inside editors, DAM tools, or seller dashboards. Your users only wait for a transparent asset they can place on a new scene.
Background removal API pricing
No separate SKU. Buy Lite, Pro, or a credit pack, then call the background removal API with your key. Usage from the browser tool and from curl draw from one wallet, which keeps finance reports simple.
This first public version of the background removal API is URL-in, poll-for-result. Design around these limits for a smoother integration, then add your own queue, alerting, and download-to-storage step.
Practical answers for evaluating and integrating the bgly background removal API into checkout tools, DAM systems, and seller dashboards.
Create an account, buy credits, and make your first background removal API request in minutes. Keep the same key for staging and production as volume grows.