Models

gemini-3.1-flash-image β€” API, Pricing & Image Tokens | Vivgrid

gemini-3.1-flash-image (Nano Banana 2) on Vivgrid: Google's high-volume image generation and editing model, with per-image token pricing.

gemini-3.1-flash-image, also known as Nano Banana 2, is Google's high-efficiency image generation and editing model. It delivers quality image generation and conversational editing at a mainstream price point and low latency β€” the high-volume counterpart to gemini-3-pro-image.

On Vivgrid, gemini-3.1-flash-image runs as a globally centralized model reachable through the same OpenAI-compatible endpoint and unified key as every other model in the catalog.

Specifications

ProviderGoogle
Model IDgemini-3.1-flash-image
Best forImage generation
Context window131,072 tokens
Max output32,768 tokens
ModalitiesText, Image
Tool / function callingNo
Knowledge cutoff2025-01
Acceleration🌐 Global (Centralized)

Pricing

Pricing in USD per 1M tokens, matching the provider's rates.

InputCached inputOutput (text)Output (image)
$0.50$0.05$3.00$60.00

Quick start

Call gemini-3.1-flash-image through Vivgrid's unified, OpenAI-compatible endpoint. Get an API key from the Vivgrid Console.

curl https://api.vivgrid.com/v1/images/generations \
  -H "Authorization: Bearer $VIVGRID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.1-flash-image",
    "prompt": "A cozy reading nook with plants and warm light",
    "size": "1024x1024"
  }'

Image token conversion

Images are billed as tokens, so the per-image cost follows the resolution you ask for:

ItemTokensCost per image
Input image1,120$0.00056
Output image (512)747$0.045
Output image (1K)1,120$0.067
Output image (2K)1,680$0.101
Output image (4K)2,520$0.151

Text and thinking tokens are billed at the text output rate of $3.00 per 1M tokens.

Ideal use cases

  • High-volume image generation pipelines
  • Conversational, multi-turn image editing
  • Product and social-media creative at low latency
  • Cost-sensitive workloads that don't need Nano Banana Pro's reasoning

On this page