← 返回 Skills 市场
aiwork4me

Ernie Image Radeon

作者 AIwork4me · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
41
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install ernie-image-radeon
功能描述
FREE ERNIE-Image text-to-image generation powered by AMD Radeon Cloud. No API key required. Generate AI images via ERNIE-Image and ERNIE-Image-Turbo models r...
使用说明 (SKILL.md)

ERNIE-Image Generation — AMD Radeon Cloud Edition

FREE ERNIE-Image text-to-image generation, powered by AMD Radeon Cloud. No API key required.

Generate images with ERNIE-Image and ERNIE-Image-Turbo models running on AMD Radeon hardware. No sign-up, no API key, no token — completely free.

Safety Boundary

  • The default AMD Radeon Cloud endpoint uses HTTP (not HTTPS). Prompts are sent without transport encryption. Only use non-sensitive prompts with this service.

  • If AI_STUDIO_API_KEY is set in your environment, it will not be sent to the default HTTP endpoint — API keys are only forwarded to HTTPS endpoints configured via ERNIE_BASE_URL.

  • For confidential or business-related prompts, configure a trusted HTTPS endpoint via ERNIE_BASE_URL.

  • Use this skill only for explicit image-generation requests.

  • Prompts and parameters are sent to AMD Radeon Cloud. Do not include secrets, credentials, private personal data, or confidential business data in prompts.

  • Decline unsafe, deceptive, exploitative, or rights-violating image requests.

  • Generated files are written locally. Confirm the output directory when the user has not specified one.

Prerequisites

  • Python 3.11+ with uv installed
  • No API key required — AMD Radeon Cloud provides free inference

Prefer ERNIE-Image-Turbo, 1024x1024, n=1, and b64_json unless the user asks for different parameters.

Models

Model Best for
ERNIE-Image-Turbo Fast drafts, iteration, batch previews
ERNIE-Image Slower, higher-quality final outputs

Chinese prompts usually work especially well with these models.

Generation Workflow

Step 1 -- Compose the prompt

Write a descriptive prompt (max 1024 characters, ~150 words). Chinese and English both work well. Be specific about subject, style, composition, and mood.

Good: "A golden retriever puppy sitting in a sunflower field at sunset, warm golden light, shallow depth of field, professional photography" Bad: "dog"

Step 2 -- Choose parameters

Parameter Values Default
model ERNIE-Image-Turbo, ERNIE-Image ERNIE-Image-Turbo
size 1024x1024, 768x1376, 1376x768, 896x1200, 1200x896, 848x1264, 1264x848 1024x1024
n 1-4 1
seed any integer random
steps 4-20 provider default
guidance 1.0-7.5 provider default
use-pe flag off

Select size based on content: portraits and posters use vertical (768x1376, 848x1264, 896x1200), landscapes and covers use horizontal (1376x768, 1264x848, 1200x896), general use 1024x1024.

Step 3 -- Run the generation script

Execute the bundled script with uv run:

uv run scripts/generate.py "\x3CPROMPT>" --model ERNIE-Image-Turbo --size 1024x1024

For batch generation:

uv run scripts/generate.py "\x3CPROMPT>" --n 4 --output ./output_dir

For higher quality with more inference steps and stronger guidance:

uv run scripts/generate.py "\x3CPROMPT>" --model ERNIE-Image --steps 16 --guidance 3.5

For reproducible results:

uv run scripts/generate.py "\x3CPROMPT>" --seed 42

Step 4 -- Output

The script saves images as PNG files to the output directory and prints:

Saved: ernie_20260430_110100.png (1.7 MB)
MEDIA:/absolute/path/to/ernie_20260430_110100.png

The MEDIA: line enables automatic image attachment in compatible environments.

The script avoids overwriting existing files by adding a numeric suffix when needed.

For JSON output, add --json to get structured results:

{
  "success": true,
  "model": "ERNIE-Image-Turbo",
  "files": [{"path": "/abs/path/ernie_20260430_110100.png", "size_bytes": 1715660}],
  "prompt": "...",
  "parameters": {"size": "1024x1024", "seed": 42}
}

Quick Triggers

When the user says any of these, treat the text after the trigger as the prompt and generate immediately with defaults:

  • Chinese: "生成图片:xxx" / "文生图:xxx" / "ERNIE生图:xxx" / "AI画图:xxx" / "AI绘图:xxx" / "出图:xxx" / "画画:xxx"
  • English: "generate image: xxx" / "ernie image: xxx" / "radeon image: xxx" / "create image: xxx" / "text-to-image: xxx" / "AI art: xxx" / "make a picture: xxx" / "draw: xxx"

