# Nano Banana 2 (Gemini 3.1 Flash Image Preview) vs GPT-5.4 Image 2

Source: https://openrouter.ai/compare/google/gemini-3.1-flash-image-preview/openai/gpt-5.4-image-2

## Overview

| Attribute | Nano Banana 2 (Gemini 3.1 Flash Image Preview) | GPT-5.4 Image 2 |
| --- | --- | --- |
| Author | Google | OpenAI |
| Reasoning | Yes | Yes |
| Input modalities | Image, Text | Image, Text, File |
| Output modalities | Image, Text | Image, Text |
| Input price | Not applicable | Not applicable |
| Output price | Not applicable | Not applicable |
| Price | $0.50/M tokens input, $60/M tokens output | $8/M tokens input, $30/M tokens output |
| Context window | 65,536 tokens | 272,000 tokens |
| Latency (p50) | 1.40 s | 0.97 s |
| Throughput (p50) | 148.0 tok/s | 51.0 tok/s |

## Nano Banana 2 (Gemini 3.1 Flash Image Preview) or GPT-5.4 Image 2: which should you choose?

### Choose Nano Banana 2 (Gemini 3.1 Flash Image Preview) for:

- faster output (148.0 vs 51.0 tok/s)

### Choose GPT-5.4 Image 2 for:

- a longer context window (272,000 vs 65,536 tokens)
- a quicker first token (0.97 s vs 1.40 s)

## Model pages

- [Nano Banana 2 (Gemini 3.1 Flash Image Preview)](https://openrouter.ai/google/gemini-3.1-flash-image-preview) ([llms.txt](https://openrouter.ai/google/gemini-3.1-flash-image-preview/llms.txt))
- [GPT-5.4 Image 2](https://openrouter.ai/openai/gpt-5.4-image-2) ([llms.txt](https://openrouter.ai/openai/gpt-5.4-image-2/llms.txt))
