Remove background
remove_background: Removes the background from a photo and returns the subject as a transparent PNG at the original size. Accepts PNG, JPEG, or WEBP up to 8 MB and 4096 px.
Instructions
Removes the background from one photo and returns the subject on a transparent background as a PNG, at the photo's own size. Costs 0.2 USDC per call (real money) on Base, paid from the buyer's wallet over x402 after the buyer's spending limits are checked. Input: PNG, JPEG, WEBP, up to 8 MB, at most 4096 px. Give exactly one of image_url or image_path. Output: image/png, as a download link (and a file with save_to).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save_to | No | Optional local file path to save the result to (image/png). | |
| image_url | No | A public https URL of the image. | |
| overwrite | No | Replace save_to if it exists. Default false. | |
| image_path | No | A local image file to send (read by this server, sent base64). | |
| allow_repeat | No | Buy again even if the same request was bought in the last 10 minutes. Default false: the earlier result is returned and nothing is charged. | |
| max_price_usdc | No | Optional: refuse if Bacon asks more than this, in USDC. |