Skip to content
Back to skills

Draw Images By Apiyi

ASecurity

Generate images using APIYI API.

  • 21 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added June 7, 2026
toolsbashapi

Works with

  • api

Security analysis

A100/100

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

Scanned June 7, 2026

npx -y skills add modbender/skill-library-mcp --skill draw-images-by-apiyi --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Draw Images By Apiyi?

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

Security grade badge for Draw Images By Apiyi
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-draw-images-by-apiyi/badge)](https://www.skillsdirectory.com/skills/modbender-draw-images-by-apiyi)

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: draw-images-by-apiyi
version: 1.0.0
description: Generate images using APIYI API.
homepage: https://apiyi.com/
user-invocable: true
command-arg-mode: raw
metadata:
  {
    "openclaw":
      {
        "emoji": "🎨",
        "requires": { "bins": ["uv"], "env": ["APIYI_API_KEY"] },
        "primaryEnv": "APIYI_API_KEY",
        "install":
          [
            {
              "id": "uv-brew",
              "kind": "brew",
              "formula": "uv",
              "bins": ["uv"],
              "label": "Install uv (brew)",
            },
          ],
      },
  }
---

# Draw Images by APIYI

Generate images using APIYI API. Simple and fast.

## Usage

### Slash Command (Recommended)

```
/draw-images-by-apiyi a cute cat wearing sunglasses
/draw-images-by-apiyi a sunset over mountains -r 2K
```

### Natural Language

Just ask the agent:
- "Draw a cute cat for me"
- "Generate an image of a sunset"
- "Can you create a picture of a robot?"

### Command Line

```bash
uv run {baseDir}/scripts/generate_image.py --prompt "your image description" --filename "output.png"
```

## Examples

### Basic generation

```bash
uv run {baseDir}/scripts/generate_image.py -p "a cute cat wearing sunglasses" -f cat.png
```

### With resolution

```bash
uv run {baseDir}/scripts/generate_image.py -p "a sunset over mountains" -f sunset.png -r 2K
```

### With explicit API key

```bash
uv run {baseDir}/scripts/generate_image.py -p "a robot" -f robot.png --api-key YOUR_API_KEY
```

## API Key

Get your API key from https://apiyi.com/

Set via environment:
```bash
export APIYI_API_KEY=your-key-here
```

Or configure in `~/.openclaw/openclaw.json`:
```json5
{
  skills: {
    entries: {
      "draw-images-by-apiyi": {
        enabled: true,
        env: {
          "APIYI_API_KEY": "your-key-here"
        }
      }
    }
  }
}
```

## Parameters

| Parameter | Values | Default | Description |
|-----------|--------|---------|-------------|
| `--prompt`, `-p` | text | required | Image description |
| `--filename`, `-f` | path | required | Output filename |
| `--resolution`, `-r` | `1K`, `2K`, `4K` | `1K` | Output resolution |
| `--api-key`, `-k` | string | env var | Override environment variable |

## Output Path

- **Relative path** (e.g., `-f out.png`) → outputs to current workspace root
- **Absolute path** (e.g., `-f /tmp/out.png`) → uses specified path

## Notes

- Resolutions: `1K` (1024×1024), `2K` (2048×2048), `4K` (4096×4096)
- The script prints a `MEDIA:` line for OpenClaw to auto-attach images
- Requires `APIYI_API_KEY` environment variable

Files in this skill

  • README.md905 B
  • SKILL.md2.6 KB
  • scripts/generate_image.py5.4 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 tools →

Comments

Loading comments…

Newsletter

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