Back to Skills

baoyu-imagine

AI image generation with OpenAI GPT Image 2, Azure OpenAI, Google, OpenRouter, DashScope, Z.AI GLM-Image, MiniMax, Jimeng, Seedream and Replicate APIs. Supports text-to-image, reference images, aspect ratios, and batch generation from saved prompt files. Sequential by default; use batch parallel generation when the user already has multiple prompts or wants stable multi-image throughput. Use when user asks to generate, create, or draw images.

16,840stars1,965forksUpdated 4/30/2026

Security Assessment

Low Risk(80/100)

Detected risks:

Sensitive File Access([SKILL.md] .env)
Security Score80/100

About baoyu-imagine

The 'baoyu-imagine' skill offers AI-powered image generation capabilities, integrating multiple APIs such as OpenAI GPT Image 2, Azure OpenAI, Google, OpenRouter, DashScope, Z.AI GLM-Image, MiniMax, Jimeng, Seedream, and Replicate. This skill solves the problem of generating images from text-based prompts, references, and even batch generation from saved prompt files. It supports sequential image generation by default, with the option for parallel batch processing to enable stable multi-image throughput, making it ideal for users who require efficient image generation from multiple prompts.

FAQ

How do I use 'baoyu-imagine' for basic image generation?

You can use the command `${BUN_X} {baseDir}/scripts/main.ts --prompt 'A cat' --image out.png` to generate a basic image based on a text prompt.

Is there support for custom aspect ratios and quality?

Yes, you can specify aspect ratios and image quality by using options like `--ar` for aspect ratio and `--quality` for quality, such as `--ar 16:9` and `--quality 2k`.

Can I use reference images with 'baoyu-imagine'?

Yes, you can provide a reference image using the `--ref` option, such as `--ref source.png`, to guide the image generation process.

What is the batch mode and how do I use it?

Batch mode allows you to generate multiple images simultaneously. You can use the `--batchfile` option with a JSON file containing multiple prompts and set the number of jobs with `--jobs`, like `--jobs 4`.

What are the system requirements for 'baoyu-imagine'?

The skill requires the installation of 'bun' or 'npx', with dependencies including various image generation APIs, such as OpenAI and Replicate.

All Files

34 files
references/config/first-time-setup.md12.4 KB
View
scripts/providers/openrouter.ts9.7 KB
View
references/providers/dashscope.md4.4 KB
View
scripts/providers/replicate.test.ts7.0 KB
View
references/providers/minimax.md1.2 KB
View
references/providers/openrouter.md0.8 KB
View
references/providers/zai.md1.1 KB
View
references/usage-examples.md4.5 KB
View
scripts/providers/google.test.ts3.3 KB
View
scripts/types.ts2.1 KB
View
scripts/build-batch.test.ts4.5 KB
View
scripts/providers/google.ts9.6 KB
View
scripts/build-batch.ts7.3 KB
View
scripts/providers/jimeng.test.ts2.7 KB
View
scripts/main.test.ts17.4 KB
View
scripts/providers/jimeng.ts12.5 KB
View
scripts/main.ts42.4 KB
View
scripts/providers/minimax.ts6.2 KB
View
scripts/providers/azure.test.ts5.3 KB
View
scripts/providers/azure.ts5.7 KB
View
scripts/providers/openai.ts12.4 KB
View
scripts/providers/dashscope.test.ts11.3 KB
View
scripts/providers/dashscope.ts17.9 KB
View
scripts/providers/zai.ts8.7 KB
View
scripts/providers/minimax.test.ts5.0 KB
View
scripts/providers/openai.test.ts5.4 KB
View
scripts/providers/seedream.test.ts6.4 KB
View
scripts/providers/seedream.ts9.6 KB
View
SKILL.md14.0 KB
View
scripts/providers/openrouter.test.ts5.3 KB
View
references/config/preferences-schema.md4.1 KB
View
references/providers/replicate.md1.8 KB
View
scripts/providers/replicate.ts17.4 KB
View
scripts/providers/zai.test.ts5.2 KB
View

Install baoyu-imagine

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill