Back to Models
Gemini 3.1 Flash Image Preview
googlegoogle/gemini-3.1-flash-image-preview
Google's latest image generation model with text and image input/output. Supports up to 14 input images combined into 1 output image, with conversational multi-turn editing capabilities.
Context Length
131K
Max Output
33K
Input Price
$0.600/ 1M tokens
Output Price
$72.00/ 1M tokens
Modalities
textimage→textimage
Pricing Breakdown
| Type | Rate |
|---|---|
| Input | $0.600 / 1M tokens |
| Output | $72.00 / 1M tokens |
Image output tokens are $60/MTok. 1K image = ~1,120 tokens = ~$0.067/image.
Supported Parameters
temperaturemax_tokenstop_presponse_formatstop
API Usage Examples
cURL
curl https://api.therouter.ai/v1/images/generations -H "Content-Type: application/json" -H "Authorization: Bearer $THE_ROUTER_API_KEY" -d '{
"model": "google/gemini-3.1-flash-image-preview",
"prompt": "A cinematic product render with soft studio lighting"
}'