Defaults: model=ERNIE-Image-Turbo, size=1024x1024, n=1, b64_json format.

Configuration

No configuration required! This skill uses the AMD Radeon Cloud free ERNIE-Image endpoint by default. It works out of the box.

Optional overrides (via environment variables):

  • ERNIE_BASE_URL — Custom API endpoint URL (overrides the default Radeon Cloud URL)
  • AI_STUDIO_API_KEY — API key (only needed if using a custom endpoint that requires authentication)
  • ERNIE_TIMEOUT — Request timeout in seconds (default: 120)

Notes

  • Images are saved locally as PNG files with MEDIA:/absolute/path/to/file.png for auto-attach.
  • Chinese prompts work particularly well with ERNIE models.
  • Prompt enhancement (--use-pe) lets the model expand simple prompts into richer descriptions before generation. Enable for short prompts, disable for precise control.
  • Use --quiet to suppress progress output; only MEDIA: lines (or JSON with --json) are printed. Recommended when calling from agent workflows to reduce context noise.
  • For full API reference, prompt guidance, and troubleshooting, read references/api-guide.md.

About

This skill is a fork of ernie-image-gen, modified for AMD Radeon Cloud which provides free ERNIE-Image inference. No API key or registration is required.

安全使用建议
Install only if you are comfortable sending image prompts to the stated external service. Do not include secrets, personal data, or confidential business content in prompts unless you configure and trust an HTTPS endpoint.
功能分析
Type: OpenClaw Skill Name: ernie-image-radeon Version: 1.0.1 The skill provides image generation using ERNIE-Image models via an AMD Radeon Cloud endpoint. The script `scripts/generate.py` includes several security best practices, such as sanitizing filename prefixes to prevent directory traversal and explicitly blocking the transmission of the `AI_STUDIO_API_KEY` if the endpoint uses unencrypted HTTP (the default). The documentation in `SKILL.md` and `api-guide.md` transparently discloses the use of a plaintext HTTP endpoint (134.199.132.159) and warns users against providing sensitive data. No indicators of data exfiltration, persistence, or malicious intent were found.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The skill’s stated purpose, code, and references consistently describe text-to-image generation through an external ERNIE/Radeon Cloud endpoint, with local PNG output.
Instruction Scope
The instructions limit use to explicit image-generation requests, warn against sensitive prompts, and tell the agent to confirm the output directory when needed.
Install Mechanism
There is no install spec, but the documented workflow runs a bundled Python script with uv and a pinned OpenAI dependency; this is purpose-aligned but still executes local code and may install the declared dependency.
Credentials
The default path needs no credential, but the script reads optional ERNIE_BASE_URL, ERNIE_TIMEOUT, and AI_STUDIO_API_KEY environment variables for custom endpoints.
Persistence & Privilege
No background service, self-starting persistence, privilege escalation, or broad local data access is shown; the visible persistence is limited to user-directed generated image files.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ernie-image-radeon
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ernie-image-radeon 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Added an explicit warning that the default AMD Radeon Cloud endpoint uses HTTP (not HTTPS), so prompts are sent unencrypted. - Clarified that API keys are never sent to the default HTTP endpoint and are only forwarded to HTTPS endpoints configured via `ERNIE_BASE_URL`. - Provided guidance for using secure endpoints with sensitive or confidential prompts. - No changes to core generation features or parameters.
v1.0.0
**Initial release: free ERNIE-Image generation via AMD Radeon Cloud, no API key needed.** - Generate AI images using ERNIE-Image and ERNIE-Image-Turbo models on AMD Radeon hardware. - Supports Chinese and English prompts, multiple artistic styles, and batch creation (1–4 images). - Offers 7 image sizes (portrait, landscape, square), seed control, inference steps, and prompt enhancement. - No registration or API key required—completely free usage out of the box. - Includes quick text triggers for instant generation (Chinese and English supported). - Images are saved locally with easy integration for auto-attachment.
元数据
Slug ernie-image-radeon
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Ernie Image Radeon 是什么?

FREE ERNIE-Image text-to-image generation powered by AMD Radeon Cloud. No API key required. Generate AI images via ERNIE-Image and ERNIE-Image-Turbo models r... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 41 次。

如何安装 Ernie Image Radeon?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install ernie-image-radeon」即可一键安装,无需额外配置。

Ernie Image Radeon 是免费的吗?

是的,Ernie Image Radeon 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Ernie Image Radeon 支持哪些平台?

Ernie Image Radeon 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Ernie Image Radeon?

由 AIwork4me(@aiwork4me)开发并维护,当前版本 v1.0.1。

💬 留言讨论