Remove image backgrounds with AI. Simple REST API. 5 free images/month. From $0.01/image — the $10/mo remove.bg alternative.
Get started in 30 seconds. No credit card required.
Sign up at cleanbg.pages.dev, then go to your dashboard to generate an API key. Or use the API:
Send a POST request with your image (base64 JSON or raw binary):
curl -X POST https://cleanbg-api.sundeen10.workers.dev/api/v1/remove-bg \
-H "X-API-Key: cbg_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"image": "BASE64_IMAGE_DATA"}'
Or send raw binary:
curl -X POST https://cleanbg-api.sundeen10.workers.dev/api/v1/remove-bg \
-H "X-API-Key: cbg_your_api_key_here" \
-H "Content-Type: image/png" \
--data-binary @photo.png
// Node.js / Browser var response = await fetch("https://cleanbg-api.sundeen10.workers.dev/api/v1/remove-bg", { method: "POST", headers: { "Content-Type": "application/json", "X-API-Key": "cbg_your_api_key_here" }, body: JSON.stringify({ image: base64ImageData, // base64-encoded image type: "image/jpeg" // optional: image/jpeg, image/png, image/webp }) }); var data = await response.json(); // data.image = base64-encoded PNG with transparent background // data.usage = { used: 5, limit: 50, remaining: 45 }
import requests, base64
with open("photo.jpg", "rb") as f:
image_b64 = base64.b64encode(f.read()).decode()
resp = requests.post(
"https://cleanbg-api.sundeen10.workers.dev/api/v1/remove-bg",
headers={"X-API-Key": "cbg_your_api_key_here"},
json={"image": image_b64, "type": "image/jpeg"}
)
result = resp.json()
with open("result.png", "wb") as f:
f.write(base64.b64decode(result["image"]))
Remove the background from an image. Returns a PNG with transparent background.
| Header | Required | Description |
|---|---|---|
X-API-Key | Yes | Your API key (starts with cbg_) |
Content-Type | Yes | application/json or image/* |
| Field | Type | Description |
|---|---|---|
image | string | Base64-encoded image data (max 10MB) |
type | string | Optional. MIME type: image/jpeg, image/png, image/webp |
{
"image": "iVBORw0KGgo...", // base64 PNG with transparent bg
"format": "image/png",
"usage": {
"used": 6,
"limit": 50,
"remaining": 44
}
}
| Status | Code | Description |
|---|---|---|
| 401 | missing_api_key | No X-API-Key header provided |
| 401 | invalid_api_key | API key not found or revoked |
| 413 | too_large | Image exceeds 10MB limit |
| 429 | limit_reached | Monthly usage limit exceeded |
| 500 | processing_error | Image processing failed |
Check your current usage and remaining quota.
{
"tier": "free",
"tier_name": "Free",
"monthly_limit": 50,
"monthly_used": 12,
"monthly_remaining": 38,
"period": "2026-03"
}
Start free. Scale as you grow. All plans include the same AI quality.
| Plan | CleanBG | remove.bg | Savings |
|---|---|---|---|
| 5 images/mo | Free | $9 (40 credits) | 100% |
| 1,000 images/mo | $10/mo | $99/mo | 90% |
| 10,000 images/mo | $49/mo | $399/mo | 88% |
| 100,000 images/mo | $299/mo | Custom ($2K+) | 85%+ |
Add background removal to your website with one line of code. Your users upload images, CleanBG processes them.
<iframe src="https://cleanbg.pages.dev?embed=true&key=cbg_your_api_key" width="100%" height="500" style="border:none;border-radius:12px" ></iframe>
The widget uses your API key and counts against your monthly quota. Style it with CSS to match your site.
Questions? Email support@fliplistai.com or open an issue on GitHub.