Loading...
Loading...
Compare original and translation side by side
{baseDir}{baseDir}/scripts/main.ts${BUN_X}bunbunnpxnpx -y bun{baseDir}{baseDir}/scripts/main.ts${BUN_X}bunbunnpxnpx -y buntest -f .baoyu-skills/baoyu-image-gen/EXTEND.md && echo "found"| Result | Action |
|---|---|
| Found | Load, parse, apply settings. If |
| Not found | ⛔ STOP. Do NOT generate any images. Read references/config/first-time-setup.md and follow its Flow 1 checklist step by step. This is a multi-turn interactive setup that requires asking the user multiple questions. Resume image generation only after Step 5 (verify) passes. |
| Path | Location |
|---|---|
| Relative to current working directory |
references/config/preferences-schema.mdtest -f .baoyu-skills/baoyu-image-gen/EXTEND.md && echo "found"| 结果 | 操作 |
|---|---|
| 存在 | 加载、解析并应用配置。如果 |
| 不存在 | ⛔ 停止操作,禁止生成任何图像。请阅读references/config/first-time-setup.md并逐步遵循其流程1的检查清单操作。这是一个多轮交互的设置流程,需要多次向用户询问信息,仅在步骤5(验证)通过后才可恢复图像生成。 |
| 路径 | 位置 |
|---|---|
| 相对于当前工作目录的路径 |
references/config/preferences-schema.mdundefinedundefinedundefinedundefined{
"jobs": 4,
"tasks": [
{
"id": "hero",
"promptFiles": ["prompts/hero.md"],
"image": "out/hero.png",
"provider": "replicate",
"model": "google/nano-banana-pro",
"ar": "16:9",
"quality": "2k"
},
{
"id": "diagram",
"promptFiles": ["prompts/diagram.md"],
"image": "out/diagram.png",
"ref": ["references/original.png"]
}
]
}promptFilesimagerefjobs--jobsjobs{
"jobs": 4,
"tasks": [
{
"id": "hero",
"promptFiles": ["prompts/hero.md"],
"image": "out/hero.png",
"provider": "replicate",
"model": "google/nano-banana-pro",
"ar": "16:9",
"quality": "2k"
},
{
"id": "diagram",
"promptFiles": ["prompts/diagram.md"],
"image": "out/diagram.png",
"ref": ["references/original.png"]
}
]
}promptFilesimagerefjobs--jobsjobs| Option | Description |
|---|---|
| Prompt text |
| Read prompt from files (concatenated) |
| Output image path (required in single-image mode) |
| JSON batch file for multi-image generation |
| Worker count for batch mode (default: auto, max from config, built-in default 10) |
| Force provider (default: auto-detect) |
| Model ID (Google: |
| Aspect ratio (e.g., |
| Size (e.g., |
| Quality preset (default: |
| Image size for Google/OpenRouter (default: from quality) |
| Reference images. Supported by Google multimodal, OpenAI GPT Image edits, OpenRouter multimodal models, Replicate, and Seedream 5.0/4.5/4.0. Not supported by Jimeng, Seedream 3.0, or removed SeedEdit 3.0 |
| Number of images |
| JSON output |
| 参数 | 说明 |
|---|---|
| 提示词文本 |
| 从文件读取提示词(会自动拼接内容) |
| 输出图像路径(单图模式下必填) |
| 用于多图生成的JSON批量配置文件路径 |
| 批量模式下的并发工作进程数(默认:自动配置,上限为配置中的最大值,内置默认值为10) |
| 强制指定服务提供商(默认:自动检测) |
| 模型ID(Google: |
| 宽高比(例如: |
| 图像尺寸(例如: |
| 画质预设(默认: |
| Google/OpenRouter的图像尺寸(默认:从画质参数继承) |
| 参考图。支持Google多模态模型、OpenAI GPT Image编辑、OpenRouter多模态模型、Replicate和Seedream 5.0/4.5/4.0。Jimeng、Seedream 3.0和已下线的SeedEdit 3.0不支持该功能 |
| 生成图像数量 |
| 以JSON格式输出结果 |
| Variable | Description |
|---|---|
| OpenAI API key |
| OpenRouter API key |
| Google API key |
| DashScope API key (阿里云) |
| Replicate API token |
| Jimeng (即梦) Volcengine access key |
| Jimeng (即梦) Volcengine secret key |
| Seedream (豆包) Volcengine ARK API key |
| OpenAI model override |
| OpenRouter model override (default: |
| Google model override |
| DashScope model override (default: |
| Replicate model override (default: google/nano-banana-pro) |
| Jimeng model override (default: jimeng_t2i_v40) |
| Seedream model override (default: doubao-seedream-5-0-260128) |
| Custom OpenAI endpoint |
| Custom OpenRouter endpoint (default: |
| Optional app/site URL for OpenRouter attribution |
| Optional app name for OpenRouter attribution |
| Custom Google endpoint |
| Custom DashScope endpoint |
| Custom Replicate endpoint |
| Custom Jimeng endpoint (default: |
| Jimeng region (default: |
| Custom Seedream endpoint (default: |
| Override batch worker cap |
| Override provider concurrency, e.g. |
| Override provider start gap, e.g. |
<cwd>/.baoyu-skills/.env~/.baoyu-skills/.env| 变量 | 说明 |
|---|---|
| OpenAI API密钥 |
| OpenRouter API密钥 |
| Google API密钥 |
| DashScope API密钥(阿里云) |
| Replicate API令牌 |
| Jimeng(即梦)火山引擎access key |
| Jimeng(即梦)火山引擎secret key |
| Seedream(豆包)火山引擎ARK API密钥 |
| OpenAI模型覆盖配置 |
| OpenRouter模型覆盖配置(默认: |
| Google模型覆盖配置 |
| DashScope模型覆盖配置(默认: |
| Replicate模型覆盖配置(默认:google/nano-banana-pro) |
| Jimeng模型覆盖配置(默认:jimeng_t2i_v40) |
| Seedream模型覆盖配置(默认:doubao-seedream-5-0-260128) |
| 自定义OpenAI接口地址 |
| 自定义OpenRouter接口地址(默认: |
| 可选,OpenRouter归因用的应用/站点URL |
| 可选,OpenRouter归因用的应用名称 |
| 自定义Google接口地址 |
| 自定义DashScope接口地址 |
| 自定义Replicate接口地址 |
| 自定义Jimeng接口地址(默认: |
| Jimeng服务区域(默认: |
| 自定义Seedream接口地址(默认: |
| 批量并发上限覆盖配置 |
| 指定服务商的并发数覆盖配置,例如 |
| 指定服务商的请求间隔覆盖配置,例如 |
<cwd>/.baoyu-skills/.env~/.baoyu-skills/.env--model <id>default_model.[provider]<PROVIDER>_IMAGE_MODELGOOGLE_IMAGE_MODELdefault_model.google: "gemini-3-pro-image-preview"GOOGLE_IMAGE_MODEL=gemini-3.1-flash-image-previewUsing [provider] / [model]Switch model: --model <id> | EXTEND.md default_model.[provider] | env <PROVIDER>_IMAGE_MODEL--model <id>default_model.[provider]<PROVIDER>_IMAGE_MODELGOOGLE_IMAGE_MODELdefault_model.google: "gemini-3-pro-image-preview"GOOGLE_IMAGE_MODEL=gemini-3.1-flash-image-previewUsing [provider] / [model]Switch model: --model <id> | EXTEND.md default_model.[provider] | env <PROVIDER>_IMAGE_MODEL--model qwen-image-2.0-prodefault_model.dashscopeDASHSCOPE_IMAGE_MODELqwen-image-2.0-proqwen-image-2.0-pro-2026-03-03qwen-image-2.0qwen-image-2.0-2026-03-03size宽*高512*5122048*20481024*102421:9qwen-image-maxqwen-image-max-2025-12-30qwen-image-plusqwen-image-plus-2026-01-09qwen-image1664*9281472*11041328*13281104*1472928*16641664*928qwen-imageqwen-image-plusz-image-turboz-image-ultrawanx-v1--size--arqwen-image-2.0*--size--arqwen-image-max/plus/imageqwen-image-2.0-pro--qualitynormal2kqwen-image-2.0*qwen-image-2.0*| Ratio | | |
|---|---|---|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
negative_promptprompt_extendwatermarkbaoyu-image-gen--model qwen-image-2.0-prodefault_model.dashscopeDASHSCOPE_IMAGE_MODELqwen-image-2.0-proqwen-image-2.0-pro-2026-03-03qwen-image-2.0qwen-image-2.0-2026-03-03宽*高size512*5122048*20481024*102421:9qwen-image-maxqwen-image-max-2025-12-30qwen-image-plusqwen-image-plus-2026-01-09qwen-image1664*9281472*11041328*13281104*1472928*16641664*928qwen-imageqwen-image-plusz-image-turboz-image-ultrawanx-v1--size--arqwen-image-2.0*--size--arqwen-image-max/plus/imageqwen-image-2.0-pro--qualitynormal2kqwen-image-2.0*qwen-image-2.0*| 比例 | | |
|---|---|---|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
negative_promptprompt_extendwatermarkgoogle/gemini-3.1-flash-image-previewgoogle/gemini-2.5-flash-image-previewblack-forest-labs/flux.2-pro/chat/completions/images--ref--imageSizeimageGenerationOptions.size--size <WxH>google/gemini-3.1-flash-image-previewgoogle/gemini-2.5-flash-image-previewblack-forest-labs/flux.2-pro/chat/completions/images--ref--imageSizeimageGenerationOptions.size--size <WxH>owner/namegoogle/nano-banana-proowner/name:versionstability-ai/sdxl:<version>undefinedowner/namegoogle/nano-banana-proowner/name:versionstability-ai/sdxl:<version>undefinedundefinedundefined--ref--provider--provider--refgoogleopenaiopenrouterreplicate--ref--provider--provider--refgoogleopenaiopenrouterreplicate| Preset | Google imageSize | OpenAI Size | OpenRouter size | Replicate resolution | Use Case |
|---|---|---|---|---|---|
| 1K | 1024px | 1K | 1K | Quick previews |
| 2K | 2048px | 2K | 2K | Covers, illustrations, infographics |
--imageSize 1K|2K|4K| 预设 | Google imageSize | OpenAI尺寸 | OpenRouter尺寸 | Replicate分辨率 | 适用场景 |
|---|---|---|---|---|---|
| 1K | 1024px | 1K | 1K | 快速预览 |
| 2K | 2048px | 2K | 2K | 封面、插画、信息图 |
--imageSize 1K|2K|4K1:116:99:164:33:42.35:1imageConfig.aspectRatioimageGenerationOptions.aspect_ratio--size <WxH>aspect_ratio--ref--armatch_input_image1:116:99:164:33:42.35:1imageConfig.aspectRatioimageGenerationOptions.aspect_ratio--size <WxH>aspect_ratio--ref--armatch_input_image--batchfile| Mode | When to Use |
|---|---|
| Sequential (default) | Normal usage, single images, small batches |
| Parallel batch | Batch mode with 2+ tasks |
| Situation | Preferred approach | Why |
|---|---|---|
| One image, or 1-2 simple images | Sequential | Lower coordination overhead and easier debugging |
| Multiple images already have saved prompt files | Batch ( | Reuses finalized prompts, applies shared throttling/retries, and gives predictable throughput |
| Each image still needs separate reasoning, prompt writing, or style exploration | Subagents | The work is still exploratory, so each image may need independent analysis before generation |
--jobs <count>--batchfile| 模式 | 适用场景 |
|---|---|
| 顺序生成(默认) | 常规使用、单图生成、小批量任务 |
| 并行批量生成 | 包含2个及以上任务的批量模式 |
| 场景 | 推荐方案 | 原因 |
|---|---|---|
| 单张图像,或1-2张简单图像 | 顺序生成 | 协调开销更低,更易调试 |
| 多张图像已有保存好的prompt文件 | 批量生成( | 复用已定稿的提示词,应用统一的限流/重试策略,吞吐量可预测 |
| 每张图像仍需要单独推理、撰写提示词或风格探索 | 子Agent | 工作仍处于探索阶段,每张图像在生成前可能需要独立分析 |
--jobs <count>