APIMart
Nano Banana 2 Lite model icon
Image

Nano Banana 2 Lite API

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 GenerationImage Editing1K OutputCommercial use

Service Highlights

  • Official Discounts
  • Pay-as-you-go
  • Fast & Low Latency
Input
67 characters
Output
Generated 1

Image link valid for 72 hours

Nano Banana 2 Lite API Pricing

Transparent pricing with no hidden fees. Pay only for what you use.

VariantGoldCurrent pricePlatinumDiamondOfficialYour savings
nano-banana-2-lite

Prices are estimates; actual cost is billed by token usage.

0.32Credits(~$0.032)/pic0.304Credits(~$0.0304)/pic0.288Credits(~$0.0288)/pic0.4Credits(~$0.04)/pic20%

* Actual costs are subject to final output.

Google Nano Banana 2 Lite API (Gemini 3.1 Flash Lite Image) on APIMart

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

Nano Banana 2 Lite API Example: Text to Image and Image to Image

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.

  1. 1

    Authenticate Nano Banana 2 Lite API requests

    Save the key you created above in the APIMART_API_KEY environment variable and send it as Authorization: Bearer <key> on every request.

  2. 2

    Submit a Nano Banana 2 Lite task

    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.

  3. 3

    Get the Nano Banana 2 Lite result

    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.

POST /v1/images/generations
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"
  }'

Nano Banana 2 Lite API Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequiredDefault: gemini-3.1-flash-lite-imageOfficial 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).
promptstringRequiredDefault: —Text description of the image or the edit.
sizestringOptionalDefault: —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.
resolutionstringOptionalDefault: 1KOnly 1K is supported. Other values are generated at 1K.
nintegerOptionalDefault: 1Number of images, sent as a number, not a string; 1 is recommended.
image_urlsarrayOptionalDefault: —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_checkbooleanOptionalDefault: falseModerate the prompt and input images with omni-moderation-latest before submission.
webhookstringOptionalDefault: —Callback base URL. When the task succeeds or fails, APIMart calls webhook + /callback. Keep polling as a fallback.

Nano Banana API Model Family

Compare every Nano Banana model on APIMart. One API key calls all of them, billed per image.

ModelBase modelBest forResolution
Nano Banana APIGemini 2.5 Flash ImageCharacter consistency, multi-image blending and prompt-based edits1K
Nano Banana Pro APIGemini 3 Pro ImageProfessional 4K images, legible multilingual text and consistency for up to 5 people1K / 2K / 4K
Nano Banana 2 APIGemini 3.1 Flash ImageFast, cost-efficient generation from 0.5K to 4K0.5K – 4K
Nano Banana 2 Lite APIThis pageGemini 3.1 Flash Lite ImageFast 1K images and editing, one image per request with up to 14 reference images1K
Gemini Nano Banana 2.1 APIGemini Nano Banana 2.1Latest version: text-to-image and reference-image editing in 14 aspect ratios1K / 2K / 4K