Nano Banana 2

google/gemini-3.1-flash-image
Capabilities
4
0.5K1K2K4K
Context length
—
Tokens
Max output tokens
—
Tokens
Type
Image
Google

Playground

Input

Output

Pricing

Pricing breakdown
Usage-based pricing, broken down by billing item at your current rates.
40% off

Input tokens

Standard rate
0.3 credits / 1M

Input image tokens

Standard rate
0.3 credits / 1M

Output tokens

Standard rate
1.8 credits / 1M

Output image tokens

Standard rate
36 credits / 1M

Billing items are additive. Only one matching price tier applies to each item. Charges are calculated from actual usage per request, with each item rounded up.

API

cURL example
POST/v1beta/models/google/gemini-3.1-flash-image:generateContent
SynchronousGemini
curl "https://api.modelrover.ai/v1beta/models/google/gemini-3.1-flash-image:generateContent" \  -X POST \  -H "x-goog-api-key: $API_KEY" \  -H "Content-Type: application/json" \  -d '{  "contents": [    {      "role": "user",      "parts": [        {          "text": "A quiet mountain lake."        }      ]    }  ],  "generationConfig": {    "responseModalities": [      "IMAGE"    ]  }}'

Set your API_KEY environment variable before running. Keep your key server-side.

API documentation

Uptime