Gemini 3.1 Flash Image

Gemini 3.1 Flash Image (a.k.a Nano Banana 2) is Google's new state-of-the-art fast image generation and editing model

Input

Fields marked * are required. Review the price before generating.

The text prompt to generate an image from.

The number of images to generate.

Tips and requirements

The aspect ratio of the generated image. Supports extreme ratios: 4:1, 1:4, 8:1, 1:8. Use "auto" to let the model decide based on the prompt.

The resolution of the image to generate.

Additional settings

The seed for the random number generator.

The format of the generated image.

The safety tolerance level for content moderation. 1 is the most strict (blocks most content), 6 is the least strict.

Tips and requirements

Optional system instruction that steers the model's persona and output style across the request. Leave blank to omit; when provided, it is sent as the system instruction to Gemini (or as a system message on OpenAI-compatible providers).

Starting price$0.10 / image

You sign up first. Your settings are kept.

API code for this input

Complete the required fields and fix input errors to see API code.

How to use Gemini 3.1 Flash Image

Getting started

Explore banners or vertical designs with explicit subject placement and room for text.

Review your result

Inspect edge cropping, small lettering and stretched-looking objects in extreme layouts.

Inputs and settings

Choose aspect_ratio, including 4:1, 1:4, 8:1 or 1:8, and resolution from 0.5K to 4K.

Text generation starts with prompt. The separate edit mode accepts optional image_urls and other reference media; describe which details those references should inform.