Edit a product image using an instruction and ordered references
Edits the base image while preserving details the instruction does not change. Image 1 is the base; reference images are numbered from image 2 in the supplied order. Resolve image mentions to these numbers before submitting. Descriptions identify the selected view or reference.
Poll GET /v1/generations/{generation_id} with the returned generation_id until the workflow completes or fails.
Request body
Example request
{
"base_description": "base_description",
"aspect_ratio": 61,
"private": true,
"reference_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"
}
],
"webhook_url": "https://api.example.com/webhooks/ideogram",
"base_generation_size": "2k",
"base_asset_identifier": "",
"reference_descriptions": [
"reference_descriptions",
"reference_descriptions",
"reference_descriptions",
"reference_descriptions",
"reference_descriptions"
],
"resolved_instruction": "resolved_instruction",
"num_images": 0,
"quality": null
}Response
Style edit accepted for asynchronous processing.
Example response
{
"generation_id": "generation_id"
}Changes
Changed in 3 of the 33 revisions of this API.36
- ○
added the new optional request property
new-optional-request-property
- ○
- ▲
removed the enum value
1Kof the request propertyrequest-property-enum-value-removed
- ▲
removed the enum value
2Kof the request propertyrequest-property-enum-value-removed
- ▲
removed the enum value
4Kof the request propertyrequest-property-enum-value-removed
- ○
the
request property default value changed from2Kto2krequest-property-default-value-changed
- ○
added the new
1kenum value to the request propertyrequest-property-enum-value-added
- ○
added the new
2kenum value to the request propertyrequest-property-enum-value-added
- ○
added the new
4kenum value to the request propertyrequest-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
- ▲
- ○
endpoint added
endpoint-added
This revision also has 13 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○