Latency—
Throughput—
Upload rate—
Context length131072 tokens
Max output32768 tokens
Input price$0.25per request
Output price—per request
Cache read—per request
Cache write—per request
/google/gemini-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.
curl ${API_BASE_URL}/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.
All requests must include the Authorization: Bearer <TOKEN> header.
RPM = requests per minute, TPM = tokens per minute, RPD = requests per day. Limits apply by token group.