remove_background
Remove the background from an image and return a transparent PNG hosted on a public URL. Get JSON output with URL and file size, no raw bytes.
Instructions
Remove the background from an image (U²-Net model via fal.ai) and return a transparent PNG hosted on a public URL — never raw bytes, so it does not bloat context. Returns JSON with url (public PNG, expires ~24 h — download promptly) and file_size_bytes. Returns an error if the image_url is not publicly accessible or the image format is unsupported. Has no side effects on the source image. To pass a local image, first upload it with upload_file and pass the returned URL here. Cost: $0.03 USDC pay-per-call ($0.02 prepaid). No first-call-free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_url | Yes | Public URL of the source image (JPEG, PNG, or WEBP). Must be accessible from the internet — local paths and data: URIs are not supported. |