Reframe an image with Ideogram 3.0, by asset id or by uploaded bytes
Expand an image to a new Ideogram 3.0 resolution. The source pixels are preserved in the center and Ideogram fills the new area. Supply exactly one source: an AssetIdentifier reference (image_asset_identifier) or raw image bytes (image, multipart requests only). Supplying both forms, or neither, is rejected.
Optional style controls are mutually exclusive. Supply at most one of style_preset, style_codes, style_reference_asset_identifiers, or raw style_reference_images (multipart requests only). Each style reference transport accepts at most 10 images.
By default the request blocks until the images are ready and returns them in data. Set async to true to return immediately, then poll GET /v1/generations/{generation_id}.
Query parameters
When true, the request is validated and priced but not run: nothing is generated, stored, or billed, and no safety review is performed. The response is a PriceQuote object instead of the usual response for this endpoint. Send exactly the request you would send to generate, so the quote reflects the same options.
Request body
Example request
{
"image_asset_identifier": {
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
},
"resolution": "1280x800",
"seed": 12345,
"style_preset": "BRIGHT_ART",
"color_palette": {
"name": "PASTEL"
},
"style_codes": [
"AAFF5733",
"0133FF57",
"DE3357FF"
],
"style_reference_asset_identifiers": [
{
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
}
]
}Response
The reframed images, or an acknowledgement for an asynchronous request.
Example response
{
"data": [
{
"seed": 12345,
"prompt": "prompt",
"resolution": "1024x1024",
"url": "https://openapi-generator.tech",
"is_image_safe": true
},
{
"seed": 12345,
"prompt": "prompt",
"resolution": "1024x1024",
"url": "https://openapi-generator.tech",
"is_image_safe": true
}
],
"seed": 12345,
"generation_id": "generation_id"
}