AI Models/Gemini/Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview)
GeminiChat

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

google/gemini-3.1-flash-image-preview
66KContext Window
66KMax Output
Supported Protocols:reasoninginclude_reasoningmax_tokenstemperaturetop_pseedresponse_formatstopstructured_outputs
Normal

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 advanced contextual understanding with fast, cost-efficient inference, making complex image generation and iterative edits significantly more accessible. Aspect ratios can be controlled with the [image_config API Parameter](https://openrouter.ai/docs/features/multimodal/image-generation#image-aspect-ratio-configuration)

Capabilities

👁 Vision🧠 ReasoningText GenerationCode GenerationAnalysis & ReasoningReasoning

Technical Specs

Input Modality
Image、Text
Output Modality
Image、Text
Arch
Default Temperature
0.7
Default Top_P
1

Pricing

Pay per use, no monthly fees
Billing TypeUnitPrice
Text Input$0.5000/M tokens
Text Output$3.0000/M tokens
Reasoning$0.5000/M tokens
Web Search$0.0140/次

Quick Start

from openai import OpenAI

client = OpenAI(
    base_url="https://api.uniontoken.ai/v1",
    api_key="YOUR_UNIONTOKEN_API_KEY",
)

response = client.chat.completions.create(
    model="google/gemini-3.1-flash-image-preview",
    messages=[
        {"role": "user", "content": "Hello!"}
    ],
)

print(response.choices[0].message.content)

FAQ

Ready to get started?

Get 1M free tokens on registration, no monthly fees or minimum spend

Register Now →