canghe-image-gen

Generate images from text prompts via a multi-provider CLI.

429|102|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/freestylefly/canghe-skills --skill canghe-image-gen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: canghe-image-gen
Source: https://github.com/freestylefly/canghe-skills/tree/main/skills/canghe-image-gen
Command: npx skills add https://github.com/freestylefly/canghe-skills --skill canghe-image-gen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

The skill unifies AI-based image generation across multiple providers (OpenAI, Google Gemini, DashScope, and Canghe) into a single, scriptable CLI, eliminating the need to switch tools or rewrite prompts for each provider.

Core Features & Use Cases

  • Supports text-to-image generation with OpenAI, Google Gemini, DashScope, and Canghe providers.
  • Accepts reference images, aspect ratios, and model selection for flexible visuals.
  • Automatic provider detection based on available API keys and optional parallel generation for larger batches.
  • Use cases include creating hero illustrations for articles, social visuals, or design mockups.

Quick Start

Provide a prompt and an output path, then run the CLI to generate and save the image to the specified file.

Frequently Asked Questions about canghe-image-gen

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

FAQPage Schema
How do I generate AI images from the command line using multiple providers?

You can generate AI images from the command line by providing a prompt and output path to the CLI. It unifies text-to-image generation across OpenAI, Google Gemini, DashScope, and Canghe providers, automatically detecting the provider based on available API keys.

Can I use a reference image and specify an aspect ratio for AI image generation?

Yes, the CLI supports reference images and aspect ratios for AI image generation. You provide these parameters with your text prompt, and the tool validates inputs and handles prompt input from files or stdin to create your specified visual output.

Does the CLI support automatic provider detection for AI image generation?

Yes, the CLI supports automatic provider detection based on available API keys. It routes requests to OpenAI, Google Gemini, DashScope, or Canghe without requiring you to manually switch tools or rewrite prompts for each provider.

What is the best way to automate batch AI image generation across different APIs?

The best way to automate batch AI image generation is using a unified CLI that supports optional parallel generation across multiple providers. It eliminates the need to switch tools or rewrite prompts, applying safe retry logic to ensure robust image yields.

How do I pass long text prompts to a CLI image generation script?

You can pass long text prompts to the CLI image generation script by reading input from files or stdin. The tool validates these inputs and handles prompt input seamlessly, ensuring the provider receives the correct text-to-image instructions.

Why does multi-provider AI image generation fail when API keys are missing?

Multi-provider AI image generation fails when API keys are missing because the CLI relies on these credentials for automatic provider detection. Without the correct API keys for OpenAI, Gemini, DashScope, or Canghe, the tool cannot route or authenticate the image generation requests.