Is nano-banana Nano Banana 2?
No. nano-banana corresponds to Gemini 2.5 Flash Image; nano-banana-2 corresponds to Gemini 3.1 Flash Image. Nano Banana is the public nickname for the former. When integrating, use the full invocation ID to avoid mixing parameters and creative capabilities of different versions due to similar names.
How should text-to-image generation and editing be called?
When using /nano-banana/images, set action=generate and submit prompt for text-to-image generation; for editing, set action=edit, provide assets through image_urls, and describe the intended changes. It is recommended to explicitly specify model=nano-banana and describe the subject, scene, and elements that need to be preserved.
Can a product image and a style image be combined into one?
Multiple reference images can be used to guide blended creation. The key is to clearly state the purpose of each image, such as using the product image for its shape and the style image for its color palette and atmosphere. Choose assets with consistent goals whenever possible, specify the main subject in the prompt, and carefully check after generation whether product details have been affected by style changes.
Can an existing OpenAI image API integration be used?
You can use /openai/images/generations or /openai/images/edits, and explicitly set model=nano-banana. Submit prompt for generation; for editing, additionally submit the image URL or URL array for image. Asset fields and result fields differ between endpoints, so do not mix image_urls and image during integration.
How should generated results be handled by an application?
Image URLs from the dedicated endpoint are located in data[].image_url and can be used for subsequent display or download; the OpenAI-style endpoint returns URLs or Base64 data through data. The API also provides task-processing parameters such as async and callback_url. Applications should distinguish image results from task_id to avoid treating successful task submission as completed image generation.