Model Name
The Gemini Nano Banana model is now generally available for everyone. For API access, the model name should be updated.
# Old
/models/gemini-2.5-flash-image-preview
# New
/models/gemini-2.5-flash-image
Aspect Ratio
The model now also supports a wider range of aspect ratios. This enables more use cases compared to OpenAI's GPT Image 1, which has only 3 types of aspect ratios.
{
"generationConfig": {
"imageConfig": {
"aspectRatio": "1:1"
}
}
}
9:16 Example
We can use this aspect ratio for mobile phone wallpapers.

21:9 Example
This type is suitable for making banners.
