Files
baoyu-skills/skills/baoyu-image-gen/references/providers/replicate.md
T
Jim Liu 宝玉 c3cbce9ce3 feat\!: rename baoyu-imagine→baoyu-image-gen, baoyu-image-cards→baoyu-xhs-images (v2.0.0)
BREAKING CHANGE: removed `baoyu-imagine` and `baoyu-image-cards`. All
functionality now lives under `baoyu-image-gen` and `baoyu-xhs-images`
respectively. Cross-skill `## Image Generation Tools` examples updated
across baoyu-article-illustrator, baoyu-comic, baoyu-cover-image,
baoyu-infographic, and baoyu-slide-deck.

Migration: existing `~/.baoyu-skills/baoyu-imagine/EXTEND.md` configs are
auto-renamed to `…/baoyu-image-gen/EXTEND.md` on first run via the
legacy-path resolver in `scripts/main.ts`.
2026-05-24 18:35:05 -05:00

1.8 KiB

Replicate

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