ernie-image-gen

Generate ERNIE images via cloud or local endpoints with artifact logging.

10|55|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/AgenticAIPlan/AgenticAISkills --skill ernie-image-gen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ernie-image-gen
Source: https://github.com/AgenticAIPlan/AgenticAISkills/tree/main/skills/ernie-image-gen
Command: npx skills add https://github.com/AgenticAIPlan/AgenticAISkills --skill ernie-image-gen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires PyYAML, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Generate images through a configurable ERNIE Image service endpoint, enabling you to switch between cloud-based and local deployments without code changes and to preserve deployment context like model path and weights.

Core Features & Use Cases

  • Flexible cloud or local deployment modes: openai_compatible and native_generate.
  • Cross-machine portability with template-based configurations and automatic artifact logging for prompts, images, and metadata.
  • Support for health checks, configurable prompts, and automated artifact consolidation.

Quick Start

Configure a cloud config at assets/cloud-config.portable.cn.yaml, run health_check, and generate an image with a sample prompt using that config.

Frequently Asked Questions about ernie-image-gen

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

FAQPage Schema
How do I generate images using ERNIE via a local deployment or cloud endpoint?

ERNIE image generation supports both local deployments and cloud endpoints using template-based configurations. You can switch between openai_compatible and native_generate modes without altering your application code.

Can I switch between openai_compatible and native_generate modes without changing code?

Yes, ERNIE image generation supports switching between openai_compatible and native_generate modes simply by updating template-based configuration files, enabling seamless transitions between cloud and local deployments without code changes.

What is the best way to preserve model paths and weights when moving ERNIE image generation across machines?

The best way to preserve deployment context like model paths and weights across machines is using portable cloud-config templates. These templates ensure consistent ERNIE image generation configurations during cross-machine portability.

How do I perform a health check on an ERNIE image generation endpoint?

You perform a health check on an ERNIE image generation endpoint by running the health_check script against your configured cloud or local service. This verifies endpoint availability before you attempt to generate images or log artifacts.

Does ERNIE image generation automatically log prompts and metadata as artifacts?

Yes, ERNIE image generation automatically logs prompts, images, and metadata as artifacts. It consolidates these outputs into designated artifact directories to preserve the full deployment context and generation history.