Reframe an image with Nano Banana 2
Expand one image to a new aspect ratio with Nano Banana 2. 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
}Changes
Changed in 2 of the 34 revisions of this API.5
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○
- ○
endpoint added
endpoint-added
This revision also has 13 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○