Gemini Nano Banana 2.1
google/gemini-nano-banana-2.1Nano Banana 2.1(Gemini Nano Banana 2.1)是谷歌推出的适用于 Flash 级别的图像生成和编辑模型。它是在 Nano Banana 2 和 Nano Banana Pro 的基础上进行升级的版本。该模型提升了产品情境化的处理能力、基于遮罩和墨水的编辑功能,以及事实准确性方面的能力。它能够呈现逼真的肤色、详细的材质细节、合理的光照效果,以及连贯的背景效果。该模型支持文本和图像输入,可以生成带有可选文字的图像,并支持 1K、2K 和 4K 分辨率输出,还可以通过 image_config API 参数实现宽高比扩展。
- Modalities
- Public starting price
- Priced by multiple attributes
- Added to catalog
- Oct 8, 2026
Online Inference
Configure input
Controls and defaults come directly from this model’s API schema.
Task result


{
"image_urls": [
"https://oss.shengsuanyun.com/example/modelinfo/457/output_0.png",
"https://oss.shengsuanyun.com/example/modelinfo/457/output_1.png"
]
}
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 Nano Banana 2.1 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-nano-banana-2.1",
"aspect_ratio": "1:1",
"prompt": "A spectacular vintage screen-print illustration of a tall colorful lighthouse standing alone on a dark rocky island in a vast nighttime ocean. The lighthouse has geometric blocks of cream, hot pink, yellow and cobalt blue, with a dark blue roof. Its powerful yellow beam sweeps across the sky in a huge curved arc. Deep blue ocean with stylized white waves fills the bottom of the image. Dense halftone dots cover every surface, with rough paper texture and imperfect ink registration. Limited retro CMYK palette, flat graphic shapes, 1970s children'\''s storybook screen-print aesthetic, mysterious and magical atmosphere, no text, 16:9.",
"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- 音频·输入
- ¥10.5/M token
- 图片·输入
- ¥10.5/M token
- 图片·输出
- ¥210/M token
- 视频·输入
- ¥10.5/M token
- 输入
- ¥10.5/M token
- 输出
- ¥52.5/M token
- Text · Input
- ¥10.5/M token
- Text · Output
- ¥52.5/M token