Nano Banana 2 Lite
The lowest-cost option. Generates images from text only.
google/gemini-3.1-flash-lite-image- Input → Output
- Text/Text → Text, images
- Maximum input
- 65.5K tokens
- Provider
- 1
- Tool invocation
- No
Price per million tokens
- Input
- 405 credits
- Text Printing
- 2,430 credits
- Image Output
- 48,600 credits
About 54.4 credits to generate one 1K image (assuming 1,120 image output tokens). Actual output costs depend on the model and generation settings. Input is priced separately.
Provider
Several providers serve the same model. Performance is measured on actual AlpRouter requests over the last seven days, and uptime over the last three.
| Provider | Input / 1M | Output / 1M | Cache read | First token | Throughput | Uptime |
|---|---|---|---|---|---|---|
| Google Vertex AI | 405 credits | 2,430 credits | - | - | - | 100.00% |
Time to first token and throughput are medians (P50). Values are hidden for fewer than 10 requests.
Uptime
In the last 3 days, among the requests that were completed, the percentage of requests that failed due to problems on our side or with the supplier was very low. The number of requests that failed due to incorrect information or other issues is even lower.
100.00%
- 12/3, 6 PM:00: No data
- 12/3, 7 PM:00: No data
- 12/3, 8 PM:00: No data
- 12/3, 9 PM:00: No data
- 12/3, 10 PM:00: No data
- 12/3, 11 PM:00: No data
- 12/4, 12 AM:00: No data
- 12/4, 1 AM:00: No data
- 12/4, 2 AM:00: No data
- 12/4, 3 AM:00: No data
- 12/4, 4 AM:00: No data
- 12/4, 5 AM:00: No data
- 12/4, 6 AM:00: No data
- 12/4, 7 AM:00: No data
- 12/4, 8 AM:00: No data
- 12/4, 9 AM:00: No data
- 12/4, 10 AM:00: No data
- 12/4, 11 AM:00: No data
- 12/4, 12 PM:00: No data
- 12/4, 1 PM:00: No data
- 12/4, 2 PM:00: No data
- 12/4, 3 PM:00: No data
- 12/4, 4 PM:00: No data
- 12/4, 5 PM:00: No data
- 12/4, 6 PM:00: No data
- 12/4, 7 PM:00: No data
- 12/4, 8 PM:00: No data
- 12/4, 9 PM:00: No data
- 12/4, 10 PM:00: No data
- 12/4, 11 PM:00: No data
- 12/5, 12 AM:00: No data
- 12/5, 1 AM:00: No data
- 12/5, 2 AM:00: No data
- 12/5, 3 AM:00: No data
- 12/5, 4 AM:00: No data
- 12/5, 5 AM:00: No data
- 12/5, 6 AM:00: No data
- 12/5, 7 AM:00: No data
- 12/5, 8 AM:00: No data
- 12/5, 9 AM:00: No data
- 12/5, 10 AM:00: No data
- 12/5, 11 AM:00: No data
- 12/5, 12 PM:00: No data
- 12/5, 1 PM:00: No data
- 12/5, 2 PM:00: No data
- 12/5, 3 PM:00: No data
- 12/5, 4 PM:00: No data
- 12/5, 5 PM:00: No data
- 12/5, 6 PM:00: No data
- 12/5, 7 PM:00: No data
- 12/5, 8 PM:00: No data
- 12/5, 9 PM:00: No data
- 12/5, 10 PM:00: No data
- 12/5, 11 PM:00: All succeeded
- 12/6, 12 AM:00: No data
- 12/6, 1 AM:00: No data
- 12/6, 2 AM:00: No data
- 12/6, 3 AM:00: No data
- 12/6, 4 AM:00: No data
- 12/6, 5 AM:00: No data
- 12/6, 6 AM:00: No data
- 12/6, 7 AM:00: No data
- 12/6, 8 AM:00: No data
- 12/6, 9 AM:00: No data
- 12/6, 10 AM:00: No data
- 12/6, 11 AM:00: No data
- 12/6, 12 PM:00: No data
- 12/6, 1 PM:00: No data
- 12/6, 2 PM:00: No data
- 12/6, 3 PM:00: No data
- 12/6, 4 PM:00: No data
- 12/6, 5 PM:00: No data
- All succeeded
- Some failures (under 5%)
- 5% or more failed
- No data
Use the API
import base64
from openai import OpenAI
client = OpenAI(
base_url="https://alprouter.com/api/v1",
api_key="alp-your-key",
)
answer = client.chat.completions.create(
model="google/gemini-3.1-flash-lite-image",
messages=[{"role": "user", "content": "Please draw a paper airplane that flies over the sunset-hued sea."}],
)
# data:image/png;base64,... format. Depending on the model JPEGmay also be returned
url = answer.choices[0].message.images[0]["image_url"]["url"]
kind = url.split(";")[0].split("/")[1]
with open(f"image.{kind}", "wb") as file:
file.write(base64.b64decode(url.split(",", 1)[1]))Details
- Maximum input
- 65.5K tokens
- Maximum output
- 4.1K tokens
- Tool invocation
- Unsupported
- Supported input
- Text/Text
- Output
- Text, images
- Provider
- Google Vertex AI
- Supported parameters
- image_config, max_completion_tokens, max_tokens, modalities, stream
Frequently asked questions
What kind of model is Nano Banana 2 Lite?
A model from Google. The lowest-cost option. Generates images from text only. Model ID on AlpRouter: google/gemini-3.1-flash-lite-image
How much does Nano Banana 2 Lite cost?
About 54.4 credits to generate one 1K image (assuming 1,120 image output tokens). One credit equals ₩1. Only usage is deducted from your balance. There is no monthly subscription.
How much input does Nano Banana 2 Lite accept?
Each request accepts up to 65.5K tokens. The maximum output is 4.1K tokens.
What input and output does Nano Banana 2 Lite support?
Send Text/Text to receive Text, images.
Does Nano Banana 2 Lite support tool calling and structured JSON?
Tool calling: Unsupported. Structured output (response_format): Unsupported.
Which providers handle Nano Banana 2 Lite requests?
Google Vertex AI handles these requests.
How do I call Nano Banana 2 Lite from code?
Just replace the base_url in the OpenAI SDK with https://alprouter.com/api/v1. Also, specify the name of the model in the model field (google/gemini-3.1-flash-lite-image). There’s an example of how to do this in the “Using the API” section above.
Other models from Google
- Gemma 3 27Bgoogle/gemma-3-27b-itInput 372.6 credits
- Gemma 3 12Bgoogle/gemma-3-12b-itInput 145.8 credits
- Gemini 4 Argongoogle/gemini-4-argonInput 6,480 credits
- Gemini 4 Hydrogengoogle/gemini-4-hydrogenInput 2,430 credits
- Gemini 3.8 Flashgoogle/gemini-3.8-flashInput 1,215 credits
- Gemini 3.5 Flashgoogle/gemini-3.5-flashInput 2,430 credits