Text generation / Google
gemini-3.1-flash-image
API name: gemini-3.1-flash-image_t
Overview
Gemini 3.1 Flash Image, a.k.a. "Nano Banana 2," is Google’s latest state of the art image generation and editing model, delivering Pro-level visual quality at Flash speed. It combines advanced contextual understanding with fast, cost-efficient inference, making complex image generation and iterative edits significantly more accessible.
- Model type: Text generation
- Input: Text / Image
- Output: Text / Image
- Endpoints: chat
Tiered billing details
| Tier | Input | Output |
|---|---|---|
| Fallback tier | $0.0005/1K | $0.0600/1K |
Billed bylen (input context token count). Coefficient is the $ / 1M tokens price. Default group price (other groups converted by discount).
Code example
Call with gemini-3.1-flash-image_t :
curl https://www.starunion.net/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-flash-image_t",
"messages": [{ "role": "user", "content": "Hello" }]
}'