baoyu-image-gen is an AI SDK-based skill that enables image generation using official OpenAI (DALL-E, GPT Image) and Google (Imagen, Gemini multimodal) APIs. It supports text-to-image, reference images for editing, aspect ratio control, and quality presets.
Core Capabilities:
- Text-to-Image: Generate images from a text prompt.
- Reference Images: Use existing images as a basis for new generations (supported via Google multimodal models).
- Aspect Ratio & Size: Control dimensions using ratios (e.g.,
16:9) or exact pixel sizes (e.g., 1024x1024). - Quality Presets: Choose between
normal and 2k resolution. - Prompt Files: Generate images using content concatenated from multiple files.
Execution Note: All scripts are located in the scripts/ subdirectory of the skill. The main entry point is scripts/main.ts. When running via CLI, replace ${SKILL_DIR} with the actual directory path of the skill.
# Basic generation (auto-detect provider)
npx -y bun ${SKILL_DIR}/scripts/main.ts --prompt "A cat" --image cat.png