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
| Provider | |
| Model ID | gemini-3.1-flash-image |
| Best for | Image generation |
| Context window | 131,072 tokens |
| Max output | 32,768 tokens |
| Modalities | Text, Image |
| Tool / function calling | No |
| Knowledge cutoff | 2025-01 |
| Acceleration | π Global (Centralized) |
Pricing
Pricing in USD per 1M tokens, matching the provider's rates.
| Input | Cached input | Output (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:
| Item | Tokens | Cost per image |
|---|---|---|
| Input image | 1,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
Related models
- gemini-3-pro-image β highest-quality image generation and editing
- gemini-3.5-flash β multimodal understanding rather than generation
gemini-3-pro-image
gemini-3-pro-image (Nano Banana Pro) on Vivgrid: Google's highest-quality image generation and editing model, with per-image token pricing.
gemini-3.5-flash
gemini-3.5-flash on Vivgrid: Google's fast multimodal model with a 1M-token context window across text, image, video, audio and PDF.