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 prompt for image editing.

The URLs of the images to use for image-to-image generation or image editing. Optional when at least one of video_url, audio_url, or pdf_url is provided.

Uploading a file needs an account. Create accountJPEG, PNG, WebP · up to 25 MB

The number of images to generate.

The aspect ratio of the generated image. Supports extreme ratios: 4:1, 1:4, 8:1, 1:8.

The resolution of the image to generate.

Tips and requirements

Optional video to use as input context. Accepts an http(s)/data URL to a video file (downloaded and sent inline, max 15MB) or a YouTube URL (passed through to the model without downloading).

Uploading a file needs an account. Create accountMP4, WebM · up to 100 MB

Optional audio file to use as input context. Accepts an http(s)/data URL (downloaded and sent inline, max 15MB).

Uploading a file needs an account. Create accountMP3, WAV · up to 50 MB

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).

Optional PDF document to use as input context. Accepts an http(s)/data URL (downloaded and sent inline, max 15MB).

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.