Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image)
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…
- Generation price
- Queue time
- median latency
- Completion
- median duration
01Routes
02Capabilities
- Input
- image · text
- Output
- image
- Context
- —
- Max output
- —
Vision
Supported parameters (4)
aspect_ratioinput_referencesnresolution
03Quick start
Call it with your RProuter key
Send JSON to /v1/images with this model ID. The example below uses parameters this model supports.
curl "$RPROUTER_BASE_URL/images" \
-H "Authorization: Bearer $RPROUTER_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"model":"google/gemini-3.1-flash-lite-image","prompt":"A quiet library beneath the stars","aspect_ratio":"2:3","resolution":"1K"}'04Example request and response
Request
POST /v1/images
Authorization: Bearer YOUR_RPROUTER_KEY
{
"model": "google/gemini-3.1-flash-lite-image",
"prompt": "A quiet library beneath the stars",
"aspect_ratio": "2:3",
"resolution": "1K"
}Response from a synchronous provider
200 OK
{
"response_type": "sync",
"sync": {
"created": 1794700000,
"data": [
{
"b64_json": "iVBORw0KGgoAAAANSUhEUgAA…",
"media_type": "image/png"
}
],
"usage": {
"prompt_tokens": 0,
"completion_tokens": 1290,
"total_tokens": 1290,
"cost": 0.039
}
},
"async": null
}