Google modelsChat Completions model

google/gemini-3.1-flash-image

Gemini 3.1 Flash Image, a.k.a. "Nano Banana 2," is Google’s latest state of the art image generation and editing model, delivering Pro-level visual quality at Flash speed. It combines advanced...

Input⌘ / Ctrl + Enter

Try a prompt

65.5K max outputVision
Input $0.50/M · Output $3.00/M
OutputReady

Your response will appear here

Choose an example or write a prompt, then click Run.

API details and access

Model Details

ProviderGoogle
TypeLlm
Model IDgoogle/gemini-3.1-flash-image

Capabilities

InputTextImage
OutputText
Context-
Max Output65,536
VisionSupported
Function CallingNot supported

Access details

Chat Completions
Base URLhttps://api.agrouter.ai
API Endpoint/v1/chat/completions
{
  "model": "google/gemini-3.1-flash-image",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ],
  "max_tokens": 512
}

Pricing

Input$0.50 / 1M tokens
Output$3.00 / 1M tokens

Related Models