All models

Nano Banana 2

Google
ChatReleased May 28, 2026
gemini-3.1-flash-image
Gemini 3.1 Flash Image (Nano Banana 2) is Google's fastest native image generation model with thinking support, conversational image generation and editing.
VisionReasoningImage output
Input
$0.50
per 1M tokens
Output
$3.00
per 1M tokens
Context window
163.8K
tokens
Max output
32.8K
tokens

Pricing

USD per 1M tokens
Fee itemPrice
Input$0.50
Output$3.00
Image input$0.50
Image output$60.00
Video input$0.50
Audio input$0.50
Prices are in USD. A request is billed at the prices in force when it is made.

Call it from your code

Keep the official SDK you already use: give it the LobeBase base URL and a LobeBase API key.
Base URL
https://api.lobebase.com/v1
curl https://api.lobebase.com/v1/chat/completions \
  -H "Authorization: Bearer $LOBEBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.1-flash-image",
    "messages": [{ "role": "user", "content": "Hello" }]
  }'
Set LOBEBASE_API_KEY to your API key, then run the example.

Every leading model. One API key.

Sign in, add credit and change one line of config. Pay for what you use, no subscription.

Get an API key