Gemini 3.1 Flash Lite Image (Nano Banana 2 Lite)

google/gemini-3.1-flash-lite-image

A chat model with a 66K-token context window, at $0.2625 per million input tokens and $1.575 per million output tokens.

Details

Maker
google
Kind
Chat
Context window
65,536 tokens
Max output
4,096 tokens
Input
$0.2625 per million tokens
Cached input
$0.0315 per million tokens, 88% off
Cache write
Same as input
Output
$1.575 per million tokens
Capabilities
Reasoning, vision, web search, image generation
Takes
Text, image
Returns
Text, image
Zero data retention
Not on every provider
No training on requests
Yes, on every provider
Released
2026-06-30
Newer model
google/gemini-3.5-flash-lite-batchReleased later by the same maker, costs no more, and lists the same capabilities. Compare the two

Description

Gemini 3.1 Flash-Lite Image (Nano Banana 2 Lite) is Google's fastest image generation model enabling rapid creation and iteration.

Call it

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

Set PHANTOM_KEY to your key. Any OpenAI client works with the base URL https://phantom.codes/v1.