Nano Banana 2 (Gemini 3.1 Flash Image Preview)
Google's Nano Banana 2 (Gemini 3.1 Flash Image Preview) is a image-generation model. Gemini 3.1 Flash Image Preview, a.k.a. "Nano Banana 2," is Google’s latest state of the art image generation and editing model, delivering Pro-level visual quality at Flash speed. It combines...
by Google · 66K token context window
Best for
- image generation from text
- creative design and ideation
Ways to use Nano Banana 2 (Gemini 3.1 Flash Image Preview) in osFoundry
Connect with your own key (BYOK)
Open the key dialog and paste your Google API key. osFoundry discovers Nano Banana 2 (Gemini 3.1 Flash Image Preview) automatically — assign it to a Maestro role (router, direct, orchestrator, or fallback) in the Pipeline tab and it is live in every chat. Your key, your provider account — no token markup.
Use it in a Room App
Room Apps declare AI features in their manifest, then call them with invokeAI:
import { invokeAI } from '@osfoundry/app-sdk'
// 'summarize' is an AI feature declared in your app manifest.
const result = await invokeAI('summarize', userText)
Call it from your own apps
Once a model is wired into your workspace you can host it as an API and reach it from your own services, scripts, or CI — outside osFoundry.
Nano Banana 2 (Gemini 3.1 Flash Image Preview) vs similar models
| Model | Org | Params | Context | Input price | Self-host |
|---|
| Nano Banana 2 (Gemini 3.1 Flash Image Preview) | Google | — | 66K | $ 0.500 /1M | API only |
| Seed-2.0-Mini | ByteDance Seed | — | 262K | $ 0.100 /1M | API only |
| Qwen3.5-35B-A3B | Qwen | — | 262K | $ 0.140 /1M | API only |
| GPT-5.3 Chat | OpenAI | — | 128K | $ 1.75 /1M | API only |
Licence
Hosted — usage subject to provider terms — Hosted-only model — usage governed by the provider's API terms. Bring your own provider key.
No weights distributed; usage subject to provider terms.
Frequently asked about Nano Banana 2 (Gemini 3.1 Flash Image Preview)
How much does Nano Banana 2 (Gemini 3.1 Flash Image Preview) cost?
Nano Banana 2 (Gemini 3.1 Flash Image Preview) is metered at $ 0.500 /1M for input, and $ 3.00 /1M for output. Bring your own Google API key — osFoundry passes through provider pricing without markup.
Can I use Nano Banana 2 (Gemini 3.1 Flash Image Preview) commercially?
Commercial use is allowed with conditions. Hosted-only model — usage governed by the provider's API terms. Bring your own provider key. No weights distributed; usage subject to provider terms.
What is the context window of Nano Banana 2 (Gemini 3.1 Flash Image Preview)?
Nano Banana 2 (Gemini 3.1 Flash Image Preview) supports a 66K token context window.
Can I run Nano Banana 2 (Gemini 3.1 Flash Image Preview) locally?
No — Nano Banana 2 (Gemini 3.1 Flash Image Preview) is hosted only and accessed via the Google API.
What is Nano Banana 2 (Gemini 3.1 Flash Image Preview) best at?
Nano Banana 2 (Gemini 3.1 Flash Image Preview) is well-suited to image generation from text, creative design and ideation.
How do I use Nano Banana 2 (Gemini 3.1 Flash Image Preview) in osFoundry?
Paste your Google API key in the key dialog (or deploy the open weights for self-hostable models), assign Nano Banana 2 (Gemini 3.1 Flash Image Preview) to a Maestro role in the Pipeline tab, then use it in chat, Room Apps via invokeAI, or your own apps.
Published by Google on February 26, 2026. Source: https://openrouter.ai/google/gemini-3.1-flash-image-preview