images-reframe
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.
post/v2/images/reframe/gemini-3.1-flash-image
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
}Changes
Changed in 2 of the 18 revisions of this API.3
- ○
added the media type
application/jsonfor the response with the statusresponse-media-type-added
- ○
added the media type
application/jsonfor the response with the statusresponse-media-type-added
- ○
- ○
endpoint added
endpoint-added
- ○