Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image)
Image Generationgoogle/gemini-3.1-flash-lite-imageNano Banana 2 Lite (Gemini 3.1 Flash Lite Image) is Google's most cost-efficient image generation and editing model, sitting at the lowest price point in the Nano Banana family. Released on 2026-06-30, it covers text-to-image generation, image editing and multi-image composition, with outputs rendered at 1K resolution across 14 aspect ratios. Image input is accepted, so existing pictures can be edited or combined as references rather than only generated from scratch. Available via OpenAI and Gemini protocols through Ofox.
Context Window
66K
Max Output Tokens
64K
Released
2026-06-30
Capabilities
Vision
Available Providers
Vertex
Supported Protocols
openaigemini
Providers
Vertex
Input Tokens
$0.25/M
Output Tokens
$1.5/M
Output Image
$30/M
Protocols
openai
/v1/chat/completions/v1/images/generationsgemini
Code Examples
from google import genaiclient = genai.Client(api_key="YOUR_OFOX_API_KEY",http_options={"api_version": "v1beta", "base_url": "https://api.ofox.run/gemini"},)response = client.models.generate_content(model="google/gemini-3.1-flash-lite-image",contents="Generate an image of a beautiful sunset over mountains",)print(response.text)
Related Models
Frequently Asked Questions
Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) on Ofox.ai costs $0.25/M per million input tokens and $1.5/M per million output tokens. Pay-as-you-go, no monthly fees.
Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) supports a context window of 66K tokens with max output of 64K tokens, allowing you to process large documents and maintain long conversations.
Simply set your base URL to https://api.ofox.run/v1 and use your Ofox API key. The API is OpenAI-compatible — just change the base URL and API key in your existing code.
Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) supports the following capabilities: Vision. Access all features through the Ofox.ai unified API.