Remove an object
Remove a masked object from an image. Upload the source image and a
mask of the same size using multipart/form-data. Returns a
generation_id; poll GET /v2/generations/{generation_id} for the
result.
Authentication
API key for access control. Use in the header with the name "Api-Key"
Query parameters
When true, the request is validated and priced but not run: nothing is
generated, stored, or billed, and no safety review is performed. The
response is a PriceQuote object instead of the usual response for this
endpoint. Send exactly the request you would send to generate, so the
quote reflects the same options.
Request
The source image and mask, uploaded using multipart/form-data.
A black-and-white mask the same size as the image; white (>= 128) marks the region to remove. JPEG, PNG, or WEBP, up to 50MB. Multipart requests only.
Response
Object removal request accepted; poll for completion with GET /v2/generations/{generation_id}.
URL-safe base64 ID of the accepted generation. Accepted by the
GET /v2/generations/{generation_id} polling endpoint.