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.
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"
}Changes
Changed in 4 of the 33 revisions of this API.10
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
- ○
added the new optional request property
(media type: multipart/form-data)new-optional-request-property
- ○
added the new optional request property
(media type: application/json)new-optional-request-property
- ○
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added the non-success response with the status
response-non-success-status-added
This revision also has 13 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
endpoint added
endpoint-added
- ○