remove_background_url
Remove the background from a public HTTP(S) image URL and save the transparent cutout to a local file path for reuse.
Instructions
Remove the background from a public HTTPS/HTTP image URL via remove.ac (/v1.0/removebg) and save the cutout locally.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"imageUrl": "<imageUrl>",
"outputPath": "<outputPath>"
},
"name": "remove_background_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crop | No | Trim empty transparent padding around the foreground subject. | |
| size | No | Output resolution tier. Defaults to 'full'. | |
| type | No | Optional foreground category hint. | |
| format | No | Output file format. Defaults to 'png'. | |
| bgColor | No | Optional solid background hex color (e.g. 'FFFFFF') instead of transparency. | |
| imageUrl | Yes | Publicly reachable http(s) URL of the source image. | |
| addShadow | No | Render a realistic drop or contact shadow under the cutout. | |
| overwrite | No | Allow overwriting an existing outputPath. Defaults to false. | |
| bgImageUrl | No | Optional public http(s) background image URL to composite behind the cutout. | |
| outputPath | Yes | Local file path where the cutout output will be written. | |
| shadowType | No | Shadow preset when addShadow is enabled. | |
| bgImagePath | No | Optional local background image file path (.png, .jpg, .jpeg, .webp, up to 25 MB / 50 MP) to composite behind the cutout. | |
| bg_image_url | No | Alias for bgImageUrl: public http(s) background image URL. | |
| bg_image_path | No | Alias for bgImagePath: local background image file path (.png, .jpg, .jpeg, .webp, up to 25 MB / 50 MP). |