Nano Banana 2 Lite API gives you Google's Gemini 3.1 Flash Lite Image on APIMart for low-latency, cost-effective 1K image generation and editing, with up to 14 reference images, on the official nano-banana-2-lite or nano-banana-2-lite-ext route.

Image link valid for 72 hours
Transparent pricing with no hidden fees. Pay only for what you use.
| Variant | GoldCurrent price | Platinum | Diamond | Official | Your savings |
|---|---|---|---|---|---|
nano-banana-2-litePrices are estimates; actual cost is billed by token usage. | 0.32Credits(~$0.032)/pic | 0.304Credits(~$0.0304)/pic | 0.288Credits(~$0.0288)/pic | 0.4Credits(~$0.04)/pic | 20% |
* Actual costs are subject to final output.
Google built Nano Banana 2 Lite for ultra-low latency and cost-effective image generation and editing. Create 1K images in 10 aspect ratios, edit with up to 14 reference images and get results by polling or webhook. Affordable pay-as-you-go billing with up to 28% off for members.
50K+
Active Users
99.9%
Uptime
2x
Faster
70%
Cost Savings
Call Google Nano Banana 2 Lite on APIMart with one POST request. Nano Banana 2 Lite generation is asynchronous: submit a task, then poll the task endpoint or use a webhook to get the image URL.
Save the key you created above in the APIMART_API_KEY environment variable and send it as Authorization: Bearer <key> on every request.
POST /v1/images/generations with the Nano Banana 2 Lite model, your prompt and size. Add image_urls to edit images. The response returns a task_id.
Send GET /v1/tasks/{task_id} until the Nano Banana 2 Lite task is completed, then read the image URL from data.result.images[0].url[0], or receive it on your webhook. Download images you want to keep. A failed task returns the reason in error.message.
See the Nano Banana 2 Lite API documentation for every parameter and response field.
curl -X POST https://api.apimart.ai/v1/images/generations \
-H "Authorization: Bearer $APIMART_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-flash-lite-image",
"prompt": "A cheerful orange robot mascot waving, flat illustration on a pale blue background",
"n": 1,
"size": "16:9"
}'import os
import time
import requests
API_BASE = "https://api.apimart.ai"
headers = {"Authorization": f"Bearer {os.environ['APIMART_API_KEY']}"}
# 1. Submit the generation task
payload = {
"model": "gemini-3.1-flash-lite-image",
"prompt": "A cheerful orange robot mascot waving, flat illustration on a pale blue background",
"n": 1,
"size": "16:9"
}
resp = requests.post(f"{API_BASE}/v1/images/generations", headers=headers, json=payload, timeout=60)
resp.raise_for_status()
task_id = resp.json()["data"][0]["task_id"]
# 2. Poll the task until it finishes
for _ in range(200):
task_resp = requests.get(f"{API_BASE}/v1/tasks/{task_id}", headers=headers, timeout=30)
task_resp.raise_for_status()
task = task_resp.json()["data"]
if task["status"] == "completed":
print(task["result"]["images"][0]["url"][0])
break
if task["status"] == "failed":
raise RuntimeError(task.get("error", {}).get("message", "generation failed"))
time.sleep(3)
else:
raise TimeoutError(f"task {task_id} did not finish in time")curl -X POST https://api.apimart.ai/v1/images/generations \
-H "Authorization: Bearer $APIMART_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-flash-lite-image",
"prompt": "Place the product from this photo on a marble kitchen counter in soft morning light and keep the label unchanged",
"n": 1,
"size": "1:1",
"image_urls": [
"https://example.com/product.jpg"
]
}'TASK_ID="task_xxx" # replace with the task_id returned by the POST request
curl "https://api.apimart.ai/v1/tasks/$TASK_ID" \
-H "Authorization: Bearer $APIMART_API_KEY"| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Required | Default: gemini-3.1-flash-lite-image | Official gemini-3.1-flash-lite-image (alias nano-banana-2-lite) or gemini-3.1-flash-lite-image-ext (alias nano-banana-2-lite-ext). |
prompt | string | Required | Default: — | Text description of the image or the edit. |
size | string | Optional | Default: — | auto, 1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, 5:4, 4:5 or 21:9. For text to image, auto resolves to 1:1 or 16:9; for image editing, set it explicitly. |
resolution | string | Optional | Default: 1K | Only 1K is supported. Other values are generated at 1K. |
n | integer | Optional | Default: 1 | Number of images, sent as a number, not a string; 1 is recommended. |
image_urls | array | Optional | Default: — | Up to 14 reference images (ideally up to 10 objects and 4 characters) as public http(s) URLs or full data URIs. JPEG, PNG or WebP, max 10 MB each. |
nsfw_check | boolean | Optional | Default: false | Moderate the prompt and input images with omni-moderation-latest before submission. |
webhook | string | Optional | Default: — | Callback base URL. When the task succeeds or fails, APIMart calls webhook + /callback. Keep polling as a fallback. |
Compare every Nano Banana model on APIMart. One API key calls all of them, billed per image.
| Model | Base model | Best for | Resolution |
|---|---|---|---|
| Nano Banana API | Gemini 2.5 Flash Image | Character consistency, multi-image blending and prompt-based edits | 1K |
| Nano Banana Pro API | Gemini 3 Pro Image | Professional 4K images, legible multilingual text and consistency for up to 5 people | 1K / 2K / 4K |
| Nano Banana 2 API | Gemini 3.1 Flash Image | Fast, cost-efficient generation from 0.5K to 4K | 0.5K – 4K |
| Nano Banana 2 Lite APIThis page | Gemini 3.1 Flash Lite Image | Fast 1K images and editing, one image per request with up to 14 reference images | 1K |
| Gemini Nano Banana 2.1 API | Gemini Nano Banana 2.1 | Latest version: text-to-image and reference-image editing in 14 aspect ratios | 1K / 2K / 4K |
What Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) can do through one APIMart endpoint
Real-world Nano Banana 2 Lite applications on APIMart
Follow these simple steps to set up your account, add funds, and start generating images
Create your free APIMart account to access Nano Banana 2 Lite. It works for individuals, teams and enterprise applications.
Top up your account balance to start generating images. Your balance works across every model on APIMart, including Nano Banana 2 Lite.
Create an API key in the dashboard to authenticate every Nano Banana 2 Lite API request, then call Nano Banana 2 Lite with the sample code below.
What industry professionals say about the Nano Banana 2 family. These reviews describe the standard model; Lite supports 1K only.
“The speed of Nano Banana 2 is incredible! It handles our product images quickly, and keeping the same product consistent across scenes saves us a lot of reshoots.”
Sarah Chen
Architecture Firm Director
“Fast processing at a price that works for high volume - a game changer for our pipeline. Nano Banana 2 keeps our references consistent, which saves hours of manual fixes.”
James Rodriguez
Creative Technology Lead
“We mock up app screens and marketing visuals with Nano Banana 2, and the text in the UI comes out legible. It has noticeably sped up our design reviews.”
Alex Thompson
Mobile App Product Manager
“Nano Banana 2 delivers incredible value. It is fast while maintaining professional quality, which makes it a good fit for high-volume image generation.”
Emily Watson
Luxury Brand Marketing Director
“Professional storyboarding at AI speed. Nano Banana 2's character consistency makes it perfect for pre-visualization, and the pricing works for production workflows.”
David Kim
Film Production Creative Director
“Legible text rendering is perfect for our brand guidelines, and using reference images keeps our assets on brand across a whole campaign.”
Lisa Martinez
Enterprise Brand Designer
Everything you need to know about Nano Banana 2 Lite on APIMart
Nano Banana 2 Lite is Google's Gemini 3.1 Flash Lite Image, the lightest model in the Nano Banana 2 family, optimized for ultra-low latency and cost-effective image generation and editing. It outputs 1K images, accepts up to 14 reference images and is also written Nano Banana Lite or Nano Banana Lite 2 (Nano Banana Lite API). On APIMart you call it as the Nano Banana 2 Lite API with one API key.
Google released Nano Banana 2 Lite (gemini-3.1-flash-lite-image) to general availability on June 30, 2026, and the Nano Banana 2 Lite API is available on APIMart.
Nano Banana 2 Lite API requests need model and prompt. Optional parameters are size (auto or 10 aspect ratios), resolution (1K), n (default 1), image_urls (up to 14 reference images), nsfw_check and webhook. Google Search grounding, official_fallback and mask editing are not supported.
Yes. Add image_urls to the same POST /v1/images/generations request and describe the edit in the prompt. You can send up to 14 images as public URLs or base64 data URIs in JPEG, PNG or WebP up to 10 MB each, and Nano Banana 2 Lite returns the edited image.
Nano Banana 2 Lite is the lighter, lower-latency model and outputs 1K images only. Nano Banana 2 (Gemini 3.1 Flash Image) adds 0.5K, 2K and 4K output, extreme aspect ratios (1:4, 4:1, 1:8, 8:1) and Google Search grounding. Choose Lite for fast, high-volume 1K images and Nano Banana 2 for higher resolutions. For Lite models and their prices, use this page.
nano-banana-2-lite (gemini-3.1-flash-lite-image) is the official route and nano-banana-2-lite-ext (gemini-3.1-flash-lite-image-ext) is the Ext route. Both Nano Banana 2 Lite routes accept the same parameters and limits, and they are priced separately in the table above. The official route is billed by actual input and output token usage; Ext is billed per successfully generated image.
Nano Banana 2 Lite outputs 1K images. Supported Nano Banana 2 Lite sizes are auto, 1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, 5:4, 4:5 and 21:9. For text to image, auto resolves to 1:1 or 16:9; for edits, set the ratio explicitly.
The Nano Banana 2 Lite price depends on the route: the official route is settled on actual input and output token usage, while Ext is billed per successfully generated image at the rate for the selected specification. An estimated price per image for the official route is not a fixed final charge. Check this page's live pricing table for current rates and the completed task's cost for the final amount. Gold members save 20%; Platinum and Diamond members save up to 28%.
No. The Nano Banana 2 Lite API has no free quota on APIMart. It is pay-as-you-go, with billing determined by the selected route, and you only pay for successful requests. Gold members save 20%; Platinum and Diamond members save up to 28%.
Sign up for APIMart, open the API Keys page in your dashboard and create a key. The same key calls the Google Nano Banana 2 Lite API and every other model on the platform, with pay-as-you-go billing and no subscription.
Send POST https://api.apimart.ai/v1/images/generations with your API key, model gemini-3.1-flash-lite-image and your prompt. The response returns a task_id: poll GET /v1/tasks/{task_id} until status is completed, or pass a webhook URL. Copy-ready cURL and Python examples are on this page, and the Nano Banana 2 Lite API docs are at docs.apimart.ai.
Yes. Images you create with the Nano Banana 2 Lite API can be used commercially for apps, marketing drafts, e-commerce and content workflows, which suits teams that need many images quickly.
Explore more models in the same category.

