baoyu-image-gen

Generate images from text prompts across Google, OpenAI, DashScope, or Replicate.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/lihanghang/agent-daily-blog --skill baoyu-image-gen-lihanghang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-image-gen
Source: https://github.com/lihanghang/agent-daily-blog/tree/main/skills-archive/2026-03-17/baoyu-skills/skills/baoyu-image-gen
Command: npx skills add https://github.com/lihanghang/agent-daily-blog --skill baoyu-image-gen-lihanghang

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Automates cross-provider AI image generation from prompts, enabling seamless creation of visuals without manual tool switching.

Core Features & Use Cases

  • Supports text-to-image generation across Google, OpenAI, DashScope, and Replicate providers, with optional reference images and aspect ratios.
  • Handles prompts from direct input, files, or stdin, and supports output sizing, aspect ratios, and quality presets.
  • Provides project- and user-level EXTEND.md based defaults for provider, model, quality, and size to streamline workflows.

Quick Start

Provide a text prompt and an output image path to generate an image.

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 images from text prompts across different AI providers?

AI image generation across providers is automated by routing text prompts to Google, OpenAI, DashScope, or Replicate without manual tool switching. You provide a prompt and output path, and the Skill handles provider selection and model defaults.

Can I use a reference image to guide AI image generation?

Yes, reference images can be used to guide AI image generation. The Skill accepts optional reference images alongside your text prompts, allowing you to direct the visual output while specifying aspect ratios and output sizes.

How do I set default models and quality presets for image generation?

Default models, providers, quality, and sizes for image generation are configured using project- or user-level EXTEND.md files. This streamlines your workflow by applying consistent defaults across multiple generation requests.

Does this approach support reading prompts from files or standard input?

Reading prompts from direct input, files, or stdin is fully supported for AI image generation. This allows you to automate batch processing and integrate the Skill into existing pipelines that output text prompts.

What is the best way to handle errors during cross-provider image generation?

Robust error handling is built into cross-provider image generation, including optional parallel generation to improve throughput. This ensures failures are managed gracefully without interrupting the entire batch processing workflow.

Are there limitations when switching between Google, OpenAI, DashScope, and Replicate for image generation?

When switching between Google, OpenAI, DashScope, and Replicate for image generation, limitations depend on each specific provider's API constraints. The Skill standardizes prompt handling and sizing controls, but model availability and quality presets vary by provider.