Gemini 3.1 Flash Image (Nano Banana 2)

Google's latest image generation model combining Nano Banana Pro's advanced capabilities with Gemini Flash's speed. Supports text and image input, outputs text and images up to 4K resolution.

Input price
$0.45list $0.50-10%
Output price
$2.70list $3.00-10%
Context
128K
Max output
8K
Modalities
InputTextImagePDFOutputTextImage
—
—
Released
2026-05-28
Knowledge cutoff
—
Try in ChatCompare

Providers

Providers that serve this model. With Auto, each request goes to the best available provider. Prices in USD per 1M tokens; stats cover the last 30 days.

Pricing

Prices vary by provider. Showing Google (Gemini), the lowest. Pick a provider above to see its prices.

Input
$0.45list $0.50-10%
per 1M tokens
Output
$2.70list $3.00-10%
per 1M tokens
Cache read
$0.045list $0.05-10%
per 1M tokens
Reasoning output
$2.70list $3.00-10%
per 1M tokens
Image input
$0.45list $0.50-10%
per 1M tokens
Image output
$54.00list $60.00-10%
per 1M tokens
Web search
$0.0126list $0.014-10%
per request

Make a request

Set your provider preferences, then copy the request. It reads your API key from OHMYGPT_API_KEY.

Google Gemini supports pinning one provider only. Other preferences work with Chat Completions and Responses.

curl https://api.ohmygpt.com/v1/models/google/gemini-3.1-flash-image:generateContent \
  -H "x-goog-api-key: $OHMYGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [
      {
        "parts": [
          {
            "text": "Hello"
          }
        ]
      }
    ]
  }'

Similar models

Other models with the same output types at a similar price.

  • Better value: more capable, lower price
  • Pareto frontier
  • Similar models

Capability scores are from Epoch AI’s Epoch Capabilities Index (CC BY 4.0, as of 2026-11-02), which combines dozens of benchmarks with GPT-5 set at 150. epoch.ai/eci

Price: our current input price per 1M tokens in USD, lowest across channels. Dated snapshots and resold copies of the same model are merged into one point; free models are not shown.

Shaded area: capability above and price below the median of all models. Pareto frontier: no other model is both cheaper and more capable.

Gemini 3.1 Flash Image (Nano Banana 2)This model
—
Input
$0.45
Output
$2.70
152
Input
$0.45
Output
$2.70
148
Input
$0.4592–$0.66
Output
$2.4088–$3.30
—
Input
$0.44
Output
$2.20
—
Input
$0.4672
Output
$2.336