Remove an image's background
ideogram_remove_backgroundRemove an image background and return the foreground as a transparent PNG. Accepts local files, HTTPS URLs, or Ideogram assets, saving results to the output directory.
Instructions
Remove the background of an image: the foreground comes back as a transparent PNG. Takes a local file, a public https URL or an Ideogram asset. Results are saved to the output directory; ideogram_quote prices a call first (nothing is generated).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | Local image file to work on, or a public https URL of one | |
| model | No | The model (default ideogram-1); each takes the fields of its variant below | |
| wait_s | No | Seconds to wait for the result (0-50, default 45). The job is accepted first; if it is still running when the wait ends, the result is its generation_id for ideogram_generation (never resubmitted, never billed twice). | |
| private | No | Keep the result out of Ideogram's public feed; true unless you set false (enterprise accounts are always private) | |
| inline_images | No | true: each saved image is also returned as image content (base64; one over 3.75 MB, or past 10 MB in total, by path only), for a client without file access | |
| image_asset_identifier | No | An Ideogram asset (an upload or an earlier result) instead of a local image |