gemini-3.1-flash-image
gemini-3.1-flash-image
VisionReasoningWeb search
Overview
gemini-3.1-flash-image is available on MAX API through the OpenAI-compatible API.
Pricing
Official list prices in USD. Token prices are per 1M tokens.| Tier | Input | Output |
|---|---|---|
| All requests | $0.5 | $3 |
Cache read applies to prompt tokens served from the prompt cache; cache write applies to tokens written into it.
Example request
curl https://clubs.byte-ai.cn/v1/images/generations \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-flash-image",
"prompt": "A lighthouse on a cliff at sunset, watercolor",
"size": "1024x1024"
}'