Gemini 3.1 Flash Image
google/gemini-3.1-flash-image谷歌最强图像模型,nano banana 2 。Gemini 3.1 Flash Image 将最强大的图像生成功能推向主流市场。它提升了图像质量、视觉理解能力,更好地渲染了多种语言的长文本段落,并提高了图像的真实性。该模型还能够生成分辨率从 512 (0.25MP) 到 4K (16MP) 的图像。
- Modalities
- Public starting price
- Priced by multiple attributes
- Added to catalog
- Feb 28, 2026
Online Inference
Configure input
Controls and defaults come directly from this model’s API schema.
Task result

{
"image_urls": [
"https://shengsuanyun.oss-cn-shanghai.aliyuncs.com/example/modelinfo/283/output_0.png"
],
"progress": 100
}
Task History
Task history
Only generation records from the last seven days are available.
Sign in to view your task history.
Sign in to view task historyFilled when you open this page. The default query uses the current model ID; leave blank for records from all models.
| Task ID | Model | Completion status | Created | Duration | Credits consumed | Artifact |
|---|
API Call
Gemini 3.1 Flash Image code examples and API guide
Modelmesh normalizes requests and responses across service providers behind one consistent API.
Modelmesh provides an OpenAI-compatible Completion API for more than 300 models and service providers. Call it directly, through the OpenAI SDK, or with supported third-party SDKs.
Modelmesh-specific request headers in these examples are optional. When supplied, your application can appear on the Modelmesh rankings.
#!/usr/bin/env bash
set -euo pipefail
API_KEY="$SSY_API_KEY"
curl --fail-with-body --silent --show-error --location \
--request POST \
"https://router.shengsuanyun.com/api/v1/tasks/generations" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${API_KEY}" \
--data '{
"model": "google/gemini-3.1-flash-image",
"aspect_ratio": "16:9",
"image": "https://oss.shengsuanyun.com/example/modelinfo/283/input_0.jpg",
"prompt": "将画面中的男性替换为女性,该女性手持香蕉",
"response_modalities": [
"IMAGE"
],
"size": "1K"
}'
#!/usr/bin/env bash
set -euo pipefail
API_KEY="$SSY_API_KEY"
REQUEST_ID="${SSY_REQUEST_ID:?Set SSY_REQUEST_ID to the ID returned by task submission}"
curl --fail-with-body --silent --show-error --location \
--request GET \
"https://router.shengsuanyun.com/api/v1/tasks/generations/${REQUEST_ID}" \
--header "Authorization: Bearer ${API_KEY}"
Pricing
Pricing Details
All prices shown in CNY- 图片·输入
- ¥3.5/M token
- 图片·输出
- ¥420/M token