Remove an image background
remove_backgroundRemoves the background from one image with BackGone’s production engine and returns a transparent PNG (or WebP) inline. Without a key it runs the free trial: 2 images per day per IP, free-tier 1024px output, never charged. With "Authorization: Bearer sk_..." it costs 1 API credit per successful image at full resolution (failed calls are not charged); the first key includes 15 free API calls, top up at https://backgone.com/pricing. Provide exactly one of image_url or image_base64.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "remove_background"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format. PNG is the default; WebP is smaller and capped at a lower megapixel limit. | png |
| image_url | No | Public HTTPS URL of a PNG, JPEG or WebP image. Fetched server-side with SSRF protection. | |
| image_base64 | No | Base64-encoded image bytes (PNG, JPEG or WebP; up to 10 MB). A data: URL prefix is also accepted. Use this when the image is local to the agent. |