baoyu-image-gen

Generate images from prompts across multiple AI providers via a single CLI.

Updated May 5, 2025
One-click install
npx skills add https://github.com/yopitek/Obsidian --skill baoyu-image-gen-yopitek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: baoyu-image-gen
Source: https://github.com/yopitek/Obsidian/tree/main/HQ/10_resources/01_AI_Skills/baoyu-skills/skills/baoyu-image-gen
Command: npx skills add https://github.com/yopitek/Obsidian --skill baoyu-image-gen-yopitek

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This CLI-based skill unifies AI image generation across multiple providers, letting you craft prompts and generate outputs without switching tools.

Core Features & Use Cases

  • Cross-provider generation: supports Google, OpenAI, Azure OpenAI, OpenRouter, DashScope, MiniMax, Replicate, Seedream, and Z.AI for flexible model choices.
  • Rich input options: accepts prompts from files, reference images, aspect ratios, and per-image quality settings; supports batch mode for multiple prompts.
  • Real-world scenario: create consistent visuals for marketing assets by drafting prompts and generating multiple variants across providers to compare style and cost.

Quick Start

Provide a prompt and output path to generate an image; for example, run bun scripts/main.ts --prompt "A futuristic city" --image city.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 AI images from multiple providers using a single CLI?

You can generate AI images from multiple providers using a single CLI by running the script with a prompt and output path, which validates inputs and orchestrates generation across supported APIs.

Can I use reference images and batch processing for AI image generation?

Yes, you can use reference images and batch processing for AI image generation by providing multiple prompts from files and setting per-image quality parameters to generate outputs sequentially.

Does this CLI tool support Google, OpenAI, and Azure OpenAI for image generation?

Yes, this CLI tool supports Google, OpenAI, and Azure OpenAI alongside OpenRouter, DashScope, MiniMax, Replicate, Seedream, and Z.AI to resolve provider models and generate images.

How do I set aspect ratios and quality settings when generating images via API?

You can set aspect ratios and quality settings when generating images via API by passing specific arguments in the CLI command, which validates the inputs before resolving the provider model.

What happens when an AI image generation task fails across different providers?

When an AI image generation task fails across different providers, the CLI surfaces clear errors detailing the failure, ensuring you can identify whether the issue stems from input validation or model resolution.