Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) API
Nano Banana 2 Lite is Google's fastest, most cost-efficient image generation model in the Nano Banana family, built on the Gemini 3.1 Flash-Lite foundation for high-volume 1K image creation.
Nano Banana 2 Lite is Google's lightweight image generation and editing model, powered by the Gemini 3.1 Flash-Lite Image architecture. It accepts text, image, and video input and produces text and image output, including interleaved text and image generation. Images are generated at 1K resolution (1024x1024 pixels) across a discrete set of 14 aspect ratios, with legible text rendered directly into the image. It supports text-to-image generation as well as image editing through multi-turn conversations, handling interleaved generation and editing in a single workflow, and can accept up to 10 reference images for editing tasks.
This model is designed for speed and efficiency. It can generate a text-to-image output in as little as four seconds and maintains high character alignment matching original Nano Banana standards. It is the recommended replacement for gemini-2.5-flash-image. Every generated image carries an invisible SynthID digital watermark and C2PA metadata, both always on and not configurable. It is drop-in compatible with OpenAI APIs and supports configurable model selection within the same node.
Nano Banana 2 Lite suits high-volume 1K image generation, rapid concept previews, simple product-image variations, background or layout ideation, and latency-sensitive or cost-sensitive workloads. It is also useful for visual drafts, marketing concepts, product scenes, social media assets, thumbnails, and localized ad variations with in-image text rendering. Its knowledge cutoff date is January 2025, and it does not support 2K or 4K resolutions or Google Search grounding.
Updated:
MODEL ID
gemini-3.1-flash-lite-image- Context
- 65.536K
- Max output
- 58.982K
- Input
- image / text
- Output
- image / text
Highlights
- Google's fastest and most cost-efficient Nano Banana image model
- Text-to-image output in as little as four seconds
- 1K resolution at 1024x1024 pixels
- 14 supported aspect ratios
- Up to 10 reference images for editing
- SynthID watermark and C2PA metadata always on
Providers
Best priceCompare API prices across providers. Select a provider to view all charges and conditions.
| Uptime | |||
|---|---|---|---|
| $0.25 | $1.5 | ||
| $0.25 | $1.5 |
Historical observations are not a live health check. Missing data does not mean an outage.
Benchmarks
- 6.70
Scientific Image Benchmark
Scored 6.70, compared with 7.60 for Nano Banana Pro and 7.59 for Nano Banana 2.
Scores as published by the model provider.
Reasoning
- Default effort
- minimal
- Enabled by default
- Yes
- Always enabled
- No
- Available effort levels
- high / minimal / none
Quick Start
Submit an image task, poll its status, then save the images. These examples use curl and Python 3 (standard library only).
POST https://openapi.felo.ai/api/v1/images/generations
1Get your API key
Create a key from your Felo API Platform account and set it as an environment variable.
export FELO_API_KEY="YOUR_API_KEY"2Make your first request
Optional values vary by model. This example leaves them unset; confirm supported values in Playground before adding them. Request fields sit alongside model and prompt, without an input wrapper.
curl --fail-with-body --max-time 60 "https://openapi.felo.ai/api/v1/images/generations" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-o created.json \
-d '{
"prompt": "A studio product photo of a ceramic coffee cup on warm linen, soft morning light",
"model": "gemini-3.1-flash-lite-image"
}'3Poll the task
Submission returns task_id. Poll every 3 seconds while queued or running; stop on succeeded, failed or interrupted. This example stops waiting after 30 minutes. Keep created.json to resume querying the same task instead of submitting again.
python3 - <<'PY'
import json, os, time
from pathlib import Path
from urllib.parse import quote
from urllib.request import Request, urlopen
task = json.loads(Path("created.json").read_text())
task_id = task["task_id"]
url = "https://openapi.felo.ai/api/v1/images/generations/" + quote(task_id, safe="")
headers = {"Authorization": "Bearer " + os.environ["FELO_API_KEY"]}
deadline = time.monotonic() + 1800
while task["status"] in ("queued", "running"):
if time.monotonic() >= deadline:
raise TimeoutError(f"Keep task_id={task_id} to resume polling")
time.sleep(3)
with urlopen(Request(url, headers=headers), timeout=60) as response:
task = json.load(response)
if task.get("task_id") != task_id or task.get("kind") != "image":
raise ValueError("Unexpected task response")
print(task["status"])
if task["status"] != "succeeded":
raise RuntimeError(task.get("error") or task["status"])
if not task.get("outputs"):
raise ValueError("Task succeeded without image outputs")
Path("task.json").write_text(json.dumps(task))
print("Saved task.json")
PY4Download the output
After success, save outputs from task.json. Results may be HTTPS URLs, URL objects or b64_json. Download signed URLs promptly; media downloads do not use your API key.
python3 - <<'PY'
import base64, json
from pathlib import Path
from urllib.request import urlopen
task = json.loads(Path("task.json").read_text())
if task.get("status") != "succeeded" or not task.get("outputs"):
raise ValueError("No completed image outputs")
extensions = {"image/png": ".png", "image/jpeg": ".jpg", "image/webp": ".webp", "image/gif": ".gif", "image/avif": ".avif"}
for index, output in enumerate(task["outputs"], 1):
item = output if isinstance(output, dict) else {}
url = output if isinstance(output, str) else item.get("url") or item.get("unsigned_url")
mime = item.get("media_type") or "image/png"
if url and url.startswith("https://"):
with urlopen(url, timeout=60) as response:
data = response.read()
mime = response.headers.get_content_type()
elif url and url.startswith("data:image/") and ";base64," in url:
header, encoded = url.split(",", 1)
mime = header[5:].split(";", 1)[0]
data = base64.b64decode(encoded, validate=True)
elif item.get("b64_json"):
data = base64.b64decode(item["b64_json"], validate=True)
else:
raise ValueError("Unrecognized image output")
path = Path(f"image-{index}" + extensions.get(mime, ".bin"))
path.write_bytes(data)
print(path)
PYinput_references
For image editing, replace the example URL with your HTTPS image URL or a base64 image data URL. Submit once, then use the same polling and saving steps.
curl --fail-with-body --max-time 60 "https://openapi.felo.ai/api/v1/images/generations" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-o created.json \
-d '{
"prompt": "Keep the product and framing. Replace the background with a sunlit marble countertop.",
"model": "gemini-3.1-flash-lite-image",
"input_references": [
{
"type": "image_url",
"image_url": {
"url": "https://example.com/product.png"
}
}
]
}'Supported parameters
- n
- seed
- top_p
- reasoning
- max_tokens
- resolution
- temperature
- aspect_ratio
- response_format
- input_references
- reasoning_effort
- include_reasoning
Prefer the full reference?
API reference →Frequently asked questions
What is Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image)?
Nano Banana 2 Lite is Google's lightweight image generation and editing model, powered by the Gemini 3.1 Flash-Lite Image architecture. It accepts text, image, and video input and produces text and image output, including interleaved text and image generation. Images are generated at 1K resolution (1024x1024 pixels) across a discrete set of 14 aspect ratios, with legible text rendered directly into the image. It supports text-to-image generation as well as image editing through multi-turn conversations, handling interleaved generation and editing in a single workflow, and can accept up to 10 reference images for editing tasks. This model is designed for speed and efficiency. It can generate a text-to-image output in as little as four seconds and maintains high character alignment matching original Nano Banana standards. It is the recommended replacement for gemini-2.5-flash-image. Every generated image carries an invisible SynthID digital watermark and C2PA metadata, both always on and not configurable. It is drop-in compatible with OpenAI APIs and supports configurable model selection within the same node. Nano Banana 2 Lite suits high-volume 1K image generation, rapid concept previews, simple product-image variations, background or layout ideation, and latency-sensitive or cost-sensitive workloads. It is also useful for visual drafts, marketing concepts, product scenes, social media assets, thumbnails, and localized ad variations with in-image text rendering. Its knowledge cutoff date is January 2025, and it does not support 2K or 4K resolutions or Google Search grounding.
How is usage billed?
Your bill depends on the provider you use, its prices and your usage. Longer inputs or other conditions may have different prices.
What input modalities does Nano Banana 2 Lite support?
It accepts text, image, and video input and produces text and image output, including interleaved text and image generation.
What resolution and aspect ratios can it generate?
It generates images at 1K resolution (1024x1024 pixels) and supports a discrete set of 14 aspect ratios. It does not support 2K or 4K resolutions.
Can it edit images and use reference images?
Yes. It supports image editing through multi-turn conversations and can accept up to 10 reference images for editing tasks, handling interleaved generation and editing in a single workflow.
What is the input limit for Nano Banana 2 Lite?
It has a 65,536-token input limit.
How does it differ from other Nano Banana models?
Nano Banana 2 Lite is Google's fastest and most cost-efficient image generation model in the Nano Banana family. On the Scientific Image Benchmark, it scored 6.70, while Nano Banana Pro and Nano Banana 2 scored 7.60 and 7.59 respectively.
Does it add watermarks to generated images?
Yes. Every generated image includes an invisible SynthID digital watermark and C2PA metadata, and these are always on and not configurable.
Related models
Nano Banana 2.1
GoogleImagegemini-nano-banana-2.1Google's Nano Banana 2.1 is a high-efficiency Gemini 3 series image generation and editing model with multi-turn editing and strong text rendering.
Output
image / text
Context
65.536K
Input tokens
$1.5 / 1M tokens
Output tokens
$7.5 / 1M tokens
Nano Banana Pro (Gemini 3 Pro Image)
GoogleImagegemini-3-pro-imageGoogle's flagship image generation and editing model, built on Gemini 3 Pro, delivering up to 4K visuals with precise multilingual text rendering and studio-grade controls.
Output
image / text
Context
131.072K
Input tokens
$2 / 1M tokens
Output tokens
$12 / 1M tokens