Gemini 3.1 Flash Image (Preview)

Preview of Gemini 3.1 Flash with native image generation capabilities.

gemini-3.1-flash-image-preview
STABLE
65,536 context
Starting at $0.20/M (20% off) input tokens
Starting at $1.20/M (20% off) output tokens
Starting at $48.00/M (20% off) image output tokens
Streaming
Vision
JSON Output
Image Generation

All Providers for Gemini 3.1 Flash Image (Preview)

LangRouter routes requests to the best providers that are able to handle your prompt size and parameters.

Google AI Studio

google-ai-studio/gemini-3.1-flash-image-preview
Context Size
65.5k
Stability
STABLE
Pricing
Input
$0.25
/M
Cached
Output
$1.50
/M
Image Pricing (est. per image)
Input
any size~$0.0001
Output
0.5K~$0.0448
1K~$0.0672
2K~$0.1008
4K~$0.1512
Capabilities
Streaming
Vision
JSON Output
Image Generation
Try in Playground

Google Vertex AI

google-vertex/gemini-3.1-flash-image-preview
Context Size
65.5k
Stability
STABLE
Pricing
Input
$0.25
/M
Cached
Output
$1.50
/M
Image Pricing (est. per image)
Input
any size~$0.0001
Output
0.5K~$0.0448
1K~$0.0672
2K~$0.1008
4K~$0.1512
Capabilities
Streaming
Vision
JSON Output
Image Generation
Try in Playground

Obsidian

obsidian/gemini-3.1-flash-image-preview
Context Size
65.5k
Stability
STABLE
Pricing
20% off
Input
$0.25$0.20
/M
Cached
Output
$1.50$1.20
/M
Image Pricing (est. per image)
Input
any size~$0.0001~$0.0001
Output
0.5K~$0.0448~$0.0359
1K~$0.0672~$0.0538
2K~$0.1008~$0.0806
4K~$0.1512~$0.1210
Capabilities
Streaming
Vision
JSON Output
Image Generation
Try in Playground