---
title: "Gemini 3.1 Flash Image (Nano Banana 2) — API access"
description: "Gemini 3.1 Flash Image (Nano Banana 2) API pricing: official $0.50/$3.00 per 1M text tokens, $0.25/$1.50 with the flat 50% apiToken.sale discount. Image output at $60 per 1M image tokens."
url: "https://apitoken.sale/models/gemini-3-1-flash-image"
language: "en"
---
# Gemini 3.1 Flash Image (Nano Banana 2)

Gemini 3.1 Flash Image — Nano Banana 2 — is Google's image-generation Flash model: text and image in, rendered images out, billed per image-output token.

- **Model ID:** `gemini-3.1-flash-image`
- **Tier:** Image
- **Context window:** 128K tokens
- **Max output:** 32K tokens
- **Official price (per 1M):** $0.5 input / $3 output
- **Your price (per 1M):** input $0.25, output $1.5 (flat 50% off)
- **Base URL:** `https://gemini.api.apitoken.sale` · **Endpoint:** `POST /v1beta/models/gemini-3.1-flash-image:generateContent` (x-goog-api-key)

## Best for

- Image generation and editing inside production apps.
- Multimodal pipelines that mix text and rendered output.
- High-volume creative and asset workflows.

## Notes

- Image output bills separately at $60 per 1M image-output tokens ($30 here); text output bills at the standard $3.00 rate.
- 128K context window and 32K max output — smaller than the text Flash line.

## Call it

```bash
curl https://gemini.api.apitoken.sale/v1beta/models/gemini-3.1-flash-image:generateContent \
  -H "x-goog-api-key: $APITOKEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"contents": [{"parts": [{"text": "Reply with exactly: connected"}]}]}'
```

## FAQ

**How much does the Gemini 3.1 Flash Image API cost?**

Officially $0.50 per 1M input tokens and $3.00 per 1M text output tokens, plus $60 per 1M image-output tokens. On apiToken.sale the flat 50% discount applies to every call — $0.25/$1.50, and $30 per 1M image-output tokens.

**What is the model ID for Nano Banana 2?**

gemini-3.1-flash-image. Use it unchanged with the Google GenAI SDK or any Gemini-compatible tool pointed at https://gemini.api.apitoken.sale, with the key sent as x-goog-api-key.

**Flash Image or a text Flash model?**

Flash Image is the image-generation model — use it when the response must include rendered images. For text-only work, gemini-3.6-flash gives you a larger context window and lower output cost.

---
API reference: https://apitoken.sale/md/docs · All models: https://apitoken.sale/md/models
