Gemini 3.1 Flash Image Preview

Gemini 3.1 Flash Image (Nano Banana 2) is optimized for image understanding and generation and offers a balance of price and performance.

Image generation specifications

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

Note: To use the "Deploy example app" feature, you need a Google Cloud project with billing and Agent Platform API enabled.
Model ID gemini-3.1-flash-image-preview Supported inputs & outputs Token limits
  • Maximum input tokens: 131,072
  • Maximum output tokens: 32,768
  • Capabilities Consumption options See Consumption options for more information. Input size limit 500 MB Technical specifications Images Documents Parameter defaults Supported regions

    Model availability

    See Deployments and endpoints for more information. Knowledge cutoff date January 2025 Versions Supported languages See Supported languages. Pricing See Pricing.