baoyu-image-gen

Generates images via OpenAI, Google, DashScope, and other image APIs with batch and reference-image support.

Updated Jul 28, 2026
One-click install
npx skills add https://github.com/Aadi-110i/PEP-PROJECT --skill baoyu-image-gen-aadi-110i
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-image-gen
Source: https://github.com/Aadi-110i/PEP-PROJECT/tree/main/skills/baoyu-image-gen
Command: npx skills add https://github.com/Aadi-110i/PEP-PROJECT --skill baoyu-image-gen-aadi-110i

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? It removes the friction of calling many different AI image generation APIs by providing one unified CLI that handles provider detection, model selection, sizing rules, retries, and batch parallelism. ## Core Features & Use Cases - Multi-provider image generation: Supports OpenAI, Azure OpenAI, Google, OpenRouter, DashScope, Z.AI, MiniMax, Jimeng, Seedream, and Replicate with automatic provider detection from API keys. - Reference images and batch mode: Accepts reference images for edit workflows and runs parallel batch generation from a JSON batch file with per-provider rate limiting and up to 3 retries per image. - Persistent preferences: Stores default provider, model, quality, and aspect ratio in an EXTEND.md config file loaded before any generation. - Use Case: A content team saves prompt files for ten article illustrations, assembles them into a batch.json, and generates all images in parallel with consistent quality settings. ## Quick Start Ask the AI to generate an image of your subject using this skill, for example: generate a 16:9 illustration of a sunset over a mountain lake and save it as sunset.png.

Frequently Asked Questions about baoyu-image-gen

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

FAQPage Schema
How do I generate an image with OpenAI or Google from the command line?

Run the main script with a prompt and output path, for example with --prompt "A cat" --image cat.png. The provider is auto-detected from your API keys, or you can force one with --provider openai or --provider google.

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

Create a JSON batch file listing tasks with promptFiles and image paths, then run the script with --batchfile batch.json. Batch mode runs in parallel with configurable worker count via --jobs and retries each image up to 3 times.

Which providers support reference images for image editing?

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

Can I set a default model and quality so I do not repeat flags?

Yes. Create an EXTEND.md preferences file in .baoyu-skills/baoyu-image-gen/ with default_provider, default_model, default_quality, and default_aspect_ratio. CLI flags override EXTEND.md, which overrides environment variables.

Why does image generation fail with a missing API key error?

The script requires at least one provider credential such as OPENAI_API_KEY, GOOGLE_API_KEY, or DASHSCOPE_API_KEY. Set them in your environment or in a .baoyu-skills/.env file in your project or home directory.