Skip to main content
gemini-3.1-flash-image (Nano Banana 2) is Google’s Gemini model for image generation and editing. It brings high-fidelity generation and faster advanced editing to the Flash tier, with richer world knowledge, stricter instruction following, more accurate text rendering and in-image translation. It covers text-to-image, conversational multi-turn editing and multi-image composition at 1K / 2K / 4K, including extreme aspect ratios such as 1:4, 4:1, 1:8 and 8:1.

Setup

Endpoints

Parameters

Official parameters not supported yet

They return 400; the model is not called and nothing is charged.

Pricing

Billed at the model price shown in the console. Invalid requests and failed generations are not charged.

Quick start

$DREAMTO_API_KEY is your API Key.

Notes

  • This page covers generateContent only; the Batch API and files/... references from Files API uploads are not supported yet.
  • Send reference images as Base64 in inlineData, or as a public https link in fileData.fileUri.
  • Errors use the DreamTo error envelope (see the error examples) rather than Google’s status envelope.