Generate with Nano Banana 2.1
Changed onGenerate images with Nano Banana 2.1. Optionally upload source images as images using multipart/form-data to edit them with the prompt. Returns results directly by default; set async or supply a webhook_url to get a generation_id and poll GET /v2/generations/{generation_id}.
Request
- Base URL: https://api.ideogram.ai
- URL: https://api.ideogram.ai/v2/image/generate/nano-banana-2-1
- Auth: API key in header Api-Key
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.
Response
The generated images (synchronous requests), or an acknowledgement to poll with GET /v2/generations/{generation_id} (async requests).
Changes
- breaking
removed the media type
application/jsonfrom the request body - warning
removed the request property
- warning
removed the request property
- warning
removed the request property
- info
api operation id
post_generate_image_v2_nano_banana21removed and replaced withimagesGenerate_post_generate_image_v2_nano_banana21 - info
the endpoint scheme security
ApiKeyAuthwas added to the API - info
request body became optional
- info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status
- breaking
- info
endpoint added
- info