SuperAPI AI 工具集

nano-banana-2

设计与创作

查看项目

更新于 10-15 22:37

技能介绍

用途:借助 inference.sh 命令行工具(infsh)调用 Google Gemini 3.1 Flash Image Preview(Nano Banana 2)进行图像生成与编辑。

主要能力:文生图;图像编辑,可传入最多 14 张 JPEG、PNG、WebP 输入图;一次生成多张图;自定义宽高比(1:1、16:9、9:16、4:3、3:4、auto);分辨率可选 1K、2K、4K(默认 1K);可开启 Google 搜索实时信息接地(天气、新闻等)。

使用方式:需先安装并登录 inference.sh CLI。登录命令:infsh login。运行示例:infsh app run google/gemini-3-1-flash-image-preview --input '{"prompt": "a banana in space, photorealistic"}'。输入参数包括 prompt(必填)、images、num_images、aspect_ratio、resolution、output_format、enable_google_search。输出含 images、description 和 output_meta。也可用 Python SDK 调用,app 标识为 google/gemini-3-1-flash-image-preview@0c7ma1ex。可用 infsh app sample google/gemini-3-1-flash-image-preview --save input.json 生成示例输入。

适用场景:需要快速生成或编辑图像、批量出图、指定比例或高分辨率输出的创作任务,以及需要结合实时搜索信息的图像生成。

限制:资料未提供具体价格、可用平台范围与配额信息;需依赖 inference.sh CLI 及相应网络环境。