gemini-3.1-flash-image-preview by openrouter - AI Model Details, Pricing, and Performance Metrics

google
gemini-3.1-flash-image-preview
Try
google

gemini-3.1-flash-image-preview

completions
byopenrouter

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)

Context
65536
Input
$0.5 / 1M tokens
Output
$3 / 1M tokens
Capabilities: reasoning
Accepts: text, image
Returns: text

Access gemini-3.1-flash-image-preview through LangDB AI Gateway

Recommended

Integrate with google's gemini-3.1-flash-image-preview and 250+ other models through a unified API. Monitor usage, control costs, and enhance security.

Unified API
Cost Optimization
Enterprise Security
Get Started Now

Free tier available • No credit card required

Instant Setup
99.9% Uptime
10,000+Monthly Requests

Code Examples

Integration samples and API usage