edit-workflow
Replace the model in a commerce image
Re-casts a fashion commerce image with the identity shown in one or more ordered target-model references. The workflow uses the working image for the product, pose, scene, lighting, framing, and camera, and uses the target references only for identity, hair, skin tone, and body proportions. Results are full-frame edits; exact pixel preservation is not guaranteed.
The request is processed asynchronously. Poll GET /v1/generations/{generation_id} with the returned generation_id until the generation is completed or failed.
post/v2/tool/model-swap
Request body
Example request
{
"source_asset_identifier": {
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
},
"model_asset_identifiers": [
{
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
}
],
"webhook_url": "https://api.example.com/webhooks/ideogram"
}Response
Model swap accepted for asynchronous processing.
Example response
{
"generation_id": "generation_id"
}