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.1
google/gemini-nano-banana-2.1Try Google: Nano Banana 2.1 now
Runs on your balance at the prices above. New accounts start with free usage.
Settings
Google: Nano Banana 2.1 at a glance
- Input price is 70% lower than the median of 21 Image models.
- Context window of 65,536 tokens, enough for long documents and multi-turn conversations.
- Supports tool (function) calling for agents and integrations.
- Supports structured JSON output with a schema.
- Supports reasoning effort control.
About Google: Nano Banana 2.1
Google: Nano Banana 2.1 is an image generation and editing model from Google, built on the Flash tier. It succeeds Nano Banana 2 and Nano Banana Pro, and Google describes it as improving product recontextualization. It sits in both the image and text categories, so it is a multimodal model rather than a text-only or image-only system.
The model accepts image and text as inputs and can return image and text as outputs. Its context window is 65,536 tokens, with a maximum output of 58,982 tokens. Image generation is configurable: resolution can be set to 1K, 2K or 4K, and aspect ratio supports 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 value, from 1 to 1, so each request produces one image. You can supply up to 14 input references, which is what makes editing and reference-driven generation possible.
Those capabilities point to a few practical patterns. Because the model takes image input and returns image output, it fits editing workflows where an existing image is adjusted rather than created from scratch. The reference limit of 14 supports tasks that need several source images at once, such as combining or restyling material, and the product recontextualization improvement suggests placing a product into new scenes or settings. Text output alongside image output means a single call can return generated visuals plus accompanying text. The resolution and aspect ratio options let you target different output shapes, from square and portrait to wide formats like 21:9, without post-processing crops.
You call the model through api14's OpenAI-compatible API using the model id "google/gemini-nano-banana-2.1". The supported request parameters are include_reasoning, max_tokens, reasoning, reasoning_effort, response_format, seed, structured_outputs, temperature, tool_choice, tools and top_p. Image-specific settings such as resolution, aspect_ratio, n and input_references are configured through the request as well. Because the interface is OpenAI-compatible, existing OpenAI client libraries and request shapes work with only the model id and parameters changed.
A few constraints are worth noting when choosing this model. The context window is 65,536 tokens, and n is fixed at 1, so requests that need multiple images per call are not supported here. If your task is purely text generation with no image input or output, a text-focused model may be a simpler fit. If you need more than 14 input references, this model will not accommodate that.
How to call the Google: Nano Banana 2.1 API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "google/gemini-nano-banana-2.1".
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-nano-banana-2.1",
"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_formatseedstructured_outputstemperaturetool_choicetoolstop_pSpecifications
- Context length
- 65,536
- Max output
- 58,982
- Input
- image, text
- Output
- image, text
Requests on api14 · last 7 days
Google: Nano Banana 2.1: frequently asked questions
- How much does the Google: Nano Banana 2.1 API cost?
- Google: Nano Banana 2.1 costs Input $5.25 / 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.1?
- Google: Nano Banana 2.1 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.1 do?
- Google: Nano Banana 2.1 accepts image, text and returns image, text. It supports tool calling, structured JSON output, reasoning effort control.
- How do I call Google: Nano Banana 2.1 from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "google/gemini-nano-banana-2.1". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to Google: Nano Banana 2.1?
- Comparable Image models at a similar price: Krea: Krea 2 Medium Turbo, OpenAI: GPT Image 1 Mini, Meta: Muse Image. Each runs through the same API key, so switching is one string.
Google: Nano Banana 2.1 community
New topicThis community has no topics yet. Open the first one about Google: Nano Banana 2.1.