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 (Gemini 2.5 Flash Image)
google/gemini-2.5-flash-imageTry Google: Nano Banana (Gemini 2.5 Flash Image) now
Runs on your balance at the prices above. New accounts start with free usage.
Settings
Google: Nano Banana (Gemini 2.5 Flash Image) at a glance
- Input price is 94% lower than the median of 21 Image models.
- Context window of 32,768 tokens, enough for long documents and multi-turn conversations.
- Supports structured JSON output with a schema.
About Google: Nano Banana (Gemini 2.5 Flash Image)
Google: Nano Banana (Gemini 2.5 Flash Image) is an image generation model from Google, identified on api14 as google/gemini-2.5-flash-image. It sits in the image category with text as a secondary category, and it was released by the provider on 2025-10-07. The model is generally available, and its knowledge cutoff is 2025-01-31.
The model accepts image and text as inputs and can produce both image and text as outputs, so a single request can mix a written prompt with reference images and return a generated image, text, or both. It has a context window of 32768 tokens and a maximum output of 8192 tokens. Image generation is controlled through dedicated image parameters: aspect_ratio accepts one of 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9 or 21:9; n has a minimum of 1 and a maximum of 1, so each request returns a single image; and input_references accepts between 0 and 3 images. The model is built for contextual understanding alongside image generation, which is what allows reference images and text instructions to inform the result.
Practical uses follow from that mix of inputs and outputs. You can generate an image from a text prompt alone, or supply up to three reference images to guide style, subject or composition while describing the change you want in text. Because the model also returns text, it fits workflows where a written explanation or caption accompanies the generated image. The fixed set of aspect ratios makes it straightforward to target common formats such as square, portrait, landscape, wide and ultrawide outputs without post-processing crops.
You call the model through api14's OpenAI-compatible API using the model id google/gemini-2.5-flash-image. The supported request parameters are max_tokens, response_format, seed, stop, structured_outputs, temperature and top_p. Image specific settings such as aspect_ratio, n and input_references are passed alongside those parameters. Because the interface is OpenAI-compatible, existing clients and SDKs that already target that shape can point at api14 with the model id changed.
A few limits are worth noting when deciding. The context window is 32768 tokens and the maximum output is 8192 tokens, so very long prompts or large volumes of reference material may need to be trimmed. Each request returns exactly one image, so batch generation means multiple calls. The knowledge cutoff is 2025-01-31. If your task is purely text generation with no image component, a text focused model may be a better fit.
How to call the Google: Nano Banana (Gemini 2.5 Flash Image) 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-2.5-flash-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-2.5-flash-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
max_tokensresponse_formatseedstopstructured_outputstemperaturetop_pSpecifications
- Context length
- 32,768
- Max output
- 8,192
- Input
- image, text
- Output
- image, text
- Knowledge cutoff
- 2025-01-31
Requests on api14 · last 7 days
Google: Nano Banana (Gemini 2.5 Flash Image): frequently asked questions
- How much does the Google: Nano Banana (Gemini 2.5 Flash Image) API cost?
- Google: Nano Banana (Gemini 2.5 Flash Image) costs Input $1.05 / 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 (Gemini 2.5 Flash Image)?
- Google: Nano Banana (Gemini 2.5 Flash Image) reads up to 32,768 tokens per request: prompt, history and documents together. It writes up to 8,192 output tokens per response.
- What can Google: Nano Banana (Gemini 2.5 Flash Image) do?
- Google: Nano Banana (Gemini 2.5 Flash Image) accepts image, text and returns image, text. It supports structured JSON output.
- How do I call Google: Nano Banana (Gemini 2.5 Flash Image) from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "google/gemini-2.5-flash-image". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to Google: Nano Banana (Gemini 2.5 Flash Image)?
- Comparable Image models at a similar price: Tencent: Hy Image 3.5 Preview, Google: Nano Banana 2 (Gemini 3.1 Flash Image), Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview). Each runs through the same API key, so switching is one string.
Google: Nano Banana (Gemini 2.5 Flash Image) community
New topicThis community has no topics yet. Open the first one about Google: Nano Banana (Gemini 2.5 Flash Image).