latestOpenAPI 3.0.22026-08-21134292561.4 KB
898026c78d68
edit-workflow
Edit an image using a mask
Applies an instruction using a supplied mask. Optional reference images can guide the requested appearance. Set preserve_unmasked_pixels to keep decoded pixels outside the mask unchanged in the final image.
The request runs asynchronously. Poll GET /v1/generations/{generation_id} with the returned generation_id until the generation is completed or failed.
post/v2/workflow/precise-masked-edit
Request body
Example request
{
"source_asset_identifier": {
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
},
"mask_asset_identifier": {
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
},
"reference_asset_identifiers": [
{
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
}
],
"webhook_url": "https://api.example.com/webhooks/ideogram"
}Response
Precise masked edit accepted for asynchronous processing.
Example response
{
"generation_id": "generation_id"
}