v7
latestOpenAPI 3.0.22026-08-08114248430.1 KBReframe a source image to a target size asynchronously
Accepts the same request as POST /v1/ad-resizer for asynchronous processing and returns immediately with a generation_id. Poll GET /v1/generations/{generation_id} to retrieve the reframed image(s); the polled result is the final image, already cropped to the requested aspect ratio. If a webhook_url is supplied, the images are additionally POSTed to it once ready.
Supply the source image as either an AssetIdentifier reference (image_asset_identifier) or the raw image bytes directly (image, multipart requests only). Provide exactly one of the two; supplying both, or neither, is rejected with a 400.
The target resolution (WIDTHxHEIGHT) sets the target aspect ratio and selects the reframing layout, so it is required.
The model is fixed by the route, so no model field is accepted.
Query parameters
HTTPS URL that Ideogram delivers the generated result to. Ideogram sends a JSON POST to this URL once all images for the request have finished generating. The body mirrors the synchronous generate response: request_id, created, and a data array containing every generated image (url, prompt, resolution, seed, is_image_safe). Each delivery is signed with Ed25519 and verifiable against the public keys at https://api.ideogram.ai/v1/.well-known/jwks.json. Must be HTTPS; private and loopback hosts and the cloud metadata service are rejected.
Request body
Example request
{
"image_asset_identifier": {
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
}
}Response
Request accepted for asynchronous processing.
Example response
{
"generation_id": "generation_id"
}