🎁 Sign up, get $1. Join Discord, get $5!
Models
Experience Center
Activity
Docs
Resource
Console
G

Gemini 3.1 Flash Image

GoogleModel IDgemini-3.1-flash-image
G

Gemini 3.1 Flash Image

GoogleModel IDgemini-3.1-flash-image

Gemini 3.1 Flash Image, also known as Nano Banana 2, is Google's high-efficiency image generation and conversational editing model optimized for speed, high-volume workloads, visual consistency, multilingual text rendering, and grounded image creation. It supports text, image, video, and PDF inputs with image and text outputs, advanced visual reasoning, video-to-image generation, and resolutions up to 4K.

ModeText / Image / File / Video → Text / Image
Input price$0.25 / request
Output priceUnknown
Context length131072 tokens

Capabilities & limits

Use cases
Not available
Model capabilities
Not available
Model Brand
Google
Input modality
Text / Image / File / Video
Output modality
Text / Image
Max output
32768 tokens

Pricing

ProviderBilling typePrice summary
G
Gemini-Balanced
Per call
Input price$0.25per request
Completion price—
Cache read price—
Cache write price—
G
Gemini-Custom
Per call
Input price$0.25per request
Completion price—
Cache read price—
Cache write price—

Integration

Code Example

curl http://127.0.0.1:4179/v1/models/gemini-3.1-flash-image:generateContent \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.1-flash-image",
    "messages": [
      {
        "role": "user",
        "content": "Hello"
      }
    ]
  }'

Replace <YOUR_API_KEY> with the API key generated on your token management page.

Authentication

All requests must include the Authorization: Bearer <TOKEN> header.

Endpoint Path

POST
google-generate-content

Supported Parameters

ParameterTypeDefaultDescription
string1KControls the output image resolution. Supported values: 0.5K, 1K, 2K, and 4K. Default: 1K.
string1:1Controls the aspect ratio of the generated image.
stringminimalControls the amount of reasoning used during image generation. Supported values: minimal and high. Default: minimal.
object-Controls whether the response returns an image only or both text and image, and configures image size and aspect ratio.
booleanfalseEnables Google Web and Image Search grounding for real-time grounded image generation.

Rate Limits

RPM

No rate limits configured

RPM = requests per minute.