兑换代金券

Gemini Nano Banana 2.1

google/gemini-nano-banana-2.1

Nano Banana 2.1(Gemini Nano Banana 2.1)是谷歌推出的适用于 Flash 级别的图像生成和编辑模型。它是在 Nano Banana 2 和 Nano Banana Pro 的基础上进行升级的版本。该模型提升了产品情境化的处理能力、基于遮罩和墨水的编辑功能,以及事实准确性方面的能力。它能够呈现逼真的肤色、详细的材质细节、合理的光照效果,以及连贯的背景效果。该模型支持文本和图像输入,可以生成带有可选文字的图像,并支持 1K、2K 和 4K 分辨率输出,还可以通过 image_config API 参数实现宽高比扩展。

输入 / 输出模态
公开起步价格
按多项属性定价
收录时间
2026年10月8日

在线推理

输入配置

控件、可选项与默认值均直接来自当前模型的 API Schema。

可以先配置当前模型的全部参数,真正提交任务时再登录。登录后生成

任务结果

登录前也可以完整配置模型当前参数均可直接调整,只有提交生成任务时需要登录。
Gemini Nano Banana 2.1
进度—
耗时—
请求 ID—

历史任务

任务历史

仅支持查看最近七个自然日的生成记录。

生成详情

API 调用

Gemini Nano Banana 2.1 的示例代码与 API 说明

Modelmesh 会帮你在不同服务提供商之间规范化处理请求和响应,为你统一接口。

Modelmesh 提供了兼容 OpenAI 的 Completion API,可连接 300 多款模型与服务提供商,既可直接调用,也可通过 OpenAI SDK 调用。此外,还提供了一些第三方 SDK。

在以下示例中,Modelmesh 专用的请求头属于可选项。若你配置了这些请求头,你的应用就能出现在 Modelmesh 的排行榜上。

#!/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"
                      
                        
                        ​
                      
                        
                        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}"
                  
                    
                        
                        #!/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}"
                      
                  
                

价格

价格明细

统一按人民币展示
音频·输入
¥10.5/M token
图片·输入
¥10.5/M token
图片·输出
¥210/M token
视频·输入
¥10.5/M token
输入
¥10.5/M token
输出
¥52.5/M token
文本·输入
¥10.5/M token
文本·输出
¥52.5/M token