Models/google

gemini-3.1-flash-image-preview· Released Feb 26, 2026

google/gemini-3.1-flash-image-preview

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...

Input
From$0.4444/M
Output
From$2.6664/M
Context
Up to 131K
Max output
Up to 66K
Modalities
ImageTextImageText

Input and output show the lowest price across upstreams, for reference. Your actual prices are listed per upstream below.

Upstreams & pricing
UpstreamContextMax outputInput $/1MOutput $/1MData policy
Zenlayer AI Gateway-openai_compat/GlobalFrom price
131K66K
$0.4444
$2.6664
—

Routed in real time — you pay the listed price of whichever upstream serves your call. Data policies reflect each upstream's own data terms and its agreement with us. We do not independently audit upstream implementations.

How to call
bashrequest.sh
curl https://api.lune.io/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-3.1-flash-image-preview",
    "messages": [
      {"role": "user", "content": "Say hello in five words."}
    ]
  }'