v4
latestOpenAPI 3.0.22026-08-02109239415.7 KBobject-removal
Remove a masked object from an image, by asset id or by uploaded bytes
Remove a masked object from an image. For each of the source image and the mask, supply either an AssetIdentifier reference (image_asset_identifier / mask_asset_identifier) or the raw image bytes directly (image / mask, multipart requests only) — callers are never required to call POST /v2/assets first. If both a reference and bytes are supplied for the same input, the reference wins and the bytes are ignored.
Poll for completion with GET /v1/generations/{generation_id} using the returned generation_id.
This is the /v2 capability-first shape; no model or model_uri field is exposed until a second backend exists.
post/v2/object-removal
Request body
Example request
{
"image_asset_identifier": {
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
},
"mask_asset_identifier": {
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
},
"seed": 12345
}Response
Object removal request accepted; poll for completion with GET /v1/generations/{generation_id}.
Example response
{
"generation_id": "generation_id"
}