Gemini

Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image)

Image Generation
google/gemini-3.1-flash-lite-image

Gemini 3.1 Flash Lite Image is Google's most cost-efficient image generation and editing model, supporting text-to-image, image editing, and multi-image composition. Outputs generated at 1K resolution across 14 aspect ratios, at the lowest price point in the Nano Banana family.

Context Window
66K
Max Output Tokens
64K
Released
2026-06-30
Capabilities
Vision
Available Providers
GoogleCloudVertex
Supported Protocols
OpenAIopenaiGeminigemini

Providers

GoogleCloudVertex
Input Tokens
$0.25/M
Output Tokens
$1.5/M
Output Image
$30/M
Protocols
OpenAIopenai/v1/chat/completions/v1/images/generations
Geminigemini

Code Examples

from google import genai
client = genai.Client(
api_key="YOUR_OFOX_API_KEY",
http_options={"api_version": "v1beta", "base_url": "https://api.ofox.ai/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)

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.