baoyu-imagine

Generate images via OpenAI, Google, DashScope, Replicate, and other image generation APIs.

Updated May 18, 2026
One-click install
npx skills add https://github.com/fts-pro/FTS-MMIS-AFRIKA --skill baoyu-imagine-fts-pro
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: baoyu-imagine
Source: https://github.com/fts-pro/FTS-MMIS-AFRIKA/tree/main/.agent/skills/baoyu-imagine
Command: npx skills add https://github.com/fts-pro/FTS-MMIS-AFRIKA --skill baoyu-imagine-fts-pro

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Generating images through multiple AI image APIs requires juggling different endpoints, model names, size rules, and credential formats. This Skill unifies ten providers behind one CLI so you can generate, edit, and batch-produce images without learning each API's quirks. ## Core Features & Use Cases - Multi-provider text-to-image: Generate images through OpenAI GPT Image 2, Azure OpenAI, Google, OpenRouter, DashScope, Z.AI, MiniMax, Jimeng, Seedream, or Replicate with automatic provider detection from available API keys. - Reference-image editing: Pass reference images for supported providers to perform edits, style transfer, or subject-consistent generation. - Batch parallel generation: Run multi-image jobs from a JSON batch file with configurable worker counts, per-provider rate limits, and automatic retries. - Use Case: You have an article outline with saved prompt files for ten illustrations. Use the build-batch script to assemble a batch.json, then run batch mode to generate all images in parallel with throttling and per-image retry. ## Quick Start Ask the agent to generate an image of your subject and save it to a chosen file, optionally specifying a provider, aspect ratio, or quality level.

Frequently Asked Questions about baoyu-imagine

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate an image with OpenAI GPT Image 2 from the command line?▼

Run the main script with --prompt, --image, --provider openai, and --model gpt-image-2, with OPENAI_API_KEY set. You can add --ar for aspect ratio, --size for explicit dimensions, or --quality 2k for high-quality output.

How do I generate multiple images in batch from saved prompt files?▼

Create a JSON batch file listing tasks with promptFiles and image paths, then run the main script with --batchfile. Batch mode runs in parallel with automatic retries, and you can control worker count with --jobs or BAOYU_IMAGE_GEN_MAX_WORKERS.

Which image generation providers support reference images?▼

Reference images work with Google multimodal, OpenAI GPT Image edits, Azure OpenAI edits (PNG/JPG only), OpenRouter multimodal models, Replicate supported families, MiniMax subject-reference, Seedream 4.0/4.5/5.0, and DashScope wan2.7-image models. Jimeng and SeedEdit 3.0 do not support them.

How does the skill choose which image provider to use?▼

If you pass --provider it uses that; otherwise it auto-detects from available API keys with priority Google, OpenAI, Azure, OpenRouter, DashScope, Z.AI, MiniMax, Replicate, Jimeng, Seedream. With reference images it restricts selection to ref-capable providers.

Why does image generation fail before any API call is made?▼

Generation is blocked until an EXTEND.md preferences file exists. On first run the skill collects your default provider, model, quality, and save location through a setup flow and writes EXTEND.md before generating anything.

Can I use OpenAI-compatible gateways that expect different request formats?▼

Yes. Set --imageApiDialect ratio-metadata (or OPENAI_IMAGE_API_DIALECT) for gateways that expect aspect-ratio size plus metadata.resolution instead of OpenAI-native pixel sizes. Note that ratio-metadata currently applies only to text-to-image, not reference-image edits.