---
title: Google: Nano Banana 2 (Gemini 3.1 Flash Image) | Text Generation | ModelsLab
description: Build with Google: Nano Banana 2 (Gemini 3.1 Flash Image) API by Google. Text generation, chat, code, and reasoning. Pay-per-use. Free tier.
url: https://modelslab.com/models/google/google-gemini-3.1-flash-image.md
canonical: https://modelslab.com/models/google/google-gemini-3.1-flash-image.md
type: product
component: Playground/LLM/Index
generated_at: 2026-06-19T20:38:41.007503Z
---

Google: Nano Banana 2 (Gemini 3.1 Flash Image)
---

 [LLMs.txt](https://modelslab.com/models/open_router/google-gemini-3.1-flash-image/llms.txt) [.md](https://modelslab.com/models/google/google-gemini-3.1-flash-image.md)

Google: Nano Banana 2 (Gemini 3.1 Flash Image)
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### Google: Nano Banana 2 (Gemini 3.1 Flash Image)

google google-gemini-3.1-flash-image

Copy model ID

PricingInput $0.50 / 1M tokens

Output $3.00 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[#### open\_router/LiquidAI: LFM2.5-1.2B-Thinking (free)

liquid-lfm-2.5-1.2b-thinking-free

Free](https://modelslab.com/models/open_router/liquid-lfm-2.5-1.2b-thinking-free)

[#### open\_router/LiquidAI: LFM2.5-1.2B-Instruct (free)

liquid-lfm-2.5-1.2b-instruct-free

Free](https://modelslab.com/models/open_router/liquid-lfm-2.5-1.2b-instruct-free)

[#### openai/OpenAI: GPT-5.4

openai-gpt-5.4

From $8.75/M tokens](https://modelslab.com/models/openai/openai-gpt-5.4)

[#### open\_router/Mistral: Mistral Large 3 2512

mistralai-mistral-large-2512

From $1.00/M tokens](https://modelslab.com/models/open_router/mistralai-mistral-large-2512)

[#### open\_router/Z.ai: GLM 4.7 Flash

z-ai-glm-4.7-flash

From $0.23/M tokens](https://modelslab.com/models/open_router/z-ai-glm-4.7-flash)

[#### together\_ai/Qwen3.5 397B A17b

Qwen-Qwen3.5-397B-A17B

From $2.10/M tokens](https://modelslab.com/models/together_ai/Qwen-Qwen3.5-397B-A17B)

[#### open\_router/Qwen: Qwen3.5-Flash

qwen-qwen3.5-flash-02-23

From $0.16/M tokens](https://modelslab.com/models/open_router/qwen-qwen3.5-flash-02-23)

[#### open\_router/Poolside: Laguna XS.2

poolside-laguna-xs.2

From $0.15/M tokens](https://modelslab.com/models/open_router/poolside-laguna-xs.2)

[#### open\_router/ByteDance Seed: Seed-2.0-Mini

bytedance-seed-seed-2.0-mini

From $0.25/M tokens](https://modelslab.com/models/open_router/bytedance-seed-seed-2.0-mini)

[#### open\_router/Qwen: Qwen3.6 27B

qwen-qwen3.6-27b

From $1.73/M tokens](https://modelslab.com/models/open_router/qwen-qwen3.6-27b)

[#### open\_router/DeepSeek: R1 Distill Llama 70B

deepseek-deepseek-r1-distill-llama-70b

From $0.80/M tokens](https://modelslab.com/models/open_router/deepseek-deepseek-r1-distill-llama-70b)

[#### open\_router/Qwen: Qwen3 Next 80B A3B Instruct

qwen-qwen3-next-80b-a3b-instruct

From $0.59/M tokens](https://modelslab.com/models/open_router/qwen-qwen3-next-80b-a3b-instruct)

[#### open\_router/Meta: Llama 4 Scout

meta-llama-llama-4-scout

From $0.20/M tokens](https://modelslab.com/models/open_router/meta-llama-llama-4-scout)

[#### open\_router/NVIDIA: Nemotron 3 Ultra

nvidia-nemotron-3-ultra-550b-a55b

From $1.35/M tokens](https://modelslab.com/models/open_router/nvidia-nemotron-3-ultra-550b-a55b)

[#### open\_router/Switchpoint Router

switchpoint-router

From $2.13/M tokens](https://modelslab.com/models/open_router/switchpoint-router)

[#### open\_router/Nous: Hermes 3 405B Instruct

nousresearch-hermes-3-llama-3.1-405b

From $1.00/M tokens](https://modelslab.com/models/open_router/nousresearch-hermes-3-llama-3.1-405b)

[#### open\_router/Qwen: Qwen3 14B

qwen-qwen3-14b

From $0.17/M tokens](https://modelslab.com/models/open_router/qwen-qwen3-14b)

[#### open\_router/Sao10K: Llama 3.1 Euryale 70B v2.2

sao10k-l3.1-euryale-70b

From $0.85/M tokens](https://modelslab.com/models/open_router/sao10k-l3.1-euryale-70b)

Open Source Alternatives
---

Explore open-source models that offer similar capabilities with full transparency and flexibility

 [View all open source models](https://modelslab.com/models?feature=llm&provider=open-source-models)

[MU

Popular](https://modelslab.com/models/modelslab/uncensored-chat)[ModelsLab](https://modelslab.com/models/modelslab)

 [Modelslab: Uncensored Chat

Open Source Model](https://modelslab.com/models/modelslab/uncensored-chat)

About Google: Nano Banana 2 (Gemini 3.1 Flash Image)
---

Gemini 3.1 Flash Image, a.k.a. "Nano Banana 2," is Google’s latest state of the art image generation and editing model, delivering Pro-level visual quality at Flash speed. It combines advanced...

### Technical Specifications

Model IDgoogle-gemini-3.1-flash-image

CategoryLLM Models

TaskText Generation

Price$1.75 per million tokens

AddedJune 18, 2026

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate Google: Nano Banana 2 (Gemini 3.1 Flash Image) into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "google-gemini-3.1-flash-image",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

### Pricing

Google: Nano Banana 2 (Gemini 3.1 Flash Image) API costs $1.750000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Google](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

Google: Nano Banana 2 (Gemini 3.1 Flash Image) FAQ
---

### What is Google: Nano Banana 2 (Gemini 3.1 Flash Image)?

Gemini 3.1 Flash Image, a.k.a. "Nano Banana 2," is Google’s latest state of the art image generation and editing model, delivering Pro-level visual quality at Flash speed. It combines advanced...

### How do I use the Google: Nano Banana 2 (Gemini 3.1 Flash Image) API?

You can integrate Google: Nano Banana 2 (Gemini 3.1 Flash Image) into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "google-gemini-3.1-flash-image" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Google: Nano Banana 2 (Gemini 3.1 Flash Image) cost?

Google: Nano Banana 2 (Gemini 3.1 Flash Image) costs $1.750000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the Google: Nano Banana 2 (Gemini 3.1 Flash Image) model ID?

The model ID for Google: Nano Banana 2 (Gemini 3.1 Flash Image) is "google-gemini-3.1-flash-image". Use this ID in your API requests to specify this model.

### Does Google: Nano Banana 2 (Gemini 3.1 Flash Image) have a free tier?

Yes, ModelsLab offers a free tier that lets you try Google: Nano Banana 2 (Gemini 3.1 Flash Image) and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-06-20*