Back to Models
Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview)
google/gemini-3.1-flash-image-previewFeb 26, 202665.5K context65.5K max output$0.50/M in · $3.00/M outReasoning
Description
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
Specifications
Provider
google
Context Length
65.5K
Max Output
65.5K
Modality
Inimagetext
Outimagetext
Pricing
| Type | Price / 1M tokens |
|---|---|
| Input | $0.50 |
| Output | $3.00 |
| Web Search | $0.01 / call |
Quick Start
curl https://api.ominigate.ai/v1/chat/completions \
-H "Authorization: Bearer sk-omg-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-3.1-flash-image-preview",
"messages": [{"role": "user", "content": "Hello!"}]
}'