googleVision

Google: Nano Banana (Gemini 2.5 Flash Image)

Gemini 2.5 Flash Image, a.k.a. "Nano Banana," is now generally available. It is a state of the art image generation model with contextual understanding. It is capable of image generation,...

Context
33k tokens
Input / 1M tokens
$0.30
Output / 1M tokens
$2.50
Benchmark

Pricing

Input tokens$0.30 per 1M tokens
Output tokens$2.50 per 1M tokens
Cache read$0.03 per 1M tokens
Cache write$0.08 per 1M tokens
Image$0.30 per image

Technical details

Model IDgoogle/gemini-2.5-flash-image
Context window33k tokens
Input modalitiesimage, text
Output modalitiesimage, text
TokenizerGemini
Max output tokens8,192

Use with MegaBrain

import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'https://getmegabrain.com/api/gateway/v1',
  apiKey: process.env.MEGABRAIN_API_KEY,
})

const response = await client.chat.completions.create({
  model: 'google/gemini-2.5-flash-image',
  messages: [{ role: 'user', content: 'Hello!' }],
})

Ready to use Google: Nano Banana (Gemini 2.5 Flash Image)?

Get an API key and start making requests in minutes.

Get an API key