Skip to content
Back to skills

Image Generate

ASecurity

使用内置 image_generate.py 脚本生成图片, 准备清晰具体的 `prompt`。

  • 2,237 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 6, 2026
ai-agentspythonbashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 6, 2026

npx -y skills add LeoYeAI/agent-master-skills --skill image-generate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Image Generate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Image Generate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leoyeai-image-generate-agent-master-skills/badge)](https://www.skillsdirectory.com/skills/leoyeai-image-generate-agent-master-skills)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: image-generate
description: 使用内置 image_generate.py 脚本生成图片, 准备清晰具体的 `prompt`。
---

# Image Generate

## 适用场景

当需要根据文本描述生成图片时,使用该技能调用 `image_generate` 函数。

## 使用步骤

1. 准备清晰具体的 `prompt`。
2. 运行脚本 `python scripts/image_generate.py "<prompt>"`。运行之前cd到对应的目录。
3. 脚本将返回生成图片的 URL。

## 认证与凭据来源

- 优先读取 `MODEL_IMAGE_API_KEY` 或 `ARK_API_KEY` 环境变量。
- 若未配置,将尝试使用 `VOLCENGINE_ACCESS_KEY` 与 `VOLCENGINE_SECRET_KEY` 获取 Ark API Key。

## 输出格式

- 输出生成的图片 URL。
- 若调用失败,将打印错误信息。

## 示例

```bash
python scripts/image_generate.py "一只可爱的猫"
```

Files in this skill

  • SKILL.md830 B
  • scripts/image_generate.py2.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.