nano-banana-2

Provided by Google · Image model

Parameters

Context window131K tokens
Max output33K tokens
Input modalitiestext, image
Output modalitiesimage

Official pricing

Input$0.5/M

Tiers

0.5K$0.045
1K$0.067
2K$0.101
4K$0.151

Call example

curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-3.1-flash-image:generateContent" -H "x-goog-api-key: $GEMINI_API_KEY" -H "Content-Type: application/json" -d '{"contents":[{"parts":[{"text":"a red fox in a snowy forest"}]}]}'