所有模型

Gemini 3.1 Flash Image (Nano Banana 2)

google

google/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.

输入

图片和提示词

输出

生成图片

工具

MINIMAL

推理

定价

类型每 100 万 token
输入$0.50
输出$60.00

按 token 计费——无最低消费、无单次请求费;支持缓存的供应商自动启用。

快速开始

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)

准备上线了?

创建项目、生成 API 密钥,然后从任何 OpenAI 兼容客户端调用这个模型。

免费开始