Gemini 3.1 Flash Image (Nano Banana 2) is optimized for image understanding and generation and offers a balance of price and performance.
Generating images with Gemini 3.1 Flash Image consumes tokens based on output image resolution: 747 tokens for 512p (0.25MP), 1120 tokens for 1K (1MP), 1680 tokens for 2K (4MP), and 2520 tokens for 4K (16MP).
Try in Agent Platform (Preview) Deploy example app
gemini-3.1-flash-image-previewimage/png,
image/jpeg,
image/webp,
image/heic,
image/heif
application/pdf,
text/plain
Model availability
gemini-3.1-flash-image-previewExcept as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-06-11 UTC.