Midjourney
Midjourney is a leading text-to-image AI model renowned for its painterly aesthetics, strong composition, and cinematic lighting. Generate high-quality images from text prompts or reference images, with fine-grained control over style, aspect ratio, and creative parameters — accessible programmatically through APIMart's unified API, no Discord required.

Wan 2.7 Image Pro
wan‑2‑7‑image is a powerful image generation model in Alibaba’s Wan 2.7 series that creates high‑quality visuals from text prompts. It produces detailed and realistic images with strong semantic understanding and refined composition. The model supports multimodal input—such as combining text with reference images—to influence style, layout, or visual direction. It’s well‑suited for creative workflows like product visuals, marketing graphics, social media content, and artistic illustrations, delivering both fidelity and expressive visual output.

Wan 2.7 Image
wan‑2‑7‑image is an advanced image generation model in Alibaba’s Wan 2.7 series designed to create high‑quality visuals from text prompts. It excels at generating detailed, realistic images with accurate object representation and rich composition. The model supports multimodal input (e.g., combining text with reference images) to influence style and structure, and it’s well‑suited for creative workflows such as marketing assets, product visuals, social media graphics, and artistic content production. With strong semantic understanding and prompt adherence, wan‑2‑7‑image delivers both fidelity and expressive visual output.

GPT Image 2
GPT Image 2 delivers next-gen AI image generation from text prompts with near-perfect text rendering, native 4K output, and deep world knowledge. As the latest in the GPT Image series, this GPT Image API supports model, prompt, and other parameters — ideal for production workflows.