Reframe an image with Gemini 3.1 Flash Image
Expand one image to a new aspect ratio with Gemini 3.1 Flash Image. Supply either an existing Ideogram image asset or raw image bytes, but not both. The requested aspect ratio is resolved to the closest supported 1K output dimensions.
This operation is asynchronous. It returns as soon as the request is accepted; poll GET /v1/generations/{generation_id} for completion and results.
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"
},
"seed": 12345
}Response
An acknowledgement to poll with GET /v1/generations/{generation_id}.
Example response
{
"seed": 12345,
"generation_id": "generation_id",
"width": 0,
"height": 6
}