跳到正文

宝玉:多服务图像生成

通过支持的图像服务组织文本生成图片、参考图片及批量任务,按环境准备 API 配置和模型参数。

开源精选内容生产53 个文件26,681 Stars浏览次数 0JimLiu/baoyu-skills MIT版本 1567581
开始使用

下载前阅读 SKILL.md 中的使用条件,并确认所用工具支持对应能力。

输入资料
提示词、尺寸与参考图片 所选服务的访问权限 阅读本节完整说明
交付内容
生成图片 可复查的任务参数 阅读本节完整说明
  1. 获取完整包,保留配套文件的目录结构。
  2. 按照原文准备所需工具、依赖与输入资料。
  3. 阅读对应使用步骤与输入输出说明,在自己的环境中验证结果。

使用提示摘自原文,配套文件保留来源版本;实际运行条件以各包说明为准。

正文

获取原文件

references/providers/replicate.md

Read when the user picks --provider replicate. Replicate support is intentionally scoped to model families baoyu-image-gen can validate locally and save without dropping outputs.

Supported Families

google/nano-banana* (default: google/nano-banana-2)

  • Supports prompt-only and reference-image generation
  • Uses Replicate aspect_ratio, resolution, and output_format
  • --size <WxH> is accepted only as a shorthand for a documented aspect_ratio plus 1K / 2K

bytedance/seedream-4.5

  • Supports prompt-only and reference-image generation
  • Uses Replicate size, aspect_ratio, and image_input
  • Local validation blocks unsupported 1K requests before the API call

bytedance/seedream-5-lite

  • Supports prompt-only and reference-image generation
  • Uses Replicate size, aspect_ratio, and image_input
  • Local validation currently accepts 2K / 3K only

wan-video/wan-2.7-image

  • Supports prompt-only and reference-image generation
  • Uses Replicate size and images
  • Max output is 2K

wan-video/wan-2.7-image-pro

  • Supports prompt-only and reference-image generation
  • Uses Replicate size and images
  • 4K is allowed only for text-to-image; local validation blocks 4K + --ref

Guardrails

  • Replicate currently supports only single-output save semantics in this tool — keep --n 1
  • If a model is outside the compatibility list above, baoyu-image-gen treats it as prompt-only and rejects advanced local options instead of guessing a nano-banana-style schema

Examples

# Default model
${BUN_X} {baseDir}/scripts/main.ts --prompt "A cat" --image out.png --provider replicate

# Explicit model
${BUN_X} {baseDir}/scripts/main.ts --prompt "A cat" --image out.png --provider replicate --model google/nano-banana

CONTACT HAONAN

联系haonan

医疗 AI · 产品与独立开发

刘浩南

关注医疗 AI 从 demo 到真实落地,聚焦产品化、商业化与院内工作流效率提升。

12年医疗产研经验,大湾区头部医疗AI公司前产品总监,独立开发者

医疗 AI 产品化医疗 AI 商业化院内工作流效率
刘浩南的微信联系二维码
微信扫一扫,联系 haonan