Image background removal
bg_removerStart a background-removal job. Returns a job handle immediately; fetch the transparent-PNG cutout later with get_job. Pass EITHER imageUrl (a public https:// URL, which the server downloads) OR imageFileUrl (a storage path from list_files with mimeCategory "image") — exactly one, never both. This tool cannot accept raw file bytes, so a caller holding only a local file must upload it in the web app first or host it at a public https:// URL. Download the cutout with get_file_download_url (cutout.fileId) or get_job_result_asset_url (role "cutout").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imageUrl | No | Publicly reachable https:// URL of the image to cut out. The server downloads it. Only https:// is accepted, and URLs resolving to private, loopback, link-local, or cloud-metadata addresses are rejected. Pass this OR imageFileUrl, never both. | |
| imageFileUrl | No | Storage path of an image already uploaded to this organization (e.g. organizations/<orgId>/files/<name>.png). Call list_files with mimeCategory "image" to find it — do not guess a path. Pass this OR imageUrl, never both. |