# Gemini 3.1 Flash Image Preview > Gemini 3.1 Flash Image Preview is a Google image generation and editing model that accepts text and image input. ## Key facts - Model author: Google - Input: $0.50 per 1M tokens (starting tier) - Output: $3.00 per 1M tokens (starting tier) - Context window: 65,536 tokens - Input modalities: image, text - Output modalities: image, text - Capabilities: reasoning, structured_output, vision - Released: 2026-02-26 - Model IDs: `jd/gemini-3.1-flash-image-preview` - Model page: https://www.realrelay.ai/model/google/gemini-3.1-flash-image-preview ## Overview Gemini 3.1 Flash Image Preview, also known as Nano Banana 2, is an image generation and editing model from Google. It takes text and image input and returns images and text, so a single request can pair a written instruction with a source picture to create or edit an image. Gemini 3.1 Flash Image Preview has a 64K-token context window. It accepts text and image input and returns text and image output. It was released on February 26, 2026. ## Capabilities Gemini 3.1 Flash Image Preview supports reasoning, structured output and visual understanding. It reads source images through vision input and can return structured output. ## Pricing Gemini 3.1 Flash Image Preview starts from $0.50 per 1M input tokens and from $3.00 per 1M output tokens. The prices shown are the starting tier. Gemini 3.1 Flash Image Preview is available through RealRelay's OpenAI-compatible API. ## Use cases Use Gemini 3.1 Flash Image Preview to generate images from text prompts, for example concept art or marketing visuals, and to edit existing pictures by pairing the image with an edit instruction. Because it returns text as well as images and supports reasoning, it can also describe what it produced, with structured output when downstream tools need a fixed format. ## FAQ ### What is Gemini 3.1 Flash Image Preview? Gemini 3.1 Flash Image Preview is a Google image generation and editing model that accepts text and image input. ### How much does Gemini 3.1 Flash Image Preview cost? Gemini 3.1 Flash Image Preview starts from $0.50 per 1M input tokens and from $3.00 per 1M output tokens. ### What is the context window of Gemini 3.1 Flash Image Preview? Gemini 3.1 Flash Image Preview has a 64K-token context window. ### What inputs and outputs does Gemini 3.1 Flash Image Preview support? Gemini 3.1 Flash Image Preview accepts text and image input and returns text and image output. ### What capabilities does Gemini 3.1 Flash Image Preview support? Gemini 3.1 Flash Image Preview supports reasoning, structured output and visual understanding. ### When was Gemini 3.1 Flash Image Preview released? Gemini 3.1 Flash Image Preview was released on February 26, 2026. ### How do I call Gemini 3.1 Flash Image Preview via the API? Send requests to RealRelay's OpenAI-compatible API and use the model ID jd/gemini-3.1-flash-image-preview.