Nano Banana 2's competitors have been quietly putting in work.
Nano Banana 2's competitors have been quietly putting in work.
Gemini 3.1 Flash Image Preview, sold as Nano Banana 2. Google's image generation and editing model at Flash speed and Flash pricing, aimed at iterative edits rather than one-shot renders.
fromimport openai OpenAI
client = OpenAI(
"https://openrouter.ai/api/v1" base_url=,
"$OPENROUTER_API_KEY" api_key=,
)
response = client.chat.completions.create(
"google/gemini-3.1-flash-image" model=,
"role""user""content""Hello!" messages=[{: , : }],
)
print(response.choices[0].message.content)Set OPENROUTER_API_KEY with your OpenRouter API key from openrouter.ai/keys.
Also on Google Vertex AI
18 outputs · $1.21 tracked across 18 receipts
Gemini 3.1 Flash Image Preview, sold as Nano Banana 2. Google's image generation and editing model at Flash speed and Flash pricing, aimed at iterative edits rather than one-shot renders.
fromimport openai OpenAI
client = OpenAI(
"https://openrouter.ai/api/v1" base_url=,
"$OPENROUTER_API_KEY" api_key=,
)
response = client.chat.completions.create(
"google/gemini-3.1-flash-image" model=,
"role""user""content""Hello!" messages=[{: , : }],
)
print(response.choices[0].message.content)Set OPENROUTER_API_KEY with your OpenRouter API key from openrouter.ai/keys.
Also on Google Vertex AI
18 outputs · $1.21 tracked across 18 receipts