Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) on Vercel AI Gateway
Gemini 3.1 · Google DeepMind
Last refreshed 2026-12-03. Next refresh: weekly.
Why use Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) on Vercel AI Gateway?
Vercel AI Gateway offers Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) with pay-as-you-go pricing at $0.25/1M input tokens. Vercel AI Gateway is a unified AI proxy providing a single OpenAI-compatible API endpoint to 275+ models from 25+ providers including Anthropic, OpenAI, Google, Meta, Mistral, DeepSeek, xAI, Alibaba, Amazon, ByteDance, Cohere, MiniMax, MoonshotAI, KwaiPilot, Black Forest Labs, Recraft, Voyage AI, NVIDIA, and more.
Compare Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) across 4 providers to find the best fit for your use caseSetup recipe
Python + curlpip install openaiexport AI_GATEWAY_API_KEY=...import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["AI_GATEWAY_API_KEY"],google/gemini-3.1-flash-lite-imageRequest example
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["AI_GATEWAY_API_KEY"],
base_url="https://ai-gateway.vercel.sh/v1"
)
response = client.chat.completions.create(
model="google/gemini-3.1-flash-lite-image",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)Gotchas
- Use provider model ID "google/gemini-3.1-flash-lite-image", not the LLMReference slug "gemini-3.1-flash-lite-image".
- creator/model-name e.g. kwaipilot/kat-coder-pro-v2
- The examples expect AI_GATEWAY_API_KEY; rename it only if your application config maps the new variable.
Compare Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image) Across Providers
| Provider | Input (per 1M) | Output (per 1M) |
|---|---|---|
| Google AI Studio | $0.25 | $1.50 |
| GCP Vertex AI | $0.25 | $1.50 |
| Vercel AI Gateway | $0.25 | $1.50 |
| OpenRouter | $0.25 | $1.50 |
Pricing
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.25 |
| Output tokens | $1.50 |
Capabilities
About Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image)
Gemini 3.1 Flash Lite Image (Nano Banana 2 Lite; API id gemini-3.1-flash-lite-image) is Google's efficiency-focused image generation/editing model. Inputs text/image/video/PDF; outputs image+text. FP limits 65536/4096. Paid: $0.25/1M input, $1.50/1M text output, $30/1M image output (~$0.0336/1K image).