# gemini-3.1-flash-image — API, Pricing & Image Tokens | Vivgrid

> Source: https://vivgrid.com/docs/models/gemini-3.1-flash-image

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](/docs/models/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

| Field | Value |
| --- | --- |
| Provider | Google |
| 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.

| Input | Cached input | Output (text) | Output (image) |
| --- | --- | --- | --- |
| $0.50 | $0.05 | $3.00 | $60.00 |


## 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.

## API surfaces

`gemini-3.1-flash-image` is served on `/images/generations`, behind the same API key as the rest of the catalog.

## Quick start

Get an API key from the Vivgrid Console (https://console.vivgrid.com), then call `gemini-3.1-flash-image` directly.

```bash
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"
  }'
```


## 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-nano-banana-2.1](/docs/models/gemini-nano-banana-2.1) — the latest Nano Banana 2.1 release, at half the image output price
- [gemini-3-pro-image](/docs/models/gemini-3-pro-image) — highest-quality image generation and editing
- [gemini-3.5-flash](/docs/models/gemini-3.5-flash) — multimodal understanding rather than generation
