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.
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"
}Changes
Changed in 4 of the 34 revisions of this API.613
- ○
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
- ○
- ▲
removed the enum value
HIGHof the request property(media type: multipart/form-data)request-property-enum-value-removed
- ▲
removed the enum value
HIGHof the request property(media type: application/json)request-property-enum-value-removed
- ▲
removed the enum value
LOWof the request property(media type: multipart/form-data)request-property-enum-value-removed
- ▲
removed the enum value
LOWof the request property(media type: application/json)request-property-enum-value-removed
- ▲
removed the enum value
MEDIUMof the request property(media type: multipart/form-data)request-property-enum-value-removed
- ▲
removed the enum value
MEDIUMof the request property(media type: application/json)request-property-enum-value-removed
- ○
added the new
highenum value to the request property(media type: multipart/form-data)request-property-enum-value-added
- ○
added the new
highenum value to the request property(media type: application/json)request-property-enum-value-added
- ○
added the new
lowenum value to the request property(media type: multipart/form-data)request-property-enum-value-added
- ○
added the new
lowenum value to the request property(media type: application/json)request-property-enum-value-added
- ○
added the new
mediumenum value to the request property(media type: multipart/form-data)request-property-enum-value-added
- ○
added the new
mediumenum value to the request property(media type: application/json)request-property-enum-value-added
This revision also has 13 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ○
added the media type
application/jsonfor the response with the statusresponse-media-type-added
- ○
added the media type
application/jsonfor the response with the statusresponse-media-type-added
- ○
- ○
endpoint added
endpoint-added
- ○