We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.

Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image)

google/gemini-3.1-flash-lite-image
ImageInput: image · textReasoning66KAdded Jun 30, 2026

Try Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) now

Runs on your balance at the prices above. New accounts start with free usage.

Sign in to use thisCreate free account
Results will appear here.
5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign inSession cost $0.00

Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) at a glance

  • Input price is 95% lower than the median of 21 Image models.
  • Context window of 65,536 tokens, enough for long documents and multi-turn conversations.
  • Supports reasoning effort control.

About Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image)

Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) is an image generation model from Google, listed on api14 under the model id google/gemini-3.1-flash-lite-image. It sits in the image category with text as a secondary category, and Google positions it as its fastest, most cost-efficient Gemini image model, aimed at high-velocity developer pipelines and rapid-fire visual exploration. The provider release date is 2026-06-30, and the model's knowledge cutoff is 2025-01-01.

The model accepts image and text as inputs and can return image and text as outputs, so it handles both text-to-image generation and prompts that include reference images. It supports up to 14 input references, which lets you steer a generation with example images rather than text alone. The context window is 65,536 tokens and the maximum output is 58,982 tokens. Generated images are produced at 1K resolution, and you can request one of fourteen aspect ratios: 1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9 and 21:9. The n parameter accepts a single image per request (minimum 1, maximum 1).

Those capabilities point to a few practical uses. Rapid visual exploration and concept iteration fit the model's stated focus, since you can generate a single 1K image per call across many aspect ratios, from square social formats to wide 21:9 or tall 9:16 layouts. Reference-driven generation with up to 14 input images suits tasks where you want an output that follows the style, subject or composition of supplied examples. Because the model also returns text, it can be used in mixed workflows where a prompt produces both a visual and a textual response. The 65,536 token context window gives room for longer prompts or several reference images alongside instructions.

You call the model through api14's OpenAI-compatible API using the model id google/gemini-3.1-flash-lite-image. The supported request parameters are include_reasoning, max_tokens, reasoning, reasoning_effort, response_format, seed, temperature and top_p. Image-specific controls cover resolution (1K), aspect_ratio and n, plus input_references for supplying up to 14 reference images. Because the interface is OpenAI-compatible, existing OpenAI client libraries and request shapes work with this model id.

The main constraints to keep in mind are the single image per request (n is fixed at 1) and the fixed 1K resolution, so work that needs multiple images in one call or higher resolutions is not covered by this model. The 65,536 token context window is also modest compared with text-focused models, which matters if you plan to pass many large reference images or very long prompts. For those cases, another model in the catalogue may fit better.

How to call the Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "google/gemini-3.1-flash-lite-image".
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api14.com/api/v1",
  apiKey: process.env.API14_API_KEY,
});

const result = await client.images.generate({
  "model": "google/gemini-3.1-flash-lite-image",
  "prompt": "A minimalist product photo of a ceramic mug on a wooden table",
  "n": 1,
  "aspect_ratio": "1:1"
});
import { writeFile } from "node:fs/promises";
await writeFile("image.png", Buffer.from(result.data[0].b64_json, "base64"));

Supported parameters

include_reasoningmax_tokensreasoningreasoning_effortresponse_formatseedtemperaturetop_p

Specifications

Context length
65,536
Max output
58,982
Input
image, text
Output
image, text
Knowledge cutoff
2025-01-01

Requests on api14 · last 7 days

10-1710-1810-1910-2010-2110-2210-23

Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image): frequently asked questions

How much does the Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) API cost?
Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) costs Input $0.88 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
What is the context window of Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image)?
Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) reads up to 65,536 tokens per request: prompt, history and documents together. It writes up to 58,982 output tokens per response.
What can Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) do?
Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) accepts image, text and returns image, text. It supports reasoning effort control.
How do I call Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "google/gemini-3.1-flash-lite-image". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image)?
Comparable Image models at a similar price: Google: Nano Banana (Gemini 2.5 Flash Image), Tencent: Hy Image 3.5 Preview, Recraft: Recraft V4.1 Pro Vector. Each runs through the same API key, so switching is one string.

Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) community

New topic

This community has no topics yet. Open the first one about Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image).