用途:这是一个通过 inference.sh CLI(belt)调用 Google Gemini 3.1 Flash Image Preview 模型生成与编辑图像的技能。
主要能力:支持文生图、图像编辑、多图输入(最多 14 张,格式 JPEG、PNG、WebP)、多图输出、自定义宽高比、1K/2K/4K 分辨率、输出格式选择,以及启用 Google 搜索接地以获取天气、新闻等实时信息。可用参数包括 prompt(必填)、images、num_images、aspect_ratio、resolution(默认 1K)、output_format、enable_google_search。输出包含 images 数组、description 文本与 output_meta 元数据。
使用方式:先安装 belt CLI 技能:npx skills add belt-sh/cli,然后执行 belt login,再运行 belt app run google/gemini-3-1-flash-image-preview --input '{"prompt": "..."}'。可用 belt app sample google/gemini-3-1-flash-image-preview --save input.json 生成示例输入,编辑后以 --input input.json 运行。也可用 Python SDK(inferencesh)调用,支持 stream=True 获取实时进度。
适用场景:文生图创作、图像编辑(添加元素等)、批量出图、高分辨率或指定比例出图,以及需要结合实时信息生成的图像。
限制:需先安装并登录 inference.sh CLI;具体收费、价格与可用平台资料暂未提供。