Latency—
Throughput—
Upload rate—
Context length131072 tokens
Max output65536 tokens
Input price$0.045per request
Output price—per request
Cache read—per request
Cache write—per request
/google/gemini-3.1-flash-image-preview
Gemini 3.1 Flash Image entered preview on February 26, 2026. The model accepts text, images, audio, and video as context and produces image and text output. The preview version was later superseded by the GA release on May 28, 2026.
curl ${API_BASE_URL}/v1beta/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-preview",
"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.