Googlegemini-3.1-flash-image
Gemini 3.1 Flash Image
Fast, high-volume image generation and editing.
Gemini 3.1 Flash Image is built for fast, high-volume image creation and editing, from quick 0.5K drafts up to 4K output.
- High volume
- Fast turnaround
- Image editing
Model details
- Context window
- 131K tokens
- Max output
- 33K tokens
- Input
- Text, images
- Output
- Text, images
- Capabilities
- Vision, Streaming
- Interfaces
- OpenAI-style Image Generation
Pricing
What each generation costs. The Inferray price is what you are charged — no gateway fee is added on top of it.
| Resolution | Price |
|---|---|
| 0.5K | $0.045 |
| 1K | $0.067 |
| 2K | $0.10 |
| 4K | $0.15 |
Why teams pick it
- Fast generation and editing at scale
- Output from 0.5K drafts up to 4K
- Reads reference images as input
Call Gemini 3.1 Flash Image
Gemini 3.1 Flash Image answers on the API below — pick the one your code already speaks and just swap in your Inferray key.
/v1/images/generationsOpenAI-style Image Generation · openai SDK or plain HTTP
curl https://api.inferray.com/v1/images/generations \
-H "Authorization: Bearer inferray_..." \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-flash-image",
"prompt": "a quartz crystal on a workbench",
"n": 1
}'