edit-workflow
Replace or recolor footwear in an advertisement
Edits the footwear in a source advertisement using ordered product references. Poll GET /v1/generations/{generation_id} for status and image results.
post/v2/tool/swap-product
Request body
Example request
{
"mode": null,
"aspect_ratio": "aspect_ratio",
"private": true,
"webhook_url": "https://api.example.com/webhooks/ideogram",
"instruction": "instruction",
"source_asset_identifier": {
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
},
"num_images": 0,
"product_asset_identifiers": [
{
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
},
{
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
},
{
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
},
{
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
},
{
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
}
],
"quality": null
}Response
Footwear edit accepted for asynchronous processing.
Example response
{
"generation_id": "generation_id"
}