Remove an object from an image
ideogram_remove_objectDelete an unwanted object from an image by marking it with a white mask, then fill the gap with context-aware content.
Instructions
Remove a masked object from an image (white in the mask = remove) and fill the gap. Needs the source and a mask of the same size, each 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 |
|---|---|---|---|
| mask | No | Local mask image file or a public https URL, the same size as the source | |
| seed | No | Random seed for a reproducible result | |
| 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). | |
| store_assets | No | Keep the result on Ideogram as an asset (accepted by the API, not yet enforced by it) | |
| 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 | |
| mask_asset_identifier | No | An Ideogram asset to use as the mask | |
| image_asset_identifier | No | An Ideogram asset (an upload or an earlier result) instead of a local image |