Remove Background
Remove background from images to isolate sprites.
Remove Background
Remove the background from any image, leaving only the main subject. Ideal for isolating sprites and characters for use in game engines.
Endpoint
POST /api/image-ops/remove-bgParameters
| Name | Type | Required | Description |
|---|---|---|---|
image | string | Yes | Image URL or base64-encoded image data |
Example
curl -X POST https://api.spritesynth.com/api/image-ops/remove-bg \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"image": "https://example.com/sprite-with-bg.png"
}'Response
{
"id": "rmbg_234",
"status": "completed",
"asset": {
"url": "https://cdn.spritesynth.com/assets/rmbg_234.png",
"width": 128,
"height": 128,
"has_alpha": true
},
"credits_cost": 1,
"duration_ms": 900
}Tips
- Works best with images that have a clearly defined subject.
- Output is always a PNG with transparency.
- For complex backgrounds, combine with Inpaint for cleanup.
Need help?
Join our Discord community for support and tips.
Was this page helpful?