Compare Nano Banana (Gemini 2.5 Flash Image) from Google and GPT-5.1-Codex-Mini from OpenAI on key metrics including benchmarks, price, context length, and other model features. Access both models and hundreds of others through the OpenRouter API.
Nano Banana (Gemini 2.5 Flash Image) and GPT-5.1-Codex-Mini are available through the OpenRouter API, so switching between them takes a model slug change rather than a new integration.
Nano Banana (Gemini 2.5 Flash Image), from Google, has a 32,768-token context window and is priced at $0.30/M tokens input, $30/M tokens output on OpenRouter.
GPT-5.1-Codex-Mini, from OpenAI, has a 400,000-token context window and is priced at $0.25/M tokens input, $2/M tokens output on OpenRouter.
| Attribute | Nano Banana (Gemini 2.5 Flash Image) | GPT-5.1-Codex-Mini |
|---|---|---|
| Input price | Not applicable | $0.25/M tokens |
| Output price | Not applicable | $2/M tokens |
| Context window | 32,768 tokens | 400,000 tokens |
| Intelligence Index | Not available | 20.4 |
| Coding Index | Not available | Not available |
| Agentic Index | Not available | Not available |
| Latency (p50) | 1.09 s | 3.71 s |
| Throughput (p50) | 62.0 tok/s | 62.0 tok/s |
Benchmark data updated
GPT-5.1-Codex-Mini has the longer context window at 400,000 tokens, compared with 32,768 tokens for Nano Banana (Gemini 2.5 Flash Image).
Nano Banana (Gemini 2.5 Flash Image) and GPT-5.1-Codex-Mini generate at the same median throughput on OpenRouter: 62.0 tokens per second.