Skip to contentx402 is live on Robinhood Chain: agents can now pay for any model, per call, in USDG →
OmniRail
← All models

Google · Language + Image model

Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image)

google/gemini-3.1-flash-lite-image
  • Language
  • Image
Released Jun 30, 2026

Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) is Google's fastest, most cost-efficient Gemini image model, built for high-velocity developer pipelines and rapid-fire visual exploration. It delivers text-to-image generation...

As a language model

Specifications

Context window
65,536 tokens
Max output
58,982 tokens
Input
image, text
Output
image, text
Reasoning effort
high, minimal
Tokenizer
Gemini
Knowledge cutoff
2025-01-01

Supported parameters

Accepted by the model and forwarded as-is by the gateway.

  • max_tokens
  • reasoning
  • reasoning_effort
  • response_format
  • seed
  • temperature
  • top_p

Use it

POST /api/v1/chat/completions · MCP chat · full reference

curl https://omnirail.org/api/v1/chat/completions \
  -H "Authorization: Bearer $OMNIRAIL_KEY" -H "Content-Type: application/json" \
  -d '{"model":"google/gemini-3.1-flash-lite-image","messages":[{"role":"user","content":"Hello"}],"max_tokens":300}'

As an image model

Specifications

Input
image, text
Output
image, text
Editing
yes, up to 14 reference images
Images per call
1
Served by
Google Vertex, Google AI Studio

Request options

Validated against these values; anything else returns 400 with the allowed list.

resolution
1K
aspect_ratio
1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9

Use it

POST /api/v1/images · /images/edits · MCP generate_image · edit_image · full reference

curl https://omnirail.org/api/v1/images \
  -H "Authorization: Bearer $OMNIRAIL_KEY" -H "Content-Type: application/json" \
  -d '{"model":"google/gemini-3.1-flash-lite-image","prompt":"a lighthouse at dawn, 35mm film","aspect_ratio":"1:1"}'