Background Removal
td_background_removalRemove the background from an image and replace it with solid white to isolate subjects for product shots, pattern motifs, or design layering. Saves results to disk.
Instructions
Background Removal: remove the background and replace it with solid white. Precision or Ultra model (Unlimited on Unlimited plans). Best for: isolating a subject or motif from its background: extracting photographed motifs to build a new pattern, clean product shots, or prepping a design for layering. Result files are saved to disk and their paths returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | Output resolution in ppi (72-500). Omit to keep the image's own resolution. | |
| wait | No | Wait for the job and save the outputs (default true). false returns the task_id right after submit. | |
| image | Yes | Source image: a local file path or an http(s) URL. PNG, JPEG or WebP, up to 80 MB and 5000 px per side. | |
| model | No | Model: precision (Precision, Recommended): Our most precise AI model for background removal, with the cleanest edges. standard (Ultra): Our alternative AI model for background removal; compare results with Precision. unlimited (Unlimited): Our first AI model for background removal; included in Unlimited plans (only offered on an Unlimited plan). Required: pass the mode the user named. If the user did not name one, omit it and the tool returns the modes to show them; never choose for the user. | |
| output_dir | No | Folder to save results in. Default: the folder of the input image (or the current directory for URL inputs). Files are never overwritten. | |
| estimate_only | No | Only return the credit estimate; nothing is uploaded or charged. | |
| review_settings | No | Omit it and the tool first asks whether to use the recommended settings or adjust them (unless the call already sets some). true: ask each setting one by one. false: run with the given or recommended settings without asking; pass it only after the user chose that. | |
| timeout_seconds | No | How long to wait for the job before returning its task_id (default 240). | |
| unlimited_bundle | No | Request the Unlimited bundle for this run (only has effect on Unlimited plans; the server decides). | |
| maintain_image_size | No | Maintain image size (Precision only): keep the input resolution; output size (1K/2K/4K) follows the input; the cost does not change. Default false. |