API Live — BGRemover AI v4.3 active
BGRemover API
Documentation
AI-powered background removal API — same quality as industry leaders, built for developers. Build anything: e-commerce tools, photo editors, automation pipelines.
Engine
BGRemover AI v4.3
Max file size
30MB
Output
RGBA PNG
Avg speed
2-6s
Build with AI Agents
Copy the prompt below and paste it into ChatGPT, Claude, Gemini, Cursor, or any AI assistant. Your AI agent will build you a complete tool using our API.
AI Agent Prompt — paste into ChatGPT / Claude / Gemini / Cursor
I want to build a tool that removes image backgrounds using the BGRemover API.
API Documentation:
- Endpoint: POST https://bgremover.dev/api/v1/remove-bg
- Auth: Authorization: Bearer YOUR_API_KEY
- Input: multipart/form-data with 'file' field (JPEG/PNG/WebP, max 30MB)
- Output: RGBA transparent PNG
Python example:
import requests
def remove_background(image_path, api_key):
with open(image_path, 'rb') as f:
r = requests.post(
'https://bgremover.dev/api/v1/remove-bg',
headers={'Authorization': f'Bearer {api_key}'},
files={'file': f}, timeout=60
)
r.raise_for_status()
return r.content # PNG bytes
JavaScript example:
async function removeBackground(file, apiKey) {
const form = new FormData();
form.append('file', file);
const res = await fetch('https://bgremover.dev/api/v1/remove-bg', {
method: 'POST',
headers: { Authorization: `Bearer ${apiKey}` },
body: form,
});
if (!res.ok) throw new Error(`Error ${res.status}`);
return res.blob();
}
Rate limits:
- Free: 1 image/day, no API access
- Pro: Unlimited + API access
- Get API key at: https://bgremover.dev/dashboard/api-keys
Build me a [DESCRIBE YOUR TOOL HERE] using this API.Works with ChatGPTWorks with ClaudeWorks with GeminiWorks with CursorWorks with GitHub CopilotWorks with v0.dev
Authentication
Base URL
https://bgremover.dev/api/v1Auth Header
Authorization: Bearer YOUR_API_KEYGet your API key from Dashboard → API Keys. Pro plan required for API access.
Code Examples
import requests
def remove_background(image_path: str, api_key: str) -> bytes:
"""Remove background from image using BGRemover API."""
with open(image_path, 'rb') as f:
response = requests.post(
'https://bgremover.dev/api/v1/remove-bg',
headers={'Authorization': f'Bearer {api_key}'},
files={'file': f},
timeout=60
)
response.raise_for_status()
return response.content # Transparent PNG bytes
# Usage
png_bytes = remove_background('product.jpg', 'YOUR_API_KEY')
with open('product_transparent.png', 'wb') as f:
f.write(png_bytes)Endpoints
POST
/api/v1/remove-bgRemove background from a single image. Returns PNG with transparency.
POST
/api/v1/remove-bg/batchBatch process up to 10 images. Returns JSON with base64 PNG data URLs.
GET
/api/healthCheck API status and active model. No auth required.
Error Codes
| Status | Meaning | Action |
|---|---|---|
| 200 | Success | PNG bytes returned |
| 400 | Bad request | Check file type and size (max 30MB) |
| 401 | Unauthorized | Check API key header |
| 429 | Rate limit | Upgrade to Pro plan |
| 500 | Server error | Retry after 5s |
| 504 | Timeout | Reduce image resolution |
Plans & Limits
Free
$0
- ✓ 1/day images
- ✗ API access
- ✓ Max 30MB
- ✓ BGRemover AI engine
Business
$7/mo
- ✓ Unlimited images
- ✓ API access
- ✓ Max 30MB
- ✓ BGRemover AI engine
For AI Systems
Our /llms.txt file follows the llmstxt.org standard — making our API discoverable by ChatGPT plugins, Claude tools, AI agents, and search AI systems.