Content updated: 2026-06-06
Gemini Image Generation
generateContent directly, nor do they need to provide the native Gemini generationConfig.imageConfig.
It is recommended to use
nano-banana, nano-banana-pro, and nano-banana-2 in your client code. If your system already directly uses nano-banana, nano-banana-pro, or nano-banana-2, you can also continue calling through the same Images API entry.Request Parameters
Do not send these upstream private fields:
generationConfig, imageConfig, imageOutputOptions, image_output_options.
Request Example
Reference Image Editing
If you do need the native Gemini API format, please refer to Gemini Native Format. But for image generation and editing, we recommend clients consistently use the Images API described on this page.