All modelsOpen in Console
Get started free
Gemini 3.1 Flash Image (Nano Banana 2)
googlegoogle/gemini-3.1-flash-image-preview
Also known as "Nano Banana 2". High-efficiency counterpart to Gemini 3 Pro Image, optimized for speed and high-volume developer use cases. Supports the widest aspect-ratio set (incl. 1:4 / 4:1 / 1:8 / 8:1 banners) and 512-4K resolutions.
Input
Image and prompt
Output
Generated images
Tools
MINIMAL
Reasoning
No
Pricing
| Lane | Per 1M tokens |
|---|---|
| Input | $0.50 |
| Output | $60.00 |
Billed per token. No minimums, no per-request fees. Caching applies on supported providers; misses fall back to standard input/output rates.
Quickstart
from openai import OpenAI
client = OpenAI(
base_url="https://api.vecbase.com/v1",
api_key="sk-vbc-...",
)
with open("product.jpg", "rb") as image:
response = client.images.edit(
model="google/gemini-3.1-flash-image-preview",
image=image,
prompt="Create a commerce-ready vertical product detail image.",
size="1024x1024",
quality="low",
)
print(len(response.data), response.usage)Ready to ship?
Create a project, mint an API key, and call this model from any OpenAI-compatible client.