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.
| 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.13 s | 4.55 s |
| Throughput (p50) | 44.0 tok/s | 57.0 tok/s |
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).
GPT-5.1-Codex-Mini is faster on OpenRouter, generating a median 57.0 tokens per second compared with 44.0 tokens per second for Nano Banana (Gemini 2.5 Flash Image).