latestOpenAPI 3.0.22026-08-22136296577.7 KB
015774bae5bc
edit-workflow
Advertisement Resizer
Reframes the source creative to the exact requested ad resolution, regenerating the layout so text and key elements stay legible at the target size.
The request is processed asynchronously. Poll GET /v1/generations/{generation_id} with the returned generation_id until the generation is completed or failed. The completed generation reports the exact amount billed for the request in usage_cost_usd_micros.
Supply the source creative as either an AssetIdentifier reference (image_asset_identifier) or the raw image bytes directly (image, multipart requests only). Provide exactly one of the two forms; supplying both, or neither, is rejected with a 400.
post/v2/tool/ad-resizer
Request body
Example request
{
"image_asset_identifier": {
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
},
"webhook_url": "https://api.example.com/webhooks/ideogram"
}Response
Ad resize accepted for asynchronous processing.
Example response
{
"generation_id": "generation_id"
}