AI API ConsoleGoogle ModelsNano Banana 2 Lite
Google Model

Nano Banana 2 Lite APIPricing, Parameters & Features

Learn how to use Nano Banana 2 Lite. See the API price, context window, parameters, capabilities, and examples. Test the model directly in AI API Console.

Model IDgemini-3.1-flash-lite-image
Google
Nano Banana 2 Lite
gemini-3.1-flash-lite-image
API
Context
1,048,576
tokens
Input
$0.25
/ 1M
Output
$0.0336
/ 1M
Type
Image Generation
AI model
Supported Features
TextVision
Context Window
1,048,576
tokens
Input Price
$0.25
/ 1M tokens
Output Price
$0.0336
/ 1M tokens
API Access
Available
Test in playground
OVERVIEW

What is Nano Banana 2 Lite?

Efficiency specialist offering ultra-low latency and cost-effective image generation.

You can send the model a prompt and receive a response. Depending on the model features, you can also send images, use tools, and ask for structured data.

AI API Console brings the important model information into one place, so you can understand the API before you start building.

Everything in one place

Check pricing, limits, parameters, features, and API examples without jumping between pages.

Model specifications
API pricing
Parameters
Capabilities
Code examples
SPECIFICATIONS

Nano Banana 2 Lite specifications

The main technical details developers should know before using the Nano Banana 2 Lite API.

Provider
Google

The company that provides this model.

Model ID
gemini-3.1-flash-lite-image

The identifier used in API requests.

Context Window
1,048,576 tokens

The amount of information the model can work with.

Input
Text + Image

Types of input supported by this model.

Output
Image

The main type of response generated.

API
Available

Use the model from your own application.

CAPABILITIES

What can Nano Banana 2 Lite do?

These are common features developers can use when working with the model API.

Text Generation

Create answers, summaries, explanations, ideas, and other text.

Vision

Send supported images and ask the model to understand them.

Structured Output

Return information in a predictable structured format such as JSON.

Streaming

Receive the response as it is generated instead of waiting for everything.

API Testing

Test prompts and settings before adding the model to your application.

API PRICING

Nano Banana 2 Lite API pricing

API cost is based on tokens. Input tokens are the information you send to the model. Output tokens are the information the model generates.

per 1M tokens
Input tokens
$0.25

Tokens sent to the model.

per 1M tokens
Output tokens
$0.0336

Tokens generated by the model.

Remember

Your final API bill depends on how many tokens your application uses. Always check the provider's latest pricing before using a model in production.

API PARAMETERS

Nano Banana 2 Lite API parameters

Parameters let you control how the model creates its response. Supported parameters can change between models.

temperature
number

Controls how varied the response can be.

top_p
number

Controls how many possible next tokens are considered.

max_output_tokens
integer

Sets the maximum size of the generated response.

stream
boolean

Returns the response while it is being generated.

API EXAMPLE

Nano Banana 2 Lite API example

Here is a simple example of an API request. You can use the same idea in your own application.

cURL
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-3.1-flash-lite-image:generateContent" \
  -H "x-goog-api-key: $GEMINI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [{
      "role": "user",
      "parts": [{"text": "Explain artificial intelligence simply."}]
    }]
  }'
cURLPythonJavaScriptTypeScriptGoJava
FAQ

Nano Banana 2 Lite API questions

What is Nano Banana 2 Lite?

Nano Banana 2 Lite is an AI model from Google that developers can use through an API to build AI-powered applications.

How much does Nano Banana 2 Lite cost?

Nano Banana 2 Lite uses token-based API pricing. Input and output tokens have different prices.

What is the Nano Banana 2 Lite context window?

Nano Banana 2 Lite has a context window of 1,048,576 tokens based on the current model configuration.

What is the Nano Banana 2 Lite model ID?

The model ID used by this page is gemini-3.1-flash-lite-image.

How can I test Nano Banana 2 Lite?

You can use the AI API Console playground to test prompts, parameters, and API responses.

Does Nano Banana 2 Lite support images?

Yes, Nano Banana 2 Lite supports image input according to the capabilities configured for this model.

😎Bro, if you wanna skip all this→Open Playground