---
last_updated: 2026-11-27
source_url: https://opper.ai/google/gemini-3-1-flash-image-preview
title: "Gemini 3.1 Flash Image Preview by Google"
description: "Gemini 3.1 Flash Image by Google, high-efficiency image generation and editing at multiple resolutions, optimized for speed and high-volume use."
---

# Gemini 3.1 Flash Image Preview

By [Google](https://opper.ai/google).

Released 26 Feb 2026, 7 days after [Gemini 3.1 Pro Preview](https://opper.ai/google/gemini-3-1-pro-preview) · [Announcement](https://ai.google.dev/gemini-api/docs/deprecations) · [All Google releases](https://opper.ai/model-releases/google)

Gemini 3.1 Flash Image, marketed as Nano Banana 2, reached preview on February 26, 2026 and general availability on May 28, 2026 as the faster, lighter sibling of Gemini 3 Pro Image. It generates and edits images from text, image, video, and PDF input within a 131,072 token context and returns both images and text, and Google rolled it out across the Gemini app and other Google products at launch.

The model renders at 0.5K, 1K, 2K, and 4K, supports a wide set of aspect ratios including 1:4, 4:1, 1:8, and 8:1, and keeps up to five characters, and the objects around them, consistent within a single workflow. It renders legible text with control over font, style, and size, can ground generations in web search results for real-world subjects, and offers an optional thinking mode. Every image carries a SynthID watermark.

Gemini 3.1 Flash Image suits product mockups, marketing assets, localization of text inside images, and iterative conversational editing at volume. Long text runs and most non-Latin scripts remain a weak spot, as they are for most image models.

## Available routes

Gemini 3.1 Flash Image Preview runs on 2 different routes through the Opper gateway. Prices are per 1M tokens. In the EU it is served by Google Cloud. [See every Gemini model hosted in the EU](https://opper.ai/models/eu/gemini). Its routes and prices, live from the catalogue, are public JSON with no API key needed at https://api.opper.ai/v3/models?q=gemini-3.1-flash-image-preview.

| Provider | Model id | Region | Zero data retention | Training | Input | Output | Cache read |
| --- | --- | --- | --- | --- | --- | --- | --- |
| [Google Cloud](https://opper.ai/provider/google) | `vertexai/gemini-3.1-flash-image` | Multi-region | Abuse monitoring | No | $0.50 | $3.00 | Input price |
| [Google Cloud](https://opper.ai/provider/google) | `vertexai:eu/gemini-3.1-flash-image` | EU | Abuse monitoring | No | $0.55 | $3.30 | $0.06 |

## Key info

- Model id: `gemini-3.1-flash-image-preview` (routes across Google Cloud)
- Input: Text, Image, Video, Files
- Output: Text, Image
- Features: Tools, Structured output
- Context window: 131K
- Max output: 33K
- Text input price: $0.55 per 1M tokens ($0.06 cache read)
- Text output price: $3.30 per 1M tokens
- Image output price: $66.00 per 1M tokens
- Released: 26 Feb 2026
- EU residency available on Google Cloud
- Zero data retention with abuse monitoring
- No training by default

## Data handling per route

Each route hosting Gemini 3.1 Flash Image Preview has its own privacy posture, residency, and GDPR terms. Postures are maintained by Opper with a last-verification timestamp.

### Google Cloud — Multi-region

Zero data retention with abuse monitoring: nothing is logged or used for training; content flagged by abuse monitoring is held for review. No training on customer data. GLOBAL; SCCs.

- Zero data retention: With abuse monitoring, flagged content held.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: On by default, holds flagged content, 90 days, a person can view samples
- Transfer mechanism: SCCs

Verified by Opper on 2026-10-26.

### Google Cloud — EU

Zero data retention with abuse monitoring: nothing is logged or used for training; content flagged by abuse monitoring is held for review. No training on customer data. EU.

- Zero data retention: With abuse monitoring, flagged content held.
- Training: No training on customer data.
- Logging: None
- Abuse monitoring: On by default, holds flagged content, 90 days, a person can view samples
- Transfer mechanism: Not applicable — data stays in EU

Verified by Opper on 2026-10-26.

## Get started

Call Gemini 3.1 Flash Image Preview through the Opper gateway with one API key. Gemini 3.1 Flash Image Preview draws on Opper's images endpoint, POST /v3/images, and also answers in chat on the OpenAI-compatible endpoint.

See the [Opper images guide](https://docs.opper.ai/build/multimodal/images) and the [Opper multimodal skill](https://skills.opper.ai/opper-multimodal/SKILL.md).

Gemini 3.1 Flash Image Preview is a premium model on Opper. Sign up needs no credit card: you get an API key straight away and the free models work in the playground and the API. Add a card to use premium models, pay-as-you-go with no minimum.

### Set it up with your agent

Paste this into a coding agent like Claude Code, Cursor or Codex and it will wire up Opper for you:

```text
Use curl to download, read and follow: https://skills.opper.ai/opper-multimodal/SKILL.md Generate an image with Gemini 3.1 Flash Image Preview
```

### Or call it directly

cURL:

```bash
curl -s https://api.opper.ai/v3/images \
  -H "Authorization: Bearer $OPPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "vertexai:eu/gemini-3.1-flash-image",
    "prompt": "A watercolor lighthouse on a cliff at sunrise",
    "aspect_ratio": "1:1",
    "quality": "medium"
  }' \
  | jq -r '.data[0].b64_json' | base64 --decode > image.png

# To edit an image, add "image": "https://..." (or a file_<id>) to the body
```

JavaScript:

```javascript
import { writeFile } from "node:fs/promises";

const res = await fetch("https://api.opper.ai/v3/images", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.OPPER_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "vertexai:eu/gemini-3.1-flash-image",
    "prompt": "A watercolor lighthouse on a cliff at sunrise",
    "aspect_ratio": "1:1",
    "quality": "medium"
  }),
});
const { data } = await res.json();
// Each image comes back as base64 (b64_json) unless you ask for a url
await writeFile("image.png", Buffer.from(data[0].b64_json, "base64"));
```

OpenAI (chat):

```javascript
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.OPPER_API_KEY,
  baseURL: "https://api.opper.ai/v3/compat",
});

// In chat the model answers with text and images in one message
const completion = await client.chat.completions.create({
  model: "gemini-3.1-flash-image-preview",
  messages: [{ role: "user", content: "Draw a watercolor lighthouse on a cliff at sunrise" }],
});
console.log(completion.choices[0].message);
```

## Use Gemini 3.1 Flash Image Preview in your apps

Pick your tool to see how to run it on Gemini 3.1 Flash Image Preview through Opper.

- [Claude Code](https://opper.ai/apps/claude-code/gemini-3-1-flash-image-preview)
- [Claude Cowork](https://opper.ai/apps/claude-cowork/gemini-3-1-flash-image-preview)
- [Codex](https://opper.ai/apps/codex/gemini-3-1-flash-image-preview)
- [DeepSeek Harness](https://opper.ai/apps/deepseek-harness/gemini-3-1-flash-image-preview)
- [GitHub Copilot CLI](https://opper.ai/apps/github-copilot-cli/gemini-3-1-flash-image-preview)
- [Aider](https://opper.ai/apps/aider/gemini-3-1-flash-image-preview)
- [Goose](https://opper.ai/apps/goose/gemini-3-1-flash-image-preview)
- [Droid](https://opper.ai/apps/droid/gemini-3-1-flash-image-preview)
- [OpenCode](https://opper.ai/apps/opencode/gemini-3-1-flash-image-preview)
- [Pi](https://opper.ai/apps/pi/gemini-3-1-flash-image-preview)
- [OpenClaw](https://opper.ai/apps/openclaw/gemini-3-1-flash-image-preview)
- [Hermes](https://opper.ai/apps/hermes/gemini-3-1-flash-image-preview)
- [Copilot for Obsidian](https://opper.ai/apps/obsidian-copilot/gemini-3-1-flash-image-preview)
- [OmniRoute](https://opper.ai/apps/omniroute/gemini-3-1-flash-image-preview)
- [Cursor](https://opper.ai/apps/cursor/gemini-3-1-flash-image-preview)
- [Cline](https://opper.ai/apps/cline/gemini-3-1-flash-image-preview)
- [Continue](https://opper.ai/apps/continue/gemini-3-1-flash-image-preview)
- [Kilo Code](https://opper.ai/apps/kilo-code/gemini-3-1-flash-image-preview)
- [GitHub Copilot](https://opper.ai/apps/github-copilot/gemini-3-1-flash-image-preview)
- [Zed](https://opper.ai/apps/zed/gemini-3-1-flash-image-preview)
- [JetBrains AI Assistant](https://opper.ai/apps/jetbrains-ai-assistant/gemini-3-1-flash-image-preview)
- [Voidleap Code](https://opper.ai/apps/voidleap-code/gemini-3-1-flash-image-preview)
- [n8n](https://opper.ai/apps/n8n/gemini-3-1-flash-image-preview)
- [LibreChat](https://opper.ai/apps/librechat/gemini-3-1-flash-image-preview)
- [Open WebUI](https://opper.ai/apps/open-webui/gemini-3-1-flash-image-preview)
- [See all apps](https://opper.ai/apps)

## Other models from Google

- [Gemini 4 Argon](https://opper.ai/google/gemini-4-argon)
- [Gemini 3.8 Flash](https://opper.ai/google/gemini-3-8-flash)
- [Gemini 3.5 Flash-Lite](https://opper.ai/google/gemini-3-5-flash-lite)
- [Gemini 3.7 Flash](https://opper.ai/google/gemini-3-7-flash)
- [Gemini 3.6 Flash](https://opper.ai/google/gemini-3-6-flash)
- [Gemini 3.5 Flash](https://opper.ai/google/gemini-3-5-flash